2 ms·
&& doesn't mean "move here". It means, roughly speaking, "bind to things that are okay to implicitly move from, because they're going away anyway" (e.g. rvalues
by int_19h 7y ago
&& doesn't mean "move here". It means, roughly speaking, "bind to things that are okay to implicitly move from, because they're going away anyway" (e.g. rvalues, or when you are returning a local).
std::move() is there to allow you to explicitly say, "this is okay to move from, even though it can still be accessed after the move".