std::auto_ptr<T>::operator auto_ptr<Y>
From cppreference.com
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
.