unique_ptr Members
Reference
Constructors
There are seven constructors for unique_ptr. |
Typedefs
A synonym for the template parameter Del. |
|
A synonym for the template parameter Type. |
|
A synonym for Del::pointer if defined, otherwise Type *. |
Member Functions
Returns stored_ptr. |
|
Returns a reference to stored_deleter. |
|
stores pointer() in stored_ptr and returns its previous contents. |
|
Releases the currently owned resource and accepts a new resource. |
|
Exchanges resource and deleter with the provided unique_ptr. |
Operators
operator bool |
The operator returns a value of a type that is convertible to bool. The result of the conversion to bool is true when get() != pointer(), otherwise false. |
operator-> |
The member function returns stored_ptr. |
operator* |
The member function returns*stored_ptr. |
Assigns the value of a unique_ptr (or a pointer-type) to the current unique_ptr. |
See Also
Reference
Thread Safety in the Standard C++ Library