C++: Understanding Template
C++’s class templates provide a better way to generate generic class declarations. Templates provide parameterized types—that is, they are capable of passing a type name as an argument to a recipe for building a class or a function. By feeding the type name int to a Queue template, for example, you can get the compiler to construct a Queue class for queuing ints . Defining Template: template < class Typ e>