move assignment (1) | unique_ptr& operator= (unique_ptr&& x) noexcept; |
---|---|
assign null pointer (2) | unique_ptr& operator= (nullptr_t) noexcept; |
type-cast assignment (3) | template <class U, class E> unique_ptr& operator= (unique_ptr<U,E>&& x) noexcept; |
copy assignment (deleted!) (4) | unique_ptr& operator= (const unique_ptr&) = delete; |
|
|
|
|
|
|
foo: empty bar: 101 |