A C++ template class that provides a limited garbage collection facility for pointers, by allowing pointers to have the elements they point to automatically destroyed when the auto_ptr object is itself destroyed. Deprecated as of C++11 in favor of unique_ptr.
auto_ptr
is deprecated as of C++11. For the C++11 equivalent, unique_ptr
, see the reference page.