How can I implement STL map sorting by value?
For example, I have a map m:
m
map m; m[1] = 10; m[2] = 5; m[4] = 6; m[6] =
You should use Boost.Bimap for this sort of thing.