Map a range to a SmallVector with element types deduced from the mapping. F can be a function, lambda, or member pointer.
Declared in <llvm/ADT/SmallVectorExtras.h>
template<
unsigned int Size,
class ContainerTy,
class FuncTy>
auto
map_to_vector(
ContainerTy&& C,
FuncTy&& F);
A SmallVector of the results of applying F to each element of C.
| Name | Description |
|---|---|
| C | Container or range to map over. |
| F | Mapping function applied to each element. |