In C++ templates are used to write generic code. There are two sorts of template: function templates and class templates.
Some applications of C++ templates are :-
printable version
link view
Everything2 Help