atomic_load 함수
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
이 Ty 형식의 값을 포함하는 atomic 개체에 대한 포인터입니다.
반환 값
검색된 된 값은 Atom을 저장합니다.
설명
atomic_load implicitly uses the memory_order_seq_cst memory_order.
요구 사항
헤더: atomic
네임스페이스: std