std::shared_ptr::~shared_ptr

来自cppreference.com
< cpp‎ | memory‎ | shared ptr

 
 
 
 
 
~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.

[编辑] 示例

[编辑] 另请参阅