다음을 통해 공유


unordered_set::hasher

해시 함수의 형식입니다.

typedef Hash hasher;

설명

The type is a synonym for the template parameter Hash.

예제

 

// std_tr1__unordered_set__unordered_set_hasher.cpp 
// compile with: /EHsc 
#include <unordered_set> 
#include <iostream> 
 
typedef std::unordered_set<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>

네임스페이스: std

참고 항목

참조

<unordered_set>

unordered_set 클래스

기타 리소스

<unordered_set> 멤버