llvm::for_each

Apply F to each element of Range.

Synopsis

Declared in <llvm/ADT/STLExtras.h>

template<
    typename R,
    typename UnaryFunction>
UnaryFunction
for_each(
    R&& Range,
    UnaryFunction F);

Return Value

The function object F after iteration.

Parameters

NameDescription
RangeRange to iterate.
FUnary function applied to each element.