bsl::shared_ptr::~shared_ptr

Destroy this shared_ptr and release its managed object if last owner.

Synopsis

Declared in <bslstl_sharedptr.h>

~shared_ptr();

Description

Destroy this shared pointer. If this shared pointer refers to a (possibly shared) object, then release the reference to that object, and destroy the shared object using its associated deleter if this shared pointer is the last reference to that object.