so I see declarations for various template classes and functions which
start with:
template <int __inst>
unfortunately the compiler I use doesn't allow that so I can't
experiment... but I am guessing from the text that what is expected is
an integer value. I assume that that integer is used to further qualify
the template instantiation, so that there could be multiple
instantiations for the template that were unrelated to a change in type.
for example:
template <int __inst>
void myfunc( char *a)
{
....
}
we could have a myfunc<0> and a myfunc<1> and so forth...
I'm somewhat fresh on templates so if someone could clarify that this is
indeed what is the case I'd appreciate it. If not I would appreciate
some clarification on what exactly the intent of this is.
In any case I would also like to hear why one would want to use this
feature? If it helps the code I am reviewing is the SGI template
library...
Thanks,
David