Skip to main content

std::auto_ptr<T>::reset

Deprecated in C++11, Removed in C++17
void reset( T* p = 0 ) throw();

Replaces the held pointer by p. If the currently held pointer is not null pointer, delete get() is called.

Parameters

p - a pointer to an object to manage

Return value

(none)

std::auto_ptr<T>::reset

Deprecated in C++11, Removed in C++17
void reset( T* p = 0 ) throw();

Replaces the held pointer by p. If the currently held pointer is not null pointer, delete get() is called.

Parameters

p - a pointer to an object to manage

Return value

(none)