[expr.or] (original) (raw)

The | operator groups left-to-right.

The operands shall be of integral or unscoped enumeration type.

The usual arithmetic conversions ([expr.arith.conv]) are performed.

Given the coefficients and of the base-2 representation ([basic.fundamental]) of the converted operands x and y, the coefficient of the base-2 representation of the result ris 1 if at least one of and is 1, and 0 otherwise.

[Note 1:

The result is the bitwise inclusive or function of the operands.

— _end note_]