1 2 3 4 5 6 7
template <typename T, size_t N, size_t M> void foo(T& arr) { array<T, N> temp; int count = 0; for (int i = 0; i<N; i++) temp[i] = count++; //Здесь как? }