[array] Support for multidimensional arrays?

Currently, creating a multidimensional boost/std::array is a bit unwieldy:
array

array

David Stone wrote:
The one main design decision for a multi-dimensional array is what begin() and end() iterate over: int, or array
?
They iterate over int[4][5] in my suggestion. This is, admittedly, not a "true" multidimensional array, it's just how C arrays work. int a[3][4][5]; for( auto& x: a ) { // x is int (&)[4][5] here } This is consistent with begin() returning T* == int(*)[4][5] and op[] returning T& == int(&)[4][5].

On 5/6/15, Peter Dimov
There's a multidimensional array submitted for review at
https://github.com/BrianJSmith/Array. The syntax is array
, iteration is over each dimension, if that would suit your needs.
Brian -- www.maidsafe.net
participants (4)
-
Brian Smith
-
David Stone
-
Larry Evans
-
Peter Dimov