다음을 통해 공유


unordered_multiset::hash_function

저장 된 해시 함수 개체를 가져옵니다.

Hash hash_function() const;

설명

멤버 함수를 저장 된 해시 함수 개체를 반환합니다.

예제

 

// std_tr1__unordered_set__unordered_multiset_hash_function.cpp 
// compile with: /EHsc 
#include <unordered_set> 
#include <iostream> 
 
typedef std::unordered_multiset<char> Myset; 
int main() 
    { 
    Myset c1; 
 
    Myset::hasher hfn = c1.hash_function(); 
    std::cout << "hfn('a') == " << hfn('a') << std::endl; 
    std::cout << "hfn('b') == " << hfn('b') << std::endl; 
 
    return (0); 
    } 
 
  

요구 사항

헤더: <unordered_set>

네임 스페이스: 국방 표준

참고 항목

참조

<unordered_set>

unordered_multiset Class

기타 리소스

<unordered_set> 멤버