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

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

NAME

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

Synopsis


template< class T, class Container >
bool operator==( const stack<T,Container>& lhs, (1)
const stack<T,Container>& rhs );
template< class T, class Container >
bool operator!=( const stack<T,Container>& lhs, (2)
const stack<T,Container>& rhs );
template< class T, class Container >
bool operator<( const stack<T,Container>& lhs, (3)
const stack<T,Container>& rhs );
template< class T, class Container >
bool operator<=( const stack<T,Container>& lhs, (4)
const stack<T,Container>& rhs );
template< class T, class Container >
bool operator>( const stack<T,Container>& lhs, (5)
const stack<T,Container>& rhs );
template< class T, class Container >
bool operator>=( const stack<T,Container>& lhs, (6)
const stack<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