다음을 통해 공유


hash_multiset::make_value (STL/CLR)

값 개체를 만듭니다.

    static value_type make_value(key_type key);

매개 변수


  • 사용 하는 키 값입니다.

설명

멤버 함수에서 반환 된 value_type 키 개체 key.몇 가지 다른 멤버 함수를 사용 하기 적합 한 객체를 작성할 때 사용 합니다.

예제

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

요구 사항

헤더: < cliext/hash_set >

네임 스페이스: cliext

참고 항목

참조

hash_multiset (STL/CLR)

hash_multiset::key_type (STL/CLR)

hash_multiset::value_type (STL/CLR)