
25 Unsafe code
25.5 Pointers in expressions
25.5.7 Pointer comparison
Paragraph 11 In an unsafe context, the ==, !=, <, >, <=, and => operators (§14.9) can be applied to values of all pointer types. 2 The pointer comparison operators are: bool operator ==(void* x, void* y); bool operator !=(void* x, void* y); bool operator <(void* x, void* y); bool operator >(void* x, void* y); bool operator <=(void* x, void* y); bool operator >=(void* x, void* y);Paragraph 21 Because an implicit conversion exists from any pointer type to the void* type, operands of any pointer type can be compared using these operators. 2 The comparison operators compare the addresses given by the two operands as if they were unsigned integers.
| |
| Jagger Software Ltd | |
| Company # 4070126 | |
| VAT # 762 5213 42 |