cppitertools
writing python in c++ for the greater good
for (auto&& i : range(1, 10, 2)) { ... } for (auto&& [i, e] : enumerate(vec)) { ... } for (auto&& n : imap([] (int i) { return i*i; }, vec)) { ... }