llvm::transform

Apply F to each element of Range and store results at d_first.

Synopsis

Declared in <llvm/ADT/STLExtras.h>

template<
    typename R,
    typename OutputIt,
    typename UnaryFunction>
OutputIt
transform(
    R&& Range,
    OutputIt d_first,
    UnaryFunction F);

Return Value

Output iterator past the last written element.

Parameters

NameDescription
RangeRange to transform.
d_firstOutput iterator receiving transformed values.
FUnary function applied to each element.