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++;}
.