Share this postDaily bit(e) of C++Daily bit(e) of C++ | std::forwardCopy linkFacebookEmailNotesMoreDaily bit(e) of C++ | std::forwardDaily bit(e) of C++ #418, The conditional r-value cast: std::forward.Šimon TóthFeb 23, 20241Share this postDaily bit(e) of C++Daily bit(e) of C++ | std::forwardCopy linkFacebookEmailNotesMoreShareThe std::forward is a conditional r-value (specifically x-value) cast.std::forward is primarily designed to work in conjunction with universal references and will only cast to an r-value if the template argument isn't an l-value reference type.Click to open in Compiler Explorer.Leave a commentThanks for reading Daily bit(e) of C++! Subscribe for free to receive new posts and support my work.Subscribe