次の方法で共有


operator>= (pair) (STL/CLR)

ペアより大きいか等しい比較。

template<typename Value1,
    typename Value2>
    bool operator>=(pair<Value1, Value2>% left,
        pair<Value1, Value2>% right);

パラメーター

  • [left]
    比較の左辺のペア。

  • [right]
    比較の右辺のペア。

解説

演算子関数の戻り値 !(left<right)。2 個のペアが要素によって比較された要素の場合 left が right の前に順序付けされていないかどうかをテストするときに使用します。

使用例

// cliext_pair_operator_ge.cpp 
// compile with: /clr 
#include <cliext/utility> 
 
int main() 
    { 
    cliext::pair<wchar_t, int> c1(L'x', 3); 
    System::Console::WriteLine("[{0}, {1}]", c1.first, c1.second); 
    cliext::pair<wchar_t, int> c2(L'x', 4); 
    System::Console::WriteLine("[{0}, {1}]", c2.first, c2.second); 
 
    System::Console::WriteLine("[x 3] >= [x 3] is {0}", 
        c1 >= c1); 
    System::Console::WriteLine("[x 3] >= [x 4] is {0}", 
        c1 >= c2); 
    return (0); 
    } 
 
  

必要条件

ヘッダー: <cliext とユーティリティ>

名前空間: の cliext

参照

関連項目

pair (STL/CLR)

operator== (pair) (STL/CLR)

operator!= (pair) (STL/CLR)

operator< (pair) (STL/CLR)

operator> (pair) (STL/CLR)

operator<= (pair) (STL/CLR)