<<< Available operators | Index | lvalue explained >>> |
These operators must be members:
= [] () and ->
This ensures the first arguments are lvalues (see next slide).
These operators are predefined (i.e. you get them for free):
operator= operator& operator, (comma)
The following operators cannot be overloaded:
:: (scope) . (member selector) .* (member selection through pointer to member)
Non-member operators must take at least one user-defined type.
<<< Available operators | Index | lvalue explained >>> |