One class template definition allows production of a variety of templates classes. Each time programmer needs a new type-specific created, use concise, simple notation. T indicating type of stack to be created. You do not have to use identifier T, any identifier can be used. Must support the assignment operator.
Program attempts to pop off sixth value, pop ends.
Program loops through pushing values onto intStack until full, then loops through popping values off intStack until empty. Class Templates and Non-type Parameters Stack class template of previous section used only type parameters in the template header. Creates a 100-element stack template class named MostRecentSalesFigures of double values.