C++ Language/Type/Shortcuts

The traditional way of defining a C++ variable explicitly specifies a type and a variable name. But several language features allow a programmer to take a shortcut, instead of fully specifying a type and a variable name.

  1. Templated typedef
  2. From Another Variable
  3. From Initialization
  4. From a return Statement
  5. Trailing Return Type