copy (1) | shared_ptr& operator= (const shared_ptr& x) noexcept;template <class U> shared_ptr& operator= (const shared_ptr<U>& x) noexcept; |
---|---|
move (2) | shared_ptr& operator= (shared_ptr&& x) noexcept;template <class U> shared_ptr& operator= (shared_ptr<U>&& x) noexcept; |
move from (3) | template <class U> shared_ptr& operator= (auto_ptr<U>&& x);template <class U, class D> shared_ptr& operator= (unique_ptr<U,D>&& x); |
|
|
*foo: 30 *bar: 20 |