This documentation is archived and is not being maintained.
parallel_for_each Function
Visual Studio 2010
parallel_for_each applies a specified function to each element within a range, in parallel. It is semantically equivalent to the for_each function in the std namespace, except that iteration over the elements is performed in parallel, and the order of iteration is unspecified. The argument _Func must support a function call operator of the form operator()(T) where the parameter T is the item type of the container being iterated over.
template < typename _Iterator, typename _Function > void parallel_for_each( _Iterator_First, _Iterator_Last, const _Function& _Func );
For more information, see Parallel Algorithms.
Show: