Monday, November 22, 2010

Template Ids

Given the following declaration: template <typename T> class Stack;
Stack<int> is a template id, and Stack is not a template id.

Reference: C++ Templates by David Vandevoorde and Nicolai M. Jouttis. Addison-Wesley, 2003.

No comments:

Post a Comment