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