|
|
int
, i want to make this also as template.
|
|
|
|
iterator
,say of a vector or map instead of int
.
|
|
|
|
p,q,r
, how does the compiler come to know about the number of instances of Q?typename
is used 3 times.
I mean i have passed 5 arguments , but typename is used 3 times. |
The list of template arguments does not have to be supplied if it can be deduced from context. |