dimanche 3 mai 2015

cpp: get vector of map keys sorted by map values

I have the following map:

std::map<string, double> someMap;

I would like to transform this map to a vector of strings (map keys) but i want the vector sorted according to the values of the map. How can i do that?

Aucun commentaire:

Enregistrer un commentaire