⚡ Build the skills to land top-paying quant jobs. Offer ends in 23d 14h 02m 19s23 days 14 hours 2 minutes 19 seconds.
⚡ Build the skills to land top-paying quant jobs. Offer ends in 23d 14h 02m 19s23 days 14 hours 2 minutes 19 seconds.

Sign in to watch this lesson
Value Categories, Move and Perfect Forwarding · 4:00
std::move is an unconditional cast for rvalue references; std::forward<T> is a conditional cast for forwarding references, used once at the last use. We watch std::move on a forwarding reference empty the caller's string, then count constructions to show why `return std::move(w)` only adds a move that the return value optimization would have avoided.