auto_ptr::release

T *release() throw();

The member function sets the ownership indicator to false, then returns the stored pointer.