function template · 3 overloads
std::atomic_fetch_and
- Header
<atomic>- Draft
- [atomics.types.int]
- Scope
std- cppreference
- std::atomic_fetch_and
Overloads
- (1)
template<class T> constexpr T atomic_fetch_and(atomic<T>* object, T operand) noexcept; - (2)
template<class T> requires atomic<T>::is_always_lock_free T atomic_fetch_and(volatile atomic<T>* object, T operand) 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_fetch_and(volatile atomic<T>* object, T operand) noexcept;