unique_ptr::release
Stores pointer() in stored_ptr and returns its previous contents.
pointer release();
Property Value/Return Value
Returns its previous contents of stored_ptr.
Remarks
The member function stores pointer() in stored_ptr and returns its previous contents.
Requirements
Header: <memory>
Namespace: std