State typedef class names before specifications

When declaring a typedef of class, place the name between the data type and the member specifications.

typedef class T {...};

For compatibility with C, many compilers currently support declaring the name after the member specifications, though this is bad form and not guaranteed to be supported by C++ compilers.

typedef class {...} T;

NOTE A C++ class-type is a class, struct, or union.

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker