Objectives : Types of function-template-parameters
- Code :
myTemplateTypeParam1.txt
- Template Type Parameters : Template Type Parameters
are template parameters that refer to a type; they are the most
common form of template parameters.
- The syntax is simple: typename name or class name
- Template type
In the above illustration, "myArray" is a function template with
two template type parameter.
- The above template can be called with parameters, and
those can be shuffled as desired.
|