Most of C++’s operators can be overloaded. Figure 10.2 shows the operators that cannot be overloaded.1
1. Although it’s possible to overload the address (&
), comma (,
), &&
and ||
operators, you should avoid doing so to avoid subtle errors. For insights on this, see CERT guideline DCL10-CPP.