The combination of zip_view and iota_range mean that you can finally do one of the things that should be easy but is ugly with C++11 range-based for loops: Get a loop counter and the value of the current element in a collection easily. Currently, you need to declare the loop counter outside the loop and increment it explicitly. And with C++17 structured binding, you don’t need ugly std::get<> things.
The combination of
zip_view
andiota_range
mean that you can finally do one of the things that should be easy but is ugly with C++11 range-based for loops: Get a loop counter and the value of the current element in a collection easily. Currently, you need to declare the loop counter outside the loop and increment it explicitly. And with C++17 structured binding, you don’t need uglystd::get<>
things.