Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1287

Comment by HolyBlackCat on Change index of C++ range based for loop using views::enumerate

$
0
0
No, write the loop manually. Not everything needs a stdlib abstraction. For extra style points you can embed the index declaration into the for: for (std::size_t i = 0; const auto &index : indices) {...; i++;}.

Viewing all articles
Browse latest Browse all 1287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>