home > resources > c++ coding standard > online version

Type Names

  • When possible for types based on native types make a typedef.
  • Typedef names should use the same naming policy as for a class with the word Type appended.


  • Types are things so should use upper case letters. Type is appended to make it clear this is not a class.

Example 2-13. Type Names Example

typedef uint16  ModuleType;
typedef uint32  SystemType;