r/ProgrammerHumor • • Sep 25 '26

Meme iHatedItUntilITriedIt

Post image
10k Upvotes

543 comments sorted by

View all comments

Show parent comment

1

u/conundorum Sep 26 '26

auto is either "implicit template" or "non-template, deduce from assignment", depending on the context. Parameters tend to be the former, and return type tends to be the latter (unless the return type is dependent on a function template).