Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int keys[] = {3, 2, 2};
- keyed_queue<int, int> kq1 = f({});
- for (int i = 0; i < 3; ++i) {
- kq1.push(keys[i], i);
- }
- auto ref = kq1.front();
- std::cout << ref.first << " " << ref.second << std::endl;
- kq1.pop(); // jak zrobię kq1.pop(3); to działa i wypisuje \/, wpp. nie wypisuje nic z \/
- auto ref2 = kq1.front();
- std::cout << ref2.first << " " << ref2.second << std::endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement