home *** CD-ROM | disk | FTP | other *** search
- Containers are excellent candidates for code reuse. You can use
- the C++ template feature to write, or re-use, container classes
- that have a generalized form. Here is the definition of a
- template for the class Alist. The "class T" represents a type not
- yet specified. At compile time, a defined type, such as int or
- PhoneNum, is substituted for the parameterized type "T".
-