Namespaces
Variants
Views
Actions

std::unique_ptr::~unique_ptr

From cppreference.com
< cpp‎ | memory‎ | unique ptr
Revision as of 09:29, 27 December 2012 by Nate (Talk | contribs)

 
 
 
 
 
~unique_ptr();
(since C++11)

If get() == nullptr there are no effects. Otherwise, the owned object is destroyed via get_deleter()(get()).