|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <atomic> | ||
template<class T> T atomic_load(conststd::atomic<T>* obj)noexcept; | (1) | (since C++11) |
template<class T> T atomic_load(constvolatilestd::atomic<T>* obj)noexcept; | (2) | (since C++11) |
template<class T> T atomic_load_explicit(conststd::atomic<T>* obj, | (3) | (since C++11) |
template<class T> T atomic_load_explicit(constvolatilestd::atomic<T>* obj, | (4) | (since C++11) |
| obj | - | pointer to the atomic object to modify |
| order | - | the memory synchronization ordering for this operation |
The value that is held by the atomic object pointed to byobj.
| atomically obtains the value of the atomic object (public member function of std::atomic<T>)[edit] | |
(C++11)(C++11) | atomically replaces the value of the atomic object with a non-atomic argument (function template)[edit] |
(C++11) | defines memory ordering constraints for the given atomic operation (enum)[edit] |
(deprecated in C++20)(removed in C++26) | specializes atomic operations forstd::shared_ptr (function template) |
C documentation foratomic_load,atomic_load_explicit | |