C++ Semantics 0/94

Submodule 8 of 12

Smart Pointers

Stop guessing who deletes the object. Covers unique_ptr, shared_ptr, weak_ptr, ownership transfer, and RAII.

0/6 solved
Question Tags Difficulty Success
1. std::move and unique_ptr transfer
Memory ManagementBasics
Easy 80%
2. Which ptr?
Memory Management
Medium 96%
3. Compiles Then Crashes
unique-ptrownership +2
Medium 75%
4. Three Allocations
shared-ptrmake-shared +2
Medium 83%
5. I've got a 90 degree dangle
BasicsMemory Management
Medium 69%
6. Two Two And Silence
shared-ptrreference-cycle +2
Medium 39%

Learning resources

Up next

6 of 6 questions here are still unsolved.