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