We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test code:
int main() { ch10::stack_by_2queues stk(3);
for(int i = 0; i != 3; ++i) stk.push(i); for(int i = 0; i != 3; ++i) std::cout << stk.pop() << std::endl; return 0;
}
generated: ch10: ../ch10/queue.hpp:73: T ch10::queue<int, std::vector<int, std::allocator > >::dequeue() [T = int, C = std::vector<int, std::allocator >]: Assertion `!empty() && "underflow"' failed.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
test code:
include
include "stack_by_2queues.hpp"
int main()
{
ch10::stack_by_2queues stk(3);
}
generated:
ch10: ../ch10/queue.hpp:73: T ch10::queue<int, std::vector<int, std::allocator > >::dequeue() [T = int, C = std::vector<int, std::allocator >]: Assertion `!empty() && "underflow"' failed.
The text was updated successfully, but these errors were encountered: