title: Is there a way to get all values out of an std::unordered_map?
body: <p>I have an <code>unordered_map</code> with some data in and I want to be able to save the contents to a file and retrieve the data later. I'm not interested in the key data, just the map values.</p>
  
  <p>If I could get an array of the values stored in the map, that could then be written to disk easily, but I'm not sure what the best way of getting that data out is.</p>
  
  <p>I have thought about using <code>.begin()</code> to get an iterator pointing to the beginning and iterate through all the buckets until all the values have been found. Surely there's a better way of doing this.</p>
  
  <p>I really don't want to use boost or the like if possible.</p>