The template parameters are specified in the angle bracket enclosed list
that immediately follows the keyword
template. For partial specializations, the template argument list is explicitly
written immediately following the class template name
. For primary templates, this list is implicitly described by the
template parameter list
. Specifically, the order of the template arguments is the sequence in
which they appear in the template parameter list
. [
Example 3:
The template argument list for the primary template in the example
above is
<T1,
T2,
I>. —
end example]
[
Note 1:
The template argument list cannot be specified in the primary template
declaration
. For example,
template<class T1, class T2, int I>
class A<T1, T2, I> { };
— end note]