Reputation:
In GCC there is a convenient experimental feature for a parallel for_each, which means it works rather elegantly on iterator loops.
I'm not as familiar with VC++, but I'm dealing with a Windows specific project.
Is there a straight forward MS equivalent somewhere? My searches insofar keep getting thwarted by bumping into the .NET for_each, outdated threads, and the occasional OpenMP one (which works rather inefficiently on splitting iterators it seems).
Using VS2013 SP4, and need to keep 3rd party libs to ab absolute minimum and with no licensing hassles (hence me not using TBB).
Upvotes: 1
Views: 266
Reputation: 15334
You could try the Microsoft Parallel Patterns Library (PPL). It has a parallel_for_each.
Upvotes: 2