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
  • [in] f: Functor to apply with prototype void f(type, type)

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

Template Parameters
  • Fn: Typename of the functor

  • Ts: Typenames of arguments