◐ Shell
clean mode source ↗

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

提供: cppreference.com

<tbody> </tbody>

template< class T, class Container > bool operator==( const stack<T,Container>& lhs, const stack<T,Container>& rhs );

(1)

template< class T, class Container > bool operator!=( const stack<T,Container>& lhs, const stack<T,Container>& rhs );

(2)

template< class T, class Container > bool operator<( const stack<T,Container>& lhs, const stack<T,Container>& rhs );

(3)

template< class T, class Container > bool operator<=( const stack<T,Container>& lhs, const stack<T,Container>& rhs );

(4)

template< class T, class Container > bool operator>( const stack<T,Container>& lhs, const stack<T,Container>& rhs );

(5)

template< class T, class Container > bool operator>=( const stack<T,Container>& lhs, const stack<T,Container>& rhs );

(6)

2つのコンテナアダプタのベースとなるコンテナの内容を比較します。 比較はベースとなるコンテナの対応する演算子を適用することで行われます。

引数

戻り値

対応する比較が true の場合 true、そうでなければ false

計算量

コンテナのサイズに比例。