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

Sign in to watch this lesson
Classes and Resource Ownership · 3:52
A deep copy is safe but slow, and many copies come from temporaries that are about to die anyway. We count the doubles copied by r = x + y + z, write a move constructor that steals the buffer instead, and see what std::move really does and what a moved-from object is left holding.