Thursday, July 9, 2009

What is the class parameter in a template class?

The template class is meant for C++ programming.

What is the class parameter in a template class?
It's the data type. For example, when you use vectors (which use templates), you do something like vector%26lt;int%26gt; or vector%26lt;float%26gt; or vector%26lt;customClass%26gt; or the like. That's what the class parameter in template%26lt;class%26gt; refers to.


No comments:

Post a Comment