Standard C++ Library Reference ISO/IEC (VERSION3)

auto_ptr::operator auto_ptr<Other>
template<class Other>
operator auto_ptr<Other>() throw();
The type cast operator returns auto_ptr<Other>(*this).
auto_ptr::operator auto_ptr_ref<Other>
template<class Other>
operator auto_ptr_ref<Other>() throw();
The type cast operator returns auto_ptr_ref<Other>(*this).
auto_ptr::release
Ty *release() throw();
The member replaces the stored pointer myptr with a null pointer and returns the previously
stored pointer.
auto_ptr::reset
void reset(Ty *ptr = 0);
The member function evaluates the expression delete myptr, but only if the stored pointer
value myptr changes as a result of function call. It then replaces the stored pointer with ptr.
auto_ptr_ref
template<class Ty>
struct auto_ptr_ref {
auto_ptr_ref(auto_ptr<Ty>& right);
};
The class describes an object that stores a reference to an object of class auto_ptr<Ty>. It is
used as a helper class for auto_ptr<Ty>. You should not have an occasion to construct an
auto_ptr_ref<Ty> object directly.
get_temporary_buffer
template<class Ty>
pair<Ty *, ptrdiff_t>
get_temporary_buffer(ptrdiff_t count);
The template function allocates storage for a sequence of at most count elements of type Ty,