Name
not_eq operator — Inequality operator
Synopsis
equality-expr := equality-expr != relational-expr | equality-expr not_eq relational-expr
The not_eq
operator compares
two expressions for inequality. It returns true
if the operands are different or
false
if they are the same. The
not_eq
keyword is interchangeable
with the !=
token. Note that there
is no keyword equivalent for the ==
operator.
See Also
expression, Chapter 3, <ciso646>
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.