次の方法で共有


atomic::operator|= 演算子

指定されている値と *this の格納されている値でビットごとの or を実行します。 整数の特殊化でのみ使用されます。

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

パラメーター

  • Value
    Ty 型の値。

戻り値

ビットごとの or の結果。

解説

この演算子は memory_order_seq_cstmemory_order の制約の制約内で Value と *thisに格納されている現在の値のビットごとのな or と *this に格納されている値を置き換えるに read-modify-write 操作を実行します。

必要条件

ヘッダー: atomic

名前空間: std

参照

関連項目

atomic 構造体

<atomic>

atomic::operator&= 演算子

atomic::operator^= 演算子

atomic_fetch_or_explicit 関数