template< class T, class Alloc > bool operator==( const std::deque<T,Alloc>& lhs, const std::deque<T,Alloc>& rhs ); | (1) | |
template< class T, class Alloc > bool operator!=( const std::deque<T,Alloc>& lhs, const std::deque<T,Alloc>& rhs ); | (2) | |
template< class T, class Alloc > bool operator<( const std::deque<T,Alloc>& lhs, const std::deque<T,Alloc>& rhs ); | (3) | |
template< class T, class Alloc > bool operator<=( const std::deque<T,Alloc>& lhs, const std::deque<T,Alloc>& rhs ); | (4) | |
template< class T, class Alloc > bool operator>( const std::deque<T,Alloc>& lhs, const std::deque<T,Alloc>& rhs ); | (5) | |
template< class T, class Alloc > bool operator>=( const std::deque<T,Alloc>& lhs, const std::deque<T,Alloc>& rhs ); | (6) |
Compares the contents of two containers.
lhs
and rhs
are equal, that is, they have the same number of elements and each element in lhs
compares equal with the element in rhs
at the same position.lhs
and rhs
lexicographically. The comparison is performed by a function equivalent to std::lexicographical_compare
.lhs, rhs | - | containers whose contents to compare |
-T must meet the requirements of EqualityComparable in order to use overloads (1-2). |
||
-T must meet the requirements of LessThanComparable in order to use overloads (3-6). The ordering relation must establish total order. |
true
if the contents of the containers are equal, false
otherwisetrue
if the contents of the containers are not equal, false
otherwisetrue
if the contents of the lhs
are lexicographically less than the contents of rhs
, false
otherwisetrue
if the contents of the lhs
are lexicographically less than or equal the contents of rhs
, false
otherwisetrue
if the contents of the lhs
are lexicographically greater than the contents of rhs
, false
otherwisetrue
if the contents of the lhs
are lexicographically greater than or equal the contents of rhs
, false
otherwiselhs
and rhs
are of different size, otherwise linear in the size of the container
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/container/deque/operator_cmp