title: c++ STL Map one key two values
body: <p>I have a situation where I have a map with one key and two values ex.</p>
  
  <pre><code>std::map&lt;std::string, std::pair&lt;double, double&gt; &gt; myMultiValueMap
  </code></pre>
  
  <p>depending on a condition I need to either update one value or the other.</p>
  
  <p>I'd am looking for syntax to insert/ find the key and update either values in this map</p>
  
  <p>yes I have used the insert on Maps before, but was not sure on multivalue map </p>
  
  <pre><code>std::map&lt;std::string,double&gt; myMap;
  myMap.insert(std::make_pair("12345",0.00));
  </code></pre>
  
  <p>and find and update too</p>
  
  <pre><code>std::map&lt;std::string,double&gt;::iterator it =  myMap.find(("12345");
  </code></pre>