home *** CD-ROM | disk | FTP | other *** search
- You can use a function template to define a family of functions
- that are identical except for the types of one or more of their
- arguments. A template function is an instance of the template.
- This example shows a template function that exchanges the values
- of two objects of the same type. Notice how the type "T" is used
- in the list of formal arguments of the function and in the body of
- the function.
-