<<< Conversion by constructor mix-up | Index | Caution: when operator overloading can hurt your users >>> |
operator( ) can only be defined as a member.
Classes which define operator( ) are functors.
operator( ) can take any number of arguments
Use functors in place of function pointers (and vice versa!)
We will see examples of functors when studying the STL algorithms.
<<< Conversion by constructor mix-up | Index | Caution: when operator overloading can hurt your users >>> |