Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
saagarjha
· 7y ago · 0 comments
Qt apparently does something similar to implement Q_FOREACH:
https://stackoverflow.com/a/10522384/5230900
Comments
[–]
likeliv
7y ago
That was pre-c++11. Now using C++11, it is much simpler (using 'auto'). And the C++17 version is even simpler
https://code.woboq.org/qt5/qtbase/src/corelib/global/qglobal...