operator==,!=,<,<=,>,>=(std::queue) (3) - Linux Manuals

operator==,!=,<,<=,>,>=(std::queue): operator==,!=,<,<=,>,>=(std::queue)

NAME

operator==,!=,<,<=,>,>=(std::queue) - operator==,!=,<,<=,>,>=(std::queue)

Synopsis


template< class T, class Container >
bool operator==( const queue<T,Container>& lhs, (1)
const queue<T,Container>& rhs );
template< class T, class Container >
bool operator!=( const queue<T,Container>& lhs, (2)
const queue<T,Container>& rhs );
template< class T, class Container >
bool operator<( const queue<T,Container>& lhs, (3)
const queue<T,Container>& rhs );
template< class T, class Container >
bool operator<=( const queue<T,Container>& lhs, (4)
const queue<T,Container>& rhs );
template< class T, class Container >
bool operator>( const queue<T,Container>& lhs, (5)
const queue<T,Container>& rhs );
template< class T, class Container >
bool operator>=( const queue<T,Container>& lhs, (6)
const queue<T,Container>& rhs );


Compares the contents of the underlying containers of two container adaptors. The comparison is done by applying the corresponding operator to the underlying containers.

Parameters


lhs, rhs - container adaptors whose contents to compare
-
T must meet the requirements of EqualityComparable.

Return value


true if the corresponding comparison yields true, false otherwise.

Complexity


Linear in the size of the container