parallelForEach overloads

Synopses

Declared in <llvm/Support/Parallel.h>

Apply Fn to each element of range R, possibly in parallel.

template<
    class RangeTy,
    class FuncTy>
void
parallelForEach(
    RangeTy&& R,
    FuncTy Fn);

Apply Fn to each element in []`Begin,` End), possibly in parallel.

template<
    class IterTy,
    class FuncTy>
void
parallelForEach(
    IterTy Begin,
    IterTy End,
    FuncTy Fn);

Parameters

Name

Description

R

Range whose elements are visited.

Fn

Callable invoked once per element.

Begin

Beginning of the random‐access range.

End

End of the random‐access range.

Created with MrDocs