title: STL looping in reverse through map C++
body: <pre><code>const map&lt;player, int&gt;::iterator beginning = game-&gt;begin(); 
  const map&lt;player, int&gt;::iterator inserted = game-&gt;find(player(x, y));
  map&lt;player, int&gt;::iterator left = inserted;
  while(left != beginning)
  {
  //some operations here
  --left;
  }
  </code></pre>
  
  <p>As you, see I want to loop through the map in reverse, accessing all the elements before the one i've just inserted. The problem is, with the construction above it doesn't access the first element and I have no idea why. Any suggeestions? Is game->begin() the first element? If so, how to solve it?</p>