title: Cant interate through overflow in an unorderd map
body: <p>As far as I understand both the boost:unordered_map and std::unordered_map work the same in terms of "overflow" (aka multiple things that get inserted with the same key). They store it in a "bucket" so you can then iterate over them.</p>
  
  <p>For example:</p>
  
  <pre><code>key:   data:
  "apple" 2
  "peach" 4
  "apple" 3
  "peach" 8
  </code></pre>
  
  <p>then the bucket for "apple" would contain 2 &amp; 3, right?</p>
  
  <p>Well I am having trouble acessing these things.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>#define ANZ 10
  typedef boost::unordered_map&lt;uint16_t, int&gt; uuidMap_int;
  
  
  using namespace std;
  
  int main()
  {
      uuidMap_int uuidMap;
      boost::uuids::uuid entity1;
      boost::uuids::uuid entity2;
  
      for(unsigned int i = 0;i&lt;ANZ;i++)
          uuidMap.insert(std::pair&lt;int,int&gt;((i&lt;5?0:1),i));
  
      for(unsigned int i = 0;i &lt; uuidMap.bucket_count();i++){
          for(uuidMap_int::local_iterator it = uuidMap.begin(i); it != uuidMap.end(i);++it){
              std::cout&lt;&lt;it-&gt;first&lt;&lt;"|"&lt;&lt;it-&gt;second&lt;&lt;"\n";
          }
      }
      return 0;
  }
  </code></pre>
  
  <p>All it does is make 2 new entries to the map and filling them.
  Here is what the output is supposed to look like:</p>
  
  <pre><code>0|0
  0|1
  0|2
  .
  .
  .
  1|5
  1|6
  .
  .
  .
  1|10
  </code></pre>
  
  <p>But it actually looks like this</p>
  
  <pre><code>0|0
  1|5
  </code></pre>
  
  <p>Now I dont know why this is happening. It seems like the "overflow" simply gets trashed. However I am trying to make sth simmilar to a small database, so I need a way to have a id and a bunch of data belonging to said id in a map like this.</p>
  
  <p>What am I doing wrong/what other map allows me to work the way I want to?</p>