C
cayblood
I have Stroustrup's c++ book, but there are times when it is a little
difficult to decipher. I'm trying to figure out what the "right way"
to find the maximum value in a map is. Here is basically what I would
like to do:
map<string, int> state_frequencies;
....
int maxval = get_max_value(state_frequencies);
Thanks in advance for your help.
Carl
difficult to decipher. I'm trying to figure out what the "right way"
to find the maximum value in a map is. Here is basically what I would
like to do:
map<string, int> state_frequencies;
....
int maxval = get_max_value(state_frequencies);
Thanks in advance for your help.
Carl