Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct test
- {
- int a;
- int b;
- std::string str;
- };
- int main()
- {
- std::map<int, test> test_map;
- test t1 = {1, 2, "hello"};
- test_map[0] = t1;
- return 0;
- }
- int main()
- {
- std::map<int, test> test_map;
- test_map[0] = {1, 2, "hello"};
- return 0;
- }
Add Comment
Please, Sign In to add comment