The !=
operator serves this purpose for bool
values.
More Related Contents:
- Is short-circuiting logical operators mandated? And evaluation order?
- What is the difference between the dot (.) operator and -> in C++? [duplicate]
- What does the question mark character (‘?’) mean in C++?
- Initializer lists and RHS of operators
- What is short-circuit evaluation in C?
- Implementing comparison operators via ‘tuple’ and ‘tie’, a good idea?
- The written versions of the logical operators
- !! c operator, is a two NOT?
- C++ [] array operator with multiple arguments?
- Overloading friend operator
- Why is ++i considered an l-value, but i++ is not?
- What does the >?= operator mean?
- Why does C++ need the scope resolution operator?
- Is it possible to get the function pointer of a built-in standard operator?
- Concatenate two string literals
- What is the (“spaceship”, three-way comparison) operator in C++?
- Making operator
- What is the meaning of “operator bool() const”
- Is relying on && short-circuiting safe in .NET?
- Can you make custom operators in C++?
- The copy constructor and assignment operator
- The tilde operator in C
- Operator Overloading in C++ as int + obj
- “&&” and “and” operator in C
- Why does the expression a = a + b – ( b = a ) give a sequence point warning in c++?
- Why is “operator void” not invoked with cast syntax?
- What is the difference between “::” “.” and “->” in c++ [duplicate]
- What does ‘**’ mean in C?
- Does the unary + operator have any practical use?
- Why use ++i instead of i++ in cases where the value is not used anywhere else in the statement?