Standard C++ Library Reference ISO/IEC (VERSION3)

The member function returns the length of the controlled sequence.
deque::size_type
typedef T2 size_type;
The unsigned integer type describes an object that can represent the length of any controlled
sequence. It is described here as a synonym for the implementation-defined type T2.
deque::swap
void swap(deque& right);
The member function swaps the controlled sequences between *this and right. If
get_allocator() == right.get_allocator(), it does so in constant time, it
throws no exceptions, and it invalidates no references, pointers, or iterators that designate
elements in the two controlled sequences. Otherwise, it performs a number of element
assignments and constructor calls proportional to the number of elements in the two controlled
sequences.
deque::value_type
typedef typename Alloc::value_type value_type;
The type is a synonym for the template parameter Ty.
operator!=
template<class Ty, class Alloc>
bool operator!=(
const deque <Ty, Alloc>& left,
const deque <Ty, Alloc>& right);
The template function returns !(left == right).
operator==
template<class Ty, class Alloc>
bool operator==(
const deque <Ty, Alloc>& left,
const deque <Ty, Alloc>& right);
The template function overloads operator== to compare two objects of template class
deque. The function returns left.size() == right.size() && equal(left.
begin(), left. end(), right.begin()).