Parallel Loops in C++
<p>I wonder if there is a light, straight forward way to have loops such as <code>for</code> and range based-<code>for</code> loops compute in parallel in C++. How would you implement such a thing? From Scala I know the <code>map</code>, <code>filter</code> and <code>foreach</code> functions and maybe it would also be possible to perform these in parallel? Is there an easy way to achieve this in C++?</p>
<p>My primary platform is Linux, but it would be nice if it worked cross-platform.</p>