3 ms·
(Since c++17) The technique you so well describe in your comment does not work with the original range for :( Not that it is an issue anymore, but I'd forgive
by 112233 1y ago
(Since c++17)
The technique you so well describe in your comment does not work with the original range for :(
Not that it is an issue anymore, but I'd forgive anyone who tried to write code like this when range for was added from not trying anymore, because they remember the original semantics.
The page: https://cppreference.com/w/cpp/language/range-for.html https://cppreference.com/w/cpp/language/range-for.html
reads like a testimony in a negligence court case.