title: how to print map in c++ without using iterator
body: <p>Is it possible to print map in c++ without using iterator ?
  something like</p>
  
  <pre><code>map &lt;int, int&gt;m;
  m[0]=1;
  m[1]=2;
  
  for(int i =0; i&lt;m.size(); i++)
      std::cout &lt;&lt; m[i];
  </code></pre>
  
  <p>Is it necessary to make iterator for printing map value ?</p>