Appendix E. Other Operators
In order to avoid terminal obesity, the main text of this book doesn’t cover two groups of operators. The first group consists of the bitwise operators, which let you manipulate individual bits in a value; these operators were inherited from C. The second group consists of two-member dereferencing operators; they are C++ additions. This appendix briefly summarizes these operators.
The bitwise operators operate on the bits of integer values. For example, the left-shift operator moves bits to the left, and the bitwise negation operator turns each
1 to a
0, and each
0 to a
1. Altogether, C++ has six such operators:
The Shift Operators
The left-shift operator has the following ...