||Computer Science II
Virtual functions, classes, inheritance, lists, queues, stacks, applications
The following may be overloaded:
/ * + - % ^ | & ~ ! < > >> <<
/= *= += -= %= ^= |= &= ~= != <= >= >>= >>=
&& || ++ -- , new delete
+ - * &
Overloaded only with member operator functions:
= [ ] ( ) ->
The following operators cannot be overloaded:
. ? : :: .*
At least one argument must be of user-defined type.
Operators for built-in data types can not be changed (e.g. integers...)
Operator functions can not have default values for arguments.
The arity of an operator can not be changed.
New operators cannot be introduced (e.g.: **)
Operator precedence cannot be changed.