Question PRG-CPP-0074
HardWhat does std::move do to a std::string that is then left unused?
- A.
It casts it to an rvalue so its buffer can be moved; the source is left valid but unspecified (usually empty)
- B.
It deletes the string
- C.
It makes the string constant
- D.
It copies the string
Sign up free to see the answer and a step-by-step explanation.