Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 29
    Btw, it's much simpler and more common to overload operator()(int, int) instead... Commented Aug 14, 2011 at 1:23
  • 2
    Why recreat the wheel? Just use std::vector with a range constructor: stackoverflow.com/a/25405865/610351 Commented Aug 20, 2014 at 13:22
  • Or you can just use something like using array2d = std::array<std::array<int, 3>, 3>; Commented Apr 7, 2020 at 2:05