Namespaces
Variants
Views
Actions

std::shared_ptr::~shared_ptr

From cppreference.com
< cpp‎ | memory‎ | shared ptr
Revision as of 20:16, 31 May 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
 
~shared_ptr();

If *this owns an object and it is the last shared_ptr owning it, the object is destroyed through the owned deleter. Otherwise does nothing.

[edit] Example

[edit] See also