18. Operator Overloading
When I use a word it means just what I choose it to mean – neither more nor less.
– Humpty Dumpty
• Operator Functions
Binary and Unary Operators; Predefined Meanings for Operators; Operators and User-Defined Types; Passing Objects; Operators in Namespaces
• A Complex Number Type
Member and Nonmember Operators; Mixed-Mode Arithmetic; Conversions; Literals; Accessor Functions; Helper Functions
• Type Conversion
Conversion Operators; explicit Conversion Operators; Ambiguities
Every technical field – and most nontechnical fields – has developed conventional shorthand notation to make convenient the presentation and discussion involving frequently used concepts. For example, because ...