auto_ptr::~auto_ptr

~auto_ptr();

If the ownership indicator is true, the destructor deletes the object designated by the stored pointer p by evaluating the delete expression delete p.