Namespaces
Variants
Actions

std::auto_ptr<T>::operator auto_ptr<Y>

From cppreference.com
< cpp‎ | memory‎ | auto ptr
 
 
Memory management library
(exposition only*)
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
(until C++20*)
(until C++20*)

Garbage collector support (until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
 
 
template< class Y >
operator auto_ptr_ref<Y>() throw();
(1) (deprecated in C++11)
(removed in C++17)
template< class Y >
operator auto_ptr<Y>() throw();
(2) (deprecated in C++11)
(removed in C++17)

Converts *this to an auto_ptr for a different type Y.

1) Returns an implementation-defined type that holds a reference to *this. std::auto_ptr is