, typename Previous, typename... Output> struct PermutationNHelper;  template <std::size_t N, template <typename...> class P, typename First, typename... Rest, typename... Prev, typename... Output> struct PermutationNHelper<N, P<