July 2000
Intermediate to advanced
1280 pages
34h 55m
English
Template instantiations can be used as actual type arguments to instantiate other template classes. For example, you can create a stack of dictionary entries with the following declaration.
Stack<DictEntry<Point,char*> > stackOfEntries; // 100 entries
Notice an extra space between the two greater than signs. If you do not insert this space, the compiler will misunderstand the code and will shower you with a deluge of irrelevant error messages. None of these messages indicates that you need an extra space. This is the second place where C++ is not space blind. Another place where space is important is defining the default parameter value for a function parameter of a pointer type where the ...
Read now
Unlock full access