bsl::shared_ptr::reset

Reset this shared_ptr to the empty state.

Synopsis

Declared in <bslstl_sharedptr.h>

void
reset() noexcept;

Description

Reset this shared pointer to the empty state. If this shared pointer is managing a (possibly shared) object, then release the reference to the shared object, calling the associated deleter to destroy the shared object if this shared pointer is the last shared reference.