Template Function morpheus::foreach_map#

Function Documentation#

template<typename FuncT, typename SeqT>
auto morpheus::foreach_map(
const SeqT &seq,
FuncT func
)#

Apply a function func to a sequence seq and return the results in a new vector.

Parameters:
  • seq

  • func

Returns:

std::vector<return_t>