I have an unordered_multimap with pairs as keys. I would like to swap the values in the pairs, in the whole map. Example: {pair<1,2>, 3} -> {pair<2,1>, 3}
I would like to iterate over the container and change all the keys. Duplicates can occur so that is why used multimap. Is this possible in c++11?
Aucun commentaire:
Enregistrer un commentaire