I have a map. I want to flip the key-value so that it not becomes map. So basically the value of the first map becomes the key of the second map. How do i do this?
E
for (auto i=normal.begin(); i!=normal.end(); ++i) flipped[i->second] = i->first;