Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. int keys[] = {3, 2, 2};
  2.  
  3. keyed_queue<int, int> kq1 = f({});
  4.  
  5. for (int i = 0; i < 3; ++i) {
  6. kq1.push(keys[i], i);
  7. }
  8.  
  9. auto ref = kq1.front();
  10. std::cout << ref.first << " " << ref.second << std::endl;
  11.  
  12. kq1.pop(); // jak zrobię kq1.pop(3); to działa i wypisuje \/, wpp. nie wypisuje nic z \/
  13.  
  14. auto ref2 = kq1.front();
  15. std::cout << ref2.first << " " << ref2.second << std::endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement