Replaces the value in a std::experimental::shared_ptr
with the value in
another std::experimental::shared_ptr
, transferring ownership
from the supplied std::experimental::shared_ptr
to *this
and decreasing the use_count()
of the old value.
shared_ptr& operator=(shared_ptr&& other) noexcept;
shared_ptr& operator=(shared_ptr&& other) noexcept{ shared_ptr temp(std::move(other)); this->swap(temp); return *this; }
#include <experimental/atomic>