Lecture 5 - Slide 35 : 40
Function templates
Functions outside classes can also be defined as templates
The template function compare, and various uses of it.
We make a version of class Point with an overloaded < operator
Class Point with comparison operator friends.
The implementation of class Point.
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