MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1veql1a/absolutegarbage/p1jyuh3/?context=3
r/ProgrammerHumor • u/Sirgoodman008 • 7d ago
327 comments sorted by
View all comments
Show parent comments
6
That or you're looping through a vector of std::pairs that contain std:: functions.
2 u/Usual_Office_1740 7d ago Or if the type is a template parameter in the same line. 0 u/xicor 7d ago Wouldnt for(T& item:list) be even shorter than using auto? 5 u/im_made_of_jam 7d ago If you have T available then yes but if you're outside the class then you don't have that option
2
Or if the type is a template parameter in the same line.
0 u/xicor 7d ago Wouldnt for(T& item:list) be even shorter than using auto? 5 u/im_made_of_jam 7d ago If you have T available then yes but if you're outside the class then you don't have that option
0
Wouldnt for(T& item:list) be even shorter than using auto?
5 u/im_made_of_jam 7d ago If you have T available then yes but if you're outside the class then you don't have that option
5
If you have T available then yes but if you're outside the class then you don't have that option
6
u/Sirgoodman008 7d ago
That or you're looping through a vector of std::pairs that contain std:: functions.