Windows apps
Collapse the table of content
Expand the table of content
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_xor Function

 

Performs a bitwise exclusive or on a value and an existing value that is stored in an atomic object.

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

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

Atom

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

Value

A value of type T.

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

The atomic_fetch_xor function performs a read-modify-write operation to replace the stored value of Atom with a bitwise exclusive or of Value and the current value that is stored in Atom, using the memory_order_seq_cst memory_order.

Requirements

Header: atomic

Namespace: std

Show:
© 2016 Microsoft