title: Iterate records in std::array
body: <p>I am creating a 2D std::array, and want to iterate the 2D std::array record by record(not by indexes)</p>
  
  <pre><code>    std::array&lt;std::array&lt;int, 2&gt;, 6&gt; m_setSockarr;
      m_setSockarr = {{{0,1},{1,2},{2,3},{4,5},
                          {5,6},{6,7}}};
      for(auto i=m_setSockarr.begin();i !=m_setSockarr.end();i++)
      {
              //code here to print record wise.
      }
  </code></pre>
  
  <p>I want to print values in record wise, not index wise(not using another loop and finally printing m_setScokarr[i][j]).</p>
  
  <p>In std::Map we can use it->first and it->second to print record by record(Map is associative container)</p>
  
  <p>Tried printing in different ways, like a new index increment, etc.. but no progress.</p>
  
  <p>I wanted the output like using iterator of std::array in one for loop</p>
  
  <pre><code>0,1
  1,2
  2,3
  4,5
  5,6
  6,7
  </code></pre>
  
  <p>Would like to know if we could use std::array(Sequence containers) to print record wise, similar we use for std::map.</p>