Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

atomic_fetch_and_explicit Function

Performs a bitwise and of a value and an existing value that is stored in an atomic object.

template <class T>
inline T atomic_fetch_and_explicit(
   volatile atomic<T>* Atom,
   T Value,
   memory_order Order); noexcept
template <class T>
inline T atomic_fetch_and_explicit(
   volatile atomic<T>* Atom,
   T Value,
   memory_order Order); noexcept

Atom

A pointer to an atomic object that stores a value of type T.

Value

A value of type T.

Order

A memory_order.

The value contained by the atomic object immediately before the operation was performed.

The atomic_fetch_and_explicit function performs a read-modify-write operation to replace the stored value of Atom with a bitwise and of Value and the current value that is stored in Atom, within the memory constraints that are specified by Order.

Header: atomic

Namespace: std

Show:
© 2014 Microsoft