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

Sign in to watch this lesson
Ownership Types, Views and Type Erasure · 3:39
std::unique_ptr is the standard library's exclusive owner: one owner, one delete, and ownership that moves but never copies. We follow an order from a factory into a vector and then a member, measure the pointer's size with different deleters on a real Mac, and see why a unique_ptr is the ideal factory return type.