SyTen

◆ mapVector() [1/2]

template<typename I , typename F >
auto syten::mapVector ( std::vector< I > const &  a,
f 
)

Maps a unary function over one vector.

Parameters
athe input vector
fthe function to call on all elements of a
Returns
a vector with the results of f for all vector elements

References std::vector< T >::push_back(), std::vector< T >::reserve(), and std::vector< T >::size().

+ Here is the call graph for this function: