atomic::operator^= Operator

Performs a bitwise exclusive or on a specified value and the stored value of *this. Used only by integral specializations.

atomic<Ty>::operator^= (
   Ty Value
) volatile _NOEXCEPT;
atomic<Ty>::operator^= (
   Ty Value
) _NOEXCEPT;

Parameters

  • Value
    A value of type Ty.

Return Value

The result of the bitwise exclusive or.

Remarks

This operator 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, within the constraints of the memory_order_seq_cstmemory_order constraints.

Requirements

Header: atomic

Namespace: std

See Also

Reference

atomic Structure

<atomic>

atomic::operator&= Operator

atomic::operator|= Operator

atomic_fetch_xor_explicit Function