Starfire
8
Q:

storing value in map in reverse key

for (auto it = mymap.rbegin(); it != mymap.rend(); it++) { 
        cout << "(" << it->first << ", " 
             << it->second << ")" << endl; 
1

New to Communities?

Join the community