Namespaces
Variants
Views
Actions

std::atomic_ref::operator T

From cppreference.com
< cpp‎ | atomic‎ | atomic ref
 
 
 
 
operator T() const noexcept;
(since C++20)

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

[edit] Parameters

(none)

[edit] Return value

The current value of the referenced object.

[edit] See also

atomically obtains the value of the referenced object
(public member function) [edit]