atomic::operator^= 演算子

*thisの指定された値と格納される値の exclusive or をビットごとに実行します。必要な特化でのみ使用されます。

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

パラメーター

  • Value
    Ty 型の値。

戻り値

ビットごとの exclusive orの結果。

解説

この演算子は Value と *thisに格納されている実行し、 memory_order_seq_cstmemory_orderを適用して現在の値のビットごとに置き換えるに read-modify-write 操作を exclusive or と *this の格納されている値の。

必要条件

ヘッダー: の分割

名前空間: std

参照

関連項目

アトミック構造

<atomic>

atomic::operator&= 演算子

atomic::operator|= 演算子

atomic_fetch_xor_explicit 関数