Documentation Home >> Headers >> <atomic> Header >> std::atomic >> specializations >> std::atomic<integral-type> >> std::atomic<integral-type>::operator^= Compound Assignment Operator

Atomically replace the value stored in *this with the bitwise-xor of the supplied value and the value stored in *this and return the new value.

integral-type operator^=(
    integral-type i) volatile;

Returns:

this->fetch_xor(i,std::memory_order_seq_cst) ^ i.

Throws:

Nothing.

Header

#include <atomic>

See Also