Glossary: C++ Beyond the Basics
Shared pointer
Also written: std::shared_ptr, shared_ptr, std::make_shared
`std::shared_ptr` allows several owners of one object, keeping a reference count and deleting the object when the last owner goes.
Glossary: C++ Beyond the Basics
Also written: std::shared_ptr, shared_ptr, std::make_shared
`std::shared_ptr` allows several owners of one object, keeping a reference count and deleting the object when the last owner goes.