Hello,
I have to iterate over 5 billions+ combinations so I would like to do it in parallel using the STL for_each loop with parallel execution, but I get an error saying Parallel algorithms require forward iterators or stronger
auto comb = discreture::combinations(_population, 2);
std::for_each(std::execution::par, comb.begin(), comb.end(), [&](auto i) {
DoStuff();
});
Anyway I could make it work with STL for_each?
Thanks