Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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;
Parameters
- Atom
A pointer to an atomic object that contains a value of type Ty.
Return Value
The retrieved value that is stored in Atom.
Remarks
atomic_load implicitly uses the memory_order_seq_cstmemory_order.
Requirements
Header: atomic
Namespace: std