std::atomic_ref<T>::load

Atomically loads and returns the current value of the referenced object. Memory is affected according to the value of order.

# Declarations

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

(constexpr since C++26)

# Parameters

# Return value

The current value of the referenced object.

# See also