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 Method

 

Performs a bitwise exclusive or on a value and an existing value that is stored in *this.

Ty atomic<Ty>::fetch_xor (
   Ty Value,
   memory_order Order = memory_order_seq_cst
) volatile _NOEXCEPT;
Ty atomic<Ty>::fetch_xor (
   Ty Value,
   memory_order Order = memory_order_seq_cst
) _NOEXCEPT;

Value

A value of type Ty.

Order

A memory_order.

A Ty object that contains the result of the bitwise exclusive or.

The fetch_xor method performs a read-modify-write operation to replace the stored value of *this with a bitwise exclusive or of Value and the current value that is stored in *this, and applies the memory constraints that are specified by Order.

Requirements

Header: atomic

Namespace: std

Show:
© 2016 Microsoft