Saturday, November 27, 2010

Template Point of Declaration

The template's point of declaration is just before the word template.

When explicitly specializing a template, the decaration of the primary template must be in scope at "the point of declaration" of the explicit declaration.

Template parameters have the scope from their point of declaration to the end of it template; so, you can immediately follow a class T template parameter by a T *p template parameter.


No comments:

Post a Comment