std::atomic<T>::load

Atomically loads and returns the current value of the atomic variable. Memory is affected according to the value of order.

# Declarations

T load( std::memory_order order
= std::memory_order_seq_cst ) const noexcept;

(since C++11)

T load( std::memory_order order
= std::memory_order_seq_cst ) const volatile noexcept;

(since C++11)

# Parameters

# Return value

The current value of the atomic variable.

# See also