Can I use something like std::array<int[2][2], 2> as a replacement for int[2][2][2] , just like std::array<int, 2> can be used instead of int[2] ?
I really need a possibly multidimensional array of static size that
- Have the "correct" semantics of values ββand
- Stored in memory in memory.
It seems that unlike C-style arrays, std::array of std::array does not guarantee fully compressed memory, since std::array may contain indentation.
What could be the problems that may arise if I use something like std::array<int[2][2], 2> ? Perhaps this is too vague a question, but it is difficult to understand why it is inconvenient and somewhat doubtful for me to use it for my purposes.
c ++ arrays
Junekey jeon
source share