atomic::store Method
Stores a specified value.
void atomic<Ty>::store(
Ty Value,
memory_order Order = memory_order_seq_cst
) volatile _NOEXCEPT;
void atomic<Ty>::store(
Ty Value,
memory_order Order = memory_order_seq_cst
) _NOEXCEPT;
Parameters
Value
A Ty object.Order
A memory_order constraint.
Remarks
This method atomically stores Value in *this, within the memory constraints that are specified by Order.
Requirements
Header: atomic
Namespace: std