std::unique_ptr::~unique_ptr
From cppreference.com
< cpp | memory | unique ptr
~unique_ptr();
|
(since C++11) | |
If get() == nullptr
there are no effects, otherwise get_delete()(get()).