1// queue::front
2#include <iostream> // std::cout
3#include <queue> // std::queue
4
5int main ()
6{
7 std::queue<int> myqueue;
8
9 myqueue.push(77);
10 myqueue.push(16);
11 cout << myqueue.front();
12 myqueue.front() -= myqueue.back(); // 77-16=61
13
14 std::cout << "myqueue.front() is now " << myqueue.front() << '\n';
15
16 return 0;
17}