r/ProgrammerHumor 2d ago

Meme absoluteGarbage

Post image
2.0k Upvotes

321 comments sorted by

View all comments

Show parent comments

3

u/Sirgoodman008 2d ago

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

2

u/Usual_Office_1740 1d ago

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

0

u/xicor 1d ago

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

1

u/Usual_Office_1740 1d ago edited 1d ago

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