CIS-255 Home
http://www.c-jump.com/bcc/c255c/c255syllabus.htm
Operator Overloading
- C++ Operators
- Kinds of operators
- Arguments of operators
- Rational numbers
- Rational number examples
- Rational number approximation
- Binary member operator syntax
- Unary member operator syntax
- Non-member binary operator syntax
- Available operators
- Special operators
- lvalue explained
- Assignment operators
- operator= and copy constructor
- Common uses of operators
- Increment ++ and decrement -- syntax
- The dual operator[] idiom
- Conversion by constructor
- Conversion by constructor mix-up
- Functors
- Caution: when operator overloading can hurt your users
- Do not overload logical operators!
- Advice