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::operator|= Operator

 

Performs a bitwise 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;

Value

A value of type Ty.

The result of the bitwise or.

This operator performs a read-modify-write operation to replace the stored value of *this with a bitwise or of Value and the current value that is stored in *this, within the constraints of the memory_order_seq_cst memory_order constraints.

Requirements

Header: atomic

Namespace: std

Show:
© 2016 Microsoft