Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module User's Guide

7.4 Declaring Generic Collection Classes

All the Essential Tools Module generic collection classes are declared as in the example above, using the declare macro defined in the header file <generic.h>. However, there is one important difference in how the Essential Tools Module classes are declared versus the pattern set by Stroustrup (1986, Section 7.3.5). The difference is summarized below:

In Stroustrup, the class is declared using a typedef for a pointer to the collected item. The Rogue Wave generic classes are all declared using the item name itself. This is true for both the reference-semantics and value-semantics classes.

Previous fileTop of DocumentContentsIndex pageNext file

©2004 Copyright Quovadx, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.