std::atomic_ref<T>:: operator T
From cppreference.com
<
cpp
|
atomic
|
atomic ref
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::atomic_ref
| Member functions | ||||
|
atomic_ref::operator T
|
||||
|
(C++26)
|
||||
| Constants | ||||
| Specialized member functions | ||||
|
Specialized for integral,
floating-point and pointer types |
||||
|
Specialized for integral and
pointer types only |
||||
|
(C++26)
|
||||
|
(C++26)
|
||||
| Specialized for integral types only | ||||
|
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) |
Retrieved from "
https://en.cppreference.com/mwiki/index.php?title=cpp/atomic/atomic_ref/operator_T&oldid=161437
"