not_eq, !=

From RAD Studio
Jump to: navigation, search

Go Up to Keywords, Alphabetical Listing Index


Category

Alternative Representations of Tokens (C++), Operators (C++)

Syntax

Description

The not_eq operator is an alternative representation of != (bitwise inequality). It tests for logical inequivalence.

not_eq compares two expressions to determine whether or not they are the same.

Therefore, 7 != 8 returns true, while 7 != 7 returns false. The same is true for any expression such as Smith != Smith. which returns false.

In order to use the not_eq operator, you need to check the Enable new operator names option (the -VM compiler switch, available on the Compatibility page of the Project > Options dialog box).