Access index of current element in range-for loop c++20

After looking into defining a view interface, I decided to use range-v3.

There are several things missing from std::ranges, and until they are added in future standards, it is sensible to use range-v3 rather than repeatedly attempting non-trivial implementations yourself.

enter image description here

Leave a Comment