public member function
<memory>

std::auto_ptr::operator

template <class Y> operator auto_ptr_ref<Y>() throw();template <class Y> operator auto_ptr<Y>() throw();
Conversion operators
Conversion operators to allowauto_ptrobjects to be converted to either auto_ptr_ref objects orauto_ptrobjects pointing to a different type.

参数



返回值

An object pointing to the same location, with a different pointer type.
Y is any type for which an implicit conversion between the pointer type of thisauto_ptrs's pointed element and Y* exists.

另见