Which statement about std::shared_ptr's reference count is correct?
- A It is updated atomically, which has a measurable cost
- B It is not thread-safe
- C It is stored inside the managed object
- D It never decrements
Answer
It is updated atomically, which has a measurable cost
The atomic count makes shared_ptr safe to copy across threads but slower than unique_ptr, so it should be used only when ownership is genuinely shared.





