Bitwise Assignment Operators

Each bitwise operator (except the bitwise complement operator) has a corresponding assignment operator. These bitwise assignment operators are shown in Fig. 20.12; they’re used in a similar manner to the arithmetic assignment operators introduced in Chapter 4.

Image

Fig. 20.12. Bitwise assignment operators.

Figure 20.13 shows the precedence and associativity of the operators introduced up to this point in the text. They’re shown top to bottom in decreasing order of precedence.

Image

Fig. 20.13. Operator precedence and associativity. ...

Get C++11 for Programmers, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.