I’m looking for a function in C++ that for swap the contents of a map …
that is:
those that were the keys now become the items and those that the items were now the keys.
Can you tell me if there is something about this?
I’m looking for a function in C++ that for swap the contents of a
Share
As Geoffroy said,
std::mapdoesn’t allow this behaviour. However, you might want to use a STL-like container Boost.Bimap – bidirectorial map.