Reference

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 allow auto_ptr objects to be converted to either auto_ptr_ref objects or auto_ptr objects pointing to a different type.

Parameters

none

Return value

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 this auto_ptrs's pointed element and Y* exists.

See also

auto_ptr::auto_ptr
Construct auto_ptr object (public member function)
auto_ptr::operator=
Release and copy auto_ptr (public member function)

AltStyle によって変換されたページ (->オリジナル) /