Smart Pointers

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

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

Up next

6 of 6 questions here are still unsolved.