Get The Top 10 Values of a Map C++
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1367429/sorting-a-stdmap-by-value-before-output-destroy">Sorting a std::map by value before output &amp; destroy</a>  </p>
</blockquote>



<pre><code>map&lt;string, int&gt; Hosts;
</code></pre>

<p>Which contain a host and the amount of times that host was accessed.</p>

<p>How can I get the top X values of that map?</p>
