Atomically store a new value.
void store( weak_ptr<T> new_value, memory_order order = memory_order_seq_cst) noexcept;
The supplied order
must be one of std::memory_order_relaxed
,
std::memory_order_release
or std::memory_order_seq_cst
Atomically store new_value
in *this
.
Nothing.
This is an atomic store operation for the memory location comprising
*this
.
#include <experimental/atomic>
std::experimental::atomic_weak_ptr
class template
std::experimental::atomic_weak_ptr
members
std::memory_order
enumeration