[expr.log.or] (original) (raw)

1

#

The || operator groups left-to-right.

The operands are bothcontextually converted to bool.

The result istrue if either of its operands is true, andfalse otherwise.

Unlike |, || guarantees left-to-right evaluation; moreover, the second operand is not evaluated if the first operand evaluates to true.

2

#

The result is a bool.

If the second expression is evaluated, the first expression is sequenced before the second expression ([intro.execution]).