std::atomic_ref<T>::operatorT (3) - Linux Manuals

std::atomic_ref<T>::operatorT: std::atomic_ref<T>::operatorT

NAME

std::atomic_ref<T>::operatorT - std::atomic_ref<T>::operatorT

Synopsis


operator T() const noexcept; (since C++20)


Atomically loads and returns the current value of the referenced object. Equivalent to load().

Parameters


(none)

Return value


The current value of the referenced object.

See also


     atomically obtains the value of the referenced object
load (public member function)