title: Searching through a multimap with a pair for a key
body: <p>I have a multimap that has the structure </p>
  
  <pre><code>multimap&lt; pair&lt;int,int&gt;, bool &gt;
  </code></pre>
  
  <p>I have data inserted into and it looks like this</p>
  
  <pre><code>I is [0] Int is [5] Bool is [0]
  I is [0] Int is [100] Bool is [0]
  I is [0] Int is [100] Bool is [0]
  I is [1] Int is [100] Bool is [0]
  I is [1] Int is [100] Bool is [0]
  I is [1] Int is [100] Bool is [0]
  I is [2] Int is [5] Bool is [0]
  I is [2] Int is [100] Bool is [0]
  I is [2] Int is [100] Bool is [0]
  </code></pre>
  
  <p>I need to be able to have an iterator for the map to jump to the next <strong>I</strong> without iterating through the other <strong>I</strong>'s. </p>
  
  <p>For example, I want to only add <strong>Ints</strong> that don't have the same <strong>I</strong> value. So it could go</p>
  
  <blockquote>
    <p>add 5 + 100 + 5</p>
  </blockquote>
  
  <p>Since these would be the first values with different <strong>I's</strong>. How can I go about doing this?</p>