Templates (also known as parameterized types) are an important part of the C++ language. They provide a tool for constructing generic classes and functions that are valid for different data types. Templates are intrinsic to the Standard Template Library (also known as the STL), which contains the templates for many useful classes. (See Chapter 17.) Templates can be provided for both functions and classes.
Unable to display preview. Download preview PDF.