Export (0) Print
Expand All

atomic_store Function

Atomically stores a value in an atomic object.

template <class Ty>
inline Ty atomic_store_explicit(
   const volatile atomic<Ty> *Atom,
   Ty Value
) _NOEXCEPT;
template <class Ty>
inline Ty atomic_store_explicit(
   const atomic<Ty> *Atom,
   _Ty Value
) _NOEXCEPT;

Atom

A pointer to an atomic object that contains a value of type Ty.

Value

A value of type Ty.

atomic_store stores Value in the object that is pointed to by Atom, within the memory_order_seq_cst memory_order constraint.

Header: atomic

Namespace: std

Show:
© 2014 Microsoft