Template Function gamer::array_util::flatten

Function Documentation

template<typename Fn, typename ...Ts>
void gamer::array_util::flatten(Fn f, Ts... args)

Apply a functor to a sequence.

Parameters
  • f[in] Functor to apply with prototype void f(type, type)

  • args[in] The arguments, array, or sequence

Template Parameters
  • Fn – Typename of the functor

  • Ts – Typenames of arguments