0

I need to parallelise a for loop, that does quite a lot of processing over thousands of items. I came up with this basic loop that seems to work quite effectively on a small test.
template<class T, class C>
void parallel_for_each(std::vector<T>* ts, C callable, uint poolsize = (std::thread::hard...