I have nested std::array which dimension is handled by template arguments std::array<type, n, ...>.
I was wondering how to get for example in std::array<std::array<int, 2>, 2>, the type int.
in this case we could just do std::array<std::array<int, 2>, 2>::value_type::value_type, but how can I do this without having to put as many value_types as there are dimensions?