Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

atomic_load Function

 

Retrieves the stored value in an atomic object.

template <class Ty>
inline Ty atomic_load(
   const volatile atomic<Ty> *Atom) _NOEXCEPT;
template <class Ty>
inline Ty atomic_load(
   const atomic<Ty> *Atom) _NOEXCEPT;

Atom

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

The retrieved value that is stored in Atom.

atomic_load implicitly uses the memory_order_seq_cst memory_order.

Requirements

Header: atomic

Namespace: std

Show:
© 2016 Microsoft