Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What does std::move actually do?

  1. A Physically moves the object's memory
  2. B Casts its argument to an rvalue reference so a move constructor or assignment can be selected
  3. C Deletes the source object
  4. D Copies the object efficiently
Answer

Casts its argument to an rvalue reference so a move constructor or assignment can be selected

After moving from an object it is in a valid but unspecified state. It may be destroyed or assigned to, but its contents must not be relied upon.

All C++ MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as