Atomically store a new value.
void store( T* new_value, memory_order order = memory_order_seq_cst) volatile;
- Preconditions:
The supplied
ordermust be one ofstd::memory_order_relaxed,std::memory_order_releaseorstd::memory_order_seq_cst- Effects:
Atomically store
new_valuein*this.- Throws:
Nothing.
- Note:
This is an atomic store operation for the memory location comprising
*this.
#include <atomic>