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;
Parameters
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.
Remarks
atomic_store stores Value in the object that is pointed to by Atom, within the memory_order that is specified by Order.
Requirements
Header: atomic
Namespace: std