Multiple ChoiceBeginner 45s
Which smart pointer for exclusive ownership
Which smart pointer should you use by default for exclusive ownership of a heap object?
Options
- 1std::shared_ptr
- 2std::unique_ptr
- 3std::weak_ptr
- 4std::auto_ptr
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.