Explicit operators
These are keywords for bitwise and logical operators. Non-U.S. programmers without keyboard characters like &, |, ^, and so on, were forced to use C’s horrible trigraphs, which were not only annoying to type, but obscure when reading. This is repaired in C++ with additional keywords:
Keyword
Meaning
and
&& (logical and)
or
|| (logical or)
not
! (logical NOT)
not_eq
!= (logical not-equivalent)
bitand
& (bitwise and)
and_eq
&= (bitwise and-assignment)
bitor
| (bitwise or)
or_eq
|= (bitwise or-assignment)
xor
^ (bitwise exclusive-or)
xor_eq
^= (bitwise exclusive-or-assignment)
compl
~ (ones complement)
If your compiler complies with Standard C++, it will support these keywords.
I tried with MSVC .Net 2003 and failed to compile!