std::atomic<T>::operatorT (3) - Linux Man Pages

std::atomic<T>::operatorT: std::atomic<T>::operatorT

NAME

std::atomic<T>::operatorT - std::atomic<T>::operatorT

Synopsis


operator T() const noexcept; (since C++11)
operator T() const volatile noexcept;


Atomically loads and returns the current value of the atomic variable. Equivalent to load().

Parameters


(none)

Return value


The current value of the atomic variable.

See also


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