Chapter 4
Generic Programming and Templates
Section 4
Non-Type Template Parameters
Templates in C++ have an additional feature—non-type template parameters. A non-type template parameter is a template parameter that is not a type—it is a value. The declaration of a non-type template parameter is in the parameter list of the template, but instead of starting with a typename keyword like the type parameters, it starts with the type of the value, followed by the identifier.