libycxx

function template · 3 overloads

std::atomic_fetch_and_explicit

Header
<atomic>
Scope
std

Overloads

  1. template<class T>
    constexpr T atomic_fetch_and_explicit(
        atomic<T>* object,
        T operand,
        memory_order o) noexcept;
    (1)
  2. template<class T>
      requires atomic<T>::is_always_lock_free
    T atomic_fetch_and_explicit(
        volatile atomic<T>* object,
        T operand,
        memory_order o) noexcept;
    (2)
  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_explicit(volatile atomic<T>* object, T operand, memory_order o) noexcept;
    (3)