Cplusplus.
can point to a particular resource. When the std::unique_ptr goes out of scope, the memory it manages is automatically deallocated. std::unique_ptr<int> uniquePtr(new int(10)); std::shared_ptr: Enables shared ownership of a resource. Multiple std::shared_ptr instances can point to the same