atomic_load_explicit Function

Retrieves the stored value in an atomic object, within a specified memory_order.

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

Atom

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

Order

A memory_order. Do not use memory_order_release or memory_order_acq_rel.

The retrieved value that is stored in Atom.

Header: atomic

Namespace: std

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