std::unique_ptr<T,Deleter>::release
From cppreference.com
Template:cpp/memory/unique ptr/sidebar
pointer release();
|
(since C++11) | |
Releases the ownership of the owned object. get() returns Template:cpp after the call.
Parameters
(none)
Return value
Pointer to the owned object, i.e. the value which would be returned by get() before the call.
Exceptions
noexcept specification:
noexcept