How can I create a multi dimensional std::array of type Type with (of course) known initial constexpr dimensions with some smart variadic template "MDA".
The number of dimensions shall be variable.
In the end I want to be able to write:
MDA<int,3,4,5,6> a4d{};
and the result should be equal to
std::array < std::array < std::array < std::array<int, 6> , 5 > , 4 > , 3 > a4d{};
And save a lot of (complicated, or even error prone) typing work . . .
Edit:
I am not sure if this possible at all. But what I am looking for, is some "typing saver", maybe in conjunction with a using statement.