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 reference. Note that the behavior of this method is the same as reset().

Synopsis

Declared in <bslstl_sharedptr.h>

void
clear() noexcept;

Description

DEPRECATED: Use reset instead.

Created with MrDocs