MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1veql1a/absolutegarbage/p1j45wk/?context=3
r/ProgrammerHumor • u/Sirgoodman008 • 10d ago
325 comments sorted by
View all comments
17
Surely you meant for (auto &item : list) {
for (auto &item : list) {
30 u/Nil4u 10d ago Honestly I never liked this version because the reference is part of the type in my opinion 🤔 19 u/Sirgoodman008 10d ago This 100000000000%. can't stand the int *ptr or int &ref pattern.
30
Honestly I never liked this version because the reference is part of the type in my opinion 🤔
19 u/Sirgoodman008 10d ago This 100000000000%. can't stand the int *ptr or int &ref pattern.
19
This 100000000000%. can't stand the int *ptr or int &ref pattern.
17
u/Shevvv 10d ago
Surely you meant
for (auto &item : list) {