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*

7
  • A single function will be better. ie a.get(1,2) or a[{1, 2}] Commented Mar 24, 2013 at 12:45
  • 1
    @Pubby or an operator() with two indices, a(1,2) Commented Mar 24, 2013 at 12:46
  • 1
    parashift.com/c++-faq-lite/matrix-array-of-array.html Commented Mar 24, 2013 at 12:47
  • but i must use this format a[1][2] = 5;:( Commented Mar 24, 2013 at 13:15
  • Why must you use that format? Commented Mar 24, 2013 at 13:31