다음을 통해 공유


hash_multiset::lower_bound (STL/CLR)

검색 시작에 지정 된 키와 일치 하는 범위입니다.

    iterator lower_bound(key_type key);

매개 변수


  • 검색할 키 값입니다.

설명

멤버 함수는 첫 번째 요소를 결정 합니다. X 는 해시 하기 같은 통으로 제어 되는 시퀀스에서 key 과 동일한 순서에 있는 key.이러한 요소가 있는지 반환 hash_multiset::end (STL/CLR)(). 지정 하는 반복기 iferror X.제어 시퀀스에서 지정 된 키와 일치 하는 현재 요소의 시퀀스의 시작 부분을 찾으려면 사용 합니다.

예제

// cliext_hash_multiset_lower_bound.cpp 
// compile with: /clr 
#include <cliext/hash_set> 
 
typedef cliext::hash_multiset<wchar_t> Myhash_multiset; 
int main() 
    { 
    Myhash_multiset c1; 
    c1.insert(L'a'); 
    c1.insert(L'b'); 
    c1.insert(L'c'); 
 
// display initial contents " a b c" 
    for each (wchar_t elem in c1) 
        System::Console::Write(" {0}", elem); 
    System::Console::WriteLine(); 
 
    System::Console::WriteLine("lower_bound(L'x')==end() = {0}", 
        c1.lower_bound(L'x') == c1.end()); 
 
    System::Console::WriteLine("*lower_bound(L'a') = {0}", 
        *c1.lower_bound(L'a')); 
    System::Console::WriteLine("*lower_bound(L'b') = {0}", 
        *c1.lower_bound(L'b')); 
    return (0); 
    } 
 
  

요구 사항

헤더: < cliext/hash_set >

네임 스페이스: cliext

참고 항목

참조

hash_multiset (STL/CLR)

hash_multiset::count (STL/CLR)

hash_multiset::equal_range (STL/CLR)

hash_multiset::find (STL/CLR)

hash_multiset::upper_bound (STL/CLR)