
6 May
2015
6 May
'15
12:28 a.m.
array<int, 3, 4, 5> would be my preferred syntax, because it works with variadic templates. The one main design decision for a multi-dimensional array is what begin() and end() iterate over: int, or array<int, 4, 5>? There was a standard proposal for this: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3794.html The decision that the author made in that paper was to have begin and end iterate over int in my example.