Guest User

Untitled

a guest
May 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. struct test
  2. {
  3. int a;
  4. int b;
  5. std::string str;
  6. }
  7.  
  8. int main()
  9. {
  10. std::map<int, test> test_map;
  11. test_map[0] = test(1, 2, "test1"); // This is the line in question
  12. // Or it might be more like: test_map[0] = test{1, 2, "test1"};
  13. return 0;
  14. }
Add Comment
Please, Sign In to add comment