I have a map that\'s defined like this
struct A { int A; int B; }; typedef map Amap;
Then I have Amap1 and I
Amap1
Copying one map to another can be done with operator = or the copy constructor.
E.g
map mp1; //fill mp1 with data map mp2(mp1); //mp2 is a copy of mp1 (via copy-construction) map mp3; mp3 = mp2; // mp3 is also a copy of mp2 (via copy-assignment)