std::auto_ptr<T>::release

Releases the held pointer. After the call *this holds the null pointer.

# Declarations

T* release() throw();

(deprecated in C++11) (removed in C++17)

# Return value

get().

# See also