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;

Value

A Ty object.

Order

A memory_order constraint.

This method atomically stores Value in *this, within the memory constraints that are specified by Order.

Header: atomic

Namespace: std

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft