The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Visual Studio 2012
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 ); template < typename _Iterator, typename _Function, typename _Partitioner > void parallel_for_each( _Iterator_First, _Iterator_Last, const _Function& _Func, _Partitioner&& _Part );
auto_partitioner will be used for the overload without an explicit partitioner.
For iterators that do not support random access, only auto_partitioner is supported.
For more information, see Parallel Algorithms.