home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH15 / A15101.TXT < prev    next >
Encoding:
Text File  |  1993-09-29  |  411 b   |  8 lines

  1. You can use a function template to define a family of functions
  2. that are identical except for the types of one or more of their
  3. arguments.  A template function is an instance of the template.
  4. This example shows a template function that exchanges the values
  5. of two objects of the same type.  Notice how the type "T" is used
  6. in the list of formal arguments of the function and in the body of
  7. the function.
  8.