std::auto_ptr<T>::~auto_ptr Deprecated in C++11, Removed in C++17~auto_ptr() throw(); Destroys the managed object. Calls delete get().