W3cubDocs

/C++

std::atomic_ref<T>::operator T

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
(public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/atomic/atomic_ref/operator_T