First page Back Continue Last page Graphics
Function Template
Definition of functions with “generic” types. Another name is parameterized types.
The most often example, is the swap.
Swap integers, need a swap(int *, int *);
Swap floats, need a swap(float *, float *);
Swap doubles, need a swap(double*, double *);
Swap structures, need a ....... and so on.