Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 27s8 days 9 hours 54 minutes 27 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 27s8 days 9 hours 54 minutes 27 seconds.

Sign in to watch this lesson
Value Categories, Move and Perfect Forwarding · 4:15
std::move sounds like it moves, but it is only a cast that relabels an object as an rvalue; the stealing happens later, if a move constructor or move assignment acts on that label. We check that it compiles to no instructions at all, see why a named rvalue-reference parameter is still an lvalue, watch a const object silently get copied instead of moved, and finish with the Annotation trap and the rules for moved-from objects.