Programming Languages, Cpp, Software Development, Coding, Optimization.
swap two strings (which will generally involve simply reassigning three 64bit values and no memory allocation). When to move-cast Finally, let’s discuss when you should be using the std::move cast in your code. Fortunately, this one is simple: Use std::move cast when passing an lvalue to a function