Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include < iostream >
- # include < map >
- #include < utility >
- int main()
- {
- std::map < int, int > m1;
- std::map < int, int > m2(m1);
- std::map < int, int > m3 = m1;
- typedef struct std::pair < int, int > PAIR;
- std::map < int, int > m1;
- m1.insert(PAIR(0, 10));
- m1.insert(PAIR(1, 20));
- std::map < int, int > m2(m1.begin(), m1.end());
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement