[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/memory/auto_ptr/auto_ptr [Back]  [Original]

std::auto_ptr<T>::auto_ptr cppreference.com
cppreference.com

std::auto_ptr<T>::auto_ptr

cppreference.com
 
C++
(C++20)
(C++20)
(C++11)
(C++20)
/
(C++11)
(C++11)
(C++11)
(C++17)
 
 
no section name
no section name
(C++11)( C++23)
(C++11)( C++23)
(C++11)( C++23)
(C++11)( C++23)
(C++11)( C++23)
(C++11)( C++23)



no section name
 
 
<tbody> </tbody>
explicit auto_ptr( X* p = 0 ) throw();
(1) ( C++11)
( C++17)
auto_ptr( auto_ptr& r ) throw();
(2) ( C++11)
( C++17)
template< class Y > auto_ptr( auto_ptr<Y>& r ) throw();
(3) ( C++11)
( C++17)
auto_ptr( auto_ptr_ref<X> m ) throw();
(4) ( C++11)
( C++17)

auto_ptr , .

1) auto_ptr p.
2) auto_ptr , r. r.release().
3) , (2). Y* T*.
4) auto_ptr , auto_ptr, m. auto_ptr p, m, p.release(), .
auto_ptr_ref , , auto_ptr. std::auto_ptr . .

p
r auto_ptr
m , , auto_ptr

auto_ptr_ref std::auto_ptr . , rvalue. ( auto_ptr), , auto_ptr_ref . .


Web Proxy Viewer  |  New URL  |  Original Page