title: Writing/Reading a std::map to a binary file require operator
body: <p>I want to write a std::map to a file and read it back. I'm looking for a rather simple and minimalist way to do it, without boost. I found that it is doable with vector like here <a href="https://stackoverflow.com/questions/36506297/reading-and-writing-a-stdvector-into-a-file-correctly-with-iterators/36506833#36506833">Reading and writing a std::vector into a file correctly with iterators</a></p>
  
  <p>I found this question as it relates to what I want to do, except I'm looking for the binary alternative.</p>
  
  <p><a href="https://stackoverflow.com/questions/12646222/reading-a-file-of-key-value-pairs-in-to-a-stdmap">reading a file of key-value pairs in to a std::map</a></p>