J
Jeff Dege
Suppose I have a problem for which an associative array is the most
natural fit, but which I need to be able to output in sorted order of the
values.
STL map would seem like a good fit, except that maps are sorted on key,
not value.
I can picture a couple of approaches, but I'm not clear on what would be
cleanest.
Any ideas?
natural fit, but which I need to be able to output in sorted order of the
values.
STL map would seem like a good fit, except that maps are sorted on key,
not value.
I can picture a couple of approaches, but I'm not clear on what would be
cleanest.
Any ideas?