Old c-style static arrays can be quite bothersome when passed as arguments, or returned as value. For that, the new std::array is quite convenient.
However for multi-array, there is nothing in std:: and the boost::multi_array isn't just statically allocated.
Of course, I could do, say,
std::array<std::array<int,3>,2> my_array;
but I find sligthly long and it corresponds to the inverted built-in declaration
int my_array[2][3];
I am just wondering if there is already some "library" coding such a concept (bi-dimensional or any-dimensional)
(which for the latter, if I am correct, must use some variadic template for typing e.g.
multi_array<int,3,4> A;
multi_array<int,3,5,8> B;
multi_array<int,4,7,8,9,8,3> C; //this one being quite rare though
)
EDIT : sorry about the first post, I didn't test