std::unique_ptr::unique_ptr
From Cppreference
< cpp | memory | unique ptr
constexpr unique_ptr();
|
(1) | (C++11 feature) |
explicit unique_ptr( pointer p );
|
(2) | (C++11 feature) |
unique_ptr( pointer p, d1 );
|
(3) | (C++11 feature) |
unique_ptr( pointer p, d2 );
|
(4) | (C++11 feature) |
unique_ptr( unique_ptr&& u );
|
(5) | (C++11 feature) |
constexpr unique_ptr( nullptr_t );
|
(6) | (C++11 feature) |
template< class U, class E >
unique_ptr( unique_ptr<U, E>&& u ); |
(7) | (C++11 feature) |
template< class U >
unique_ptr( auto_ptr<U>&& u ); |
(8) | (C++11 feature) |
1) Constructs an empty std::unique_ptr.
2) Constructs a std::unique_ptr which owns p, initializing the stored pointer with p and value-initializing the stored deleter.
3)
4)
5) Constructs a unique_ptr by transferring ownership from u to *this.
6)
7)
8)
[edit] Parameters
This section is incomplete |