Summary
This episode clarifies common misconceptions about C++'s auto keyword, explaining that it follows the same type deduction rules as template parameters. Jason demonstrates that auto never deduces reference types (requiring explicit use of & for references), but does deduce const-ness and pointer types. The episode traces auto's history back to 1984 when Bjarne Stroustrup first implemented it, and addresses concerns about hidden copies and type deduction reliability.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[temp.deduct]68% match -
[dcl.type.class.deduct]57% match -
[temp.res.general]52% match -
[diff.class]52% match -
[temp.inst]51% match -
[temp.deduct.type]50% match -
[temp.deduct.guide]48% match -
[temp.deduct.funcaddr]47% match -
[diff.dcl]46% match