Which smart pointer represents exclusive ownership with no runtime overhead?
- A std::shared_ptr
- B std::unique_ptr
- C std::weak_ptr
- D std::auto_ptr
Answer
std::unique_ptr
unique_ptr cannot be copied, only moved, and occupies the same space as a raw pointer. It should be the default choice.





