Scroll to navigation

std::atomic_ref::operatorT(3) C++ Standard Libary std::atomic_ref::operatorT(3)

NAME

std::atomic_ref::operatorT - std::atomic_ref::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


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

2022.07.31 http://cppreference.com