Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 264 Bytes

File metadata and controls

8 lines (6 loc) · 264 Bytes

auto

The auto keyword primarily serves to:

  1. Automatically deduce types
  2. Simplify complex type declarations
  3. Improve code readability
  4. Reduce maintenance cost (e.g., when a type changes, code using auto does not need its type declarations updated)