All challenges
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
  1. 1std::shared_ptr
  2. 2std::unique_ptr
  3. 3std::weak_ptr
  4. 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.

Play this in a 3-minute battle