What will be the memory layout when defining multidimensional std array?
will it be single continuous memory block or array of pointer?
for example -
const size_t M = 5;
const size_t N = 4;
int simple_2D_array[M][N];
std::array<std::array<int,N>,M> std_2D_array;
is it guarantee that both simple_2D_array and std_2D_array will have the same memory layout as single continuous memory?