
14 Expressions
14.10 Logical operators
14.10.2 Enumeration logical operators
Paragraph 11 Every enumeration type E implicitly provides the following predefined logical operators: E operator &(E x, E y); E operator |(E x, E y); E operator ^(E x, E y);Paragraph 21 The result of evaluating x op y, where x and y are expressions of an enumeration type E with an underlying type U, and op is one of the logical operators, is exactly the same as evaluating (E)((U)x op (U)y). 2 In other words, the enumeration type logical operators simply perform the logical operation on the underlying type of the two operands.
| |
| Jagger Software Ltd | |
| Company # 4070126 | |
| VAT # 762 5213 42 |