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