title: Copy std::map to std::set in c++
body: <p>Is it possible with a STL algorithm to deep copy a std::map values to a std::set?</p>
  
  <p>I don't want to explicitly insert in the new set.</p>
  
  <p>I <strong>don't</strong> want to explicitly do this:</p>
  
  <pre><code>std::map&lt;int, double*&gt; myMap; //filled with something
  std::set&lt;double*&gt; mySet;
  
  for (std::map&lt;int, double*&gt;::iterator iter = myMap.begin(); iter!=myMap.end(); ++iter)
  {
       mySet.insert(iter-&gt;second);
  }
  </code></pre>
  
  <p>but find a more coincise and elegant way to do this, with a deep copy of values.</p>