DekGenius.com
Team LiB   Previous Section   Next Section
typedef keyword Declares a type synonym

decl-specifier := typedef

A typedef declaration creates a synonym for an existing type. It does not create a new type (as class and enum do).

Example

typedef unsigned int UINT;
typedef map<string,string> dictionary;

See Also

class, declaration, enum, struct, typeid, union, Chapter 2

    Team LiB   Previous Section   Next Section