First page Back Continue Last page Graphics
TEMPLATE FUNCTIONS
Generic Functions are implemented in C++ by Template Functions.
A Template Function is a single definition for a family of functions - or types - that behave similarly.
For our example, we will compare the original median function code with the template version.