First page Back Continue Last page Overview Graphics
countof() overload resolution tricks
Function calls can detect class hierarchies
- Overload resolution is based on parameter types (with conversions applied!)
Different overloads of a function can return different data types:
- int sqrt(int);
- double sqrt(double);
User directed overload resolution: Passing a function call as a parameter to a function lets you compute an overload for the calling function by the parameter to the called function