operator<= (pair) (STL/CLR)

보다 작거나 같음 쌍을 비교 합니다.

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

매개 변수

  • left
    비교 왼쪽된 쌍입니다.

  • right
    비교 오른쪽 쌍입니다.

설명

The operator function returns !(right < left).테스트에 사용 여부 left 후에 정렬 되지 않은 right 비교 요소 요소에 있을 때 두 쌍.

예제

// cliext_pair_operator_le.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 4] <= [x 3] is {0}", 
        c2 <= c1); 
    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)