## 17.1 Operator Overloading

To define an operator:

- Can't redefine existing behavior
- Can't change precedence, associativity, or arity
- Can't invent new symbols

Overloadable Operators
+ | - | * | / | % | ^ | &
| | ~ | ! | = | < | > | +=
-= | *= | /= | %= | ^= | &= | |=
<< | >> | <<= | >>= | == | != | <=
>= | && | || | ++ | -- | ->* | .
-> | [] | () | new | new[] | delete | delete[]

prev |top |next