<class T, class Allocator = allocator>
deque<customer> waiters;
deque<T> tdeq;
deque<T> tdeq(n, v);
deque<customer> line2(line1);
template<class InputIterator> deque(InputIterator start, InputIterator end)
size() member function
reserve() and capacity() member functions don't apply
to dequeues.
d.push_back(v) and d.pop_back() member functions
d.push_front(v) and d.pop_front() member functions
push_front(v) and pop_front() do not apply to vectors
== and !=
< is defined as: d1 < d2 is true
if and only if
d1.size() <= d2.size() and
k such that 0 <= k <= d1.size() and
k == d1.size() or d1[k] < d2[k]
deque<T>::iterator and deque<T>::const_iterator
d.begin() and d.end()
deque<T>::reverse_iterator and
deque<T>::const_reverse_iterator
++ is reversed for reverse
iterators
+ n and += n is also reversed
for reverse iterators
n to the left" instead of "move n
to the right"
--, and - n and
-= n if defined.
n to the
right"
d.rbegin() and d.rend()
d,
*d.begin() == *(d.rend() - 1) is always true, assuming
d.size() > 0
*(d.end() - 1) == *d.rbegin() is always true, assuming
d.size() > 0
d.begin() == (d.rend - 1) is incorrect: it does
not type check
sort(v.begin(),v.end()) to sort(v.rbegin(),
v.rend())
This page last modified on 19 June 2000.