Classificando std :: map usando valor
Eu preciso classificar umstd::map
por valor e não por chave. Existe uma maneira fácil de fazer isso?
Eu tenho uma solução do segmento follwing:
std :: map classificar por dados?
Existe uma solução melhor?
map<long, double> testMap;
// some code to generate the values in the map.
sort(testMap.begin(), testMap.end()); // is there any function like this to sort the map?