Question PRG-CPP-0053
MediumWhat does std::shared_ptr do when its last copy is destroyed?
- A.
Moves the object to a new pointer
- B.
Throws an exception
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
C++ question
What does std::shared_ptr do when its last copy is destroyed?
Moves the object to a new pointer
Throws an exception
Sign up free to see the answer and a step-by-step explanation.
Deletes the managed object
Nothing