function template · 3 overloads
std::atomic_load
- Header
<atomic>- Scope
std- cppreference
- std::atomic_load
Overloads
- (1)
template<class T> constexpr T atomic_load(const atomic<T>* object) noexcept; - (2)
template<class T> requires atomic<T>::is_always_lock_free T atomic_load(const volatile atomic<T>* object) noexcept; - (3)
template<class T> requires (!atomic<T>::is_always_lock_free) [[deprecated( "a volatile atomic operation on a type that is not always lock-free is deprecated ([depr.atomics.volatile])")]] T atomic_load(const volatile atomic<T>* object) noexcept;