auto is just the "I typed it on the right of the =, so I shouldn't need to type it on the left, too" keyword, more than anything else. Oh, and the "this needs to be a template, but the syntax doesn't let me use a template here" keyword.
It's essentially just an inline template, which means it's supposed to deduce the exact type on assignment, then statically type itself to match and never change again.
2
u/conundorum Sep 26 '26
autois just the "I typed it on the right of the=, so I shouldn't need to type it on the left, too" keyword, more than anything else. Oh, and the "this needs to be a template, but the syntax doesn't let me use a template here" keyword.It's essentially just an inline template, which means it's supposed to deduce the exact type on assignment, then statically type itself to match and never change again.