llvm::map_to_vector

Map a range to a SmallVector with element types deduced from the mapping. F can be a function, lambda, or member pointer.

Synopsis

Declared in <llvm/ADT/SmallVectorExtras.h>

template<
    unsigned int Size,
    class ContainerTy,
    class FuncTy>
auto
map_to_vector(
    ContainerTy&& C,
    FuncTy&& F);

Return Value

A SmallVector of the results of applying F to each element of C.

Parameters

NameDescription
CContainer or range to map over.
FMapping function applied to each element.