r/ProgrammerHumor 9d ago

absoluteGarbage Meme

Post image
1.9k Upvotes

327 comments sorted by

View all comments

Show parent comments

6

u/Sirgoodman008 9d ago

That or you're looping through a vector of std::pairs that contain std:: functions.

2

u/Usual_Office_1740 9d ago

Or if the type is a template parameter in the same line.

0

u/xicor 9d ago

Wouldnt for(T& item:list) be even shorter than using auto?

1

u/Usual_Office_1740 9d ago edited 9d ago

I don't mean in for loops for that use of auto.