Map a range to a SmallVector with element types deduced from the mapping. F can be a function, lambda, or member pointer.
Synopses
Declared in <llvm/ADT/SmallVectorExtras.h>
Map a range to a SmallVector with element types deduced from the mapping. F can be a function, lambda, or member pointer.
template<
class ContainerTy,
class FuncTy>
auto
map_to_vector(
ContainerTy&& C,
FuncTy&& F);
Map a range to a SmallVector with element types deduced from the mapping. F can be a function, lambda, or member pointer.
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
Name |
Description |
C |
Container or range to map over. |
F |
Mapping function applied to each element. |
Created with MrDocs