|
|
Function templates |
Functions outside classes can also be defined as templates |
We make a version of class Point with an overloaded < operator |
Inappropriate actual type parameters are simply discovered by the compiler Appropriateness is not expressed by inheritance relationships Type parameter may be deduced automatically in function templates |