Annex D (normative) Compatibility features [depr]

D.10 auto_ptr []

D.10.1 Class template auto_ptr [auto.ptr]

D.10.1.2 auto_ptr members [auto.ptr.members]

X& operator*() const throw();

Requires: get() != 0

Returns: *get()

X* operator->() const throw();

Returns: get()

X* get() const throw();

Returns: The pointer *this holds.

X* release() throw();

Returns: get()

Postcondition: *this holds the null pointer.

void reset(X* p=0) throw();

Effects: If get() != p then delete get().

Postconditions: *this holds the pointer p.