operator==,!=,<,<=,>,>=(std::stack)
From cppreference.com
template< class T, class Container > bool operator==( const stack<T,Container>& lhs, |
(1) | |
template< class T, class Container > bool operator!=( const stack<T,Container>& lhs, |
(2) | |
template< class T, class Container > bool operator<( const stack<T,Container>& lhs, |
(3) | |
template< class T, class Container > bool operator<=( const stack<T,Container>& lhs, |
(4) | |
template< class T, class Container > bool operator>( const stack<T,Container>& lhs, |
(5) | |
template< class T, class Container > bool operator>=( const stack<T,Container>& lhs, |
(6) | |
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