Template Function icrar::vector_map
Defined in File vector_extensions.h
Function Documentation
-
template<typename Func, typename Seq>
auto icrar::vector_map(Func func, const Seq &seq) Performs a std::transform on a collection into a newly allocated std::vector.
- Template Parameters:
Func – function of signature return_type(const value_type&)
Seq – iterable collection of type value_type
- Parameters:
func – transformation function
seq – iterable collection to transform
- Returns:
std::vector<value_type>