Aliases¶
Aliases are used when we want to insulate our code from details of the underlying machine. - note that naming a type after its representation than its purpose is not neccessarily a good idea.
1. typedef¶
1 2 | |
2. using¶
the using keyword can also be used to introduce a template alias.
1 2 | |
but we cannot apply type specifiers, such as unsigned, to an alias.
1 2 3 | |