Export (0) Print
Expand All

atomic_store_explicit Function

Atomically stores a value in an atomic object.

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

Atom

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

Value

A value of type Ty.

Order

A memory_order. Do not use memory_order_consume, memory_order_acquire, or memory_order_acq_rel.

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

Header: atomic

Namespace: std

Show:
© 2014 Microsoft