typedef keyword

   
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

   


C++ in a Nutshell
C++ in a Nutshell
ISBN: 059600298X
EAN: 2147483647
Year: 2005
Pages: 270
Authors: Ray Lischner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net