So i have a list of pairs where the first member is a constant integer and the second is a type, is there anyway to unpack it into an array of the first member and a tuple of the second members?
struct MA {}
struct MB {}
struct MC {}
template <int I, class T> struct MyPair{};
How can I make a template meta function such that it has these two members:
MyStruct<1, MA, 2, MB, 3, MC> {
std::array<int, 3> arr = {1, 2, 3};
using Tuple = std::tuple<MA, MB, MC>;
};