|
|
Created by Adriana Vincelli-Joma
about 4 years ago
|
|
Dangers of Operator Overloading
Syntax for Operator Overloading
Two Factors that Govern Number of Arguments in List
Unary Operators that can be Overloaded
Binary Operators that can be Overloaded
4 Steps in Pattern that Govern Arguments and Return Values
Unusual Operators that can be Overloaded
Operators that cannot be overloaded
Member vs Non-member Operators
Guidelines for Operator Overloading
Creating Overloaded Assignment Operator
Behavior of operator= with respect to pointers in classes
reference counting
copy-on-write
Operator= with respect to reference counting
automatic operator= creation
automatic type conversion
Automatic Type Conversion in Constructors
Prevent automatic type conversion in constructors
Automatic type conversion in conjunction with operator overloading
reflexivity
Pitfalls of automatic type conversion
Hide known cards