Guest User

Untitled

a guest
Feb 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. std::pair<int, int> p(1,1); // can be of any type.
  2. int i1 = p.first; // first approach
  3. int i2 = std::get<0>(p); // second approach
Add Comment
Please, Sign In to add comment