Lecture 5 - Slide 35 : 40
Function templates
Functions outside classes can also be defined as templates
cmp.cc
The template function compare, and various uses of it.
We make a version of class Point with an overloaded < operator
point.h
Class Point with comparison operator friends.
point.cc
The implementation of class Point.
cmp.cc
The template function compare used for Point comparison.

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