run vector

This commit is contained in:
chatlanin
2022-03-24 13:04:27 +03:00
parent 2ae61bbb07
commit 94b734647e
7 changed files with 111 additions and 48 deletions

19
src/utils/utils.hpp Normal file
View File

@@ -0,0 +1,19 @@
#pragma once
#include <iostream>
#include <unordered_map>
namespace hack::utils
{
template<typename T, size_t N>
struct generate_tuple
{
using type = decltype(std::tuple_cat(typename generate_tuple<T, N - 1>::type{}, std::make_tuple(T{})));
};
template<typename T>
struct generate_tuple<T, 1>
{
using type = std::tuple<T>;
};
}