Guest User

Untitled

a guest
Sep 25th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. struct Item
  2. {
  3. int a, b, c;
  4. Item(int a,int b,int c):a(a),b(b),c(c){}
  5. };
  6.  
  7.  
  8. int main(int argc, const char * argv[])
  9. {
  10. vector<Item> x;
  11. // x.push_back(1,2,3); <- не скомпилируется!
  12. x.emplace_back(1,2,3);
  13. }
  14.  
  15. x.emplace_back(Item(0,1,2));
Add Comment
Please, Sign In to add comment