Compartilhar via


unordered_multiset::hasher

O tipo de função de hash.

typedef Hash hasher;

Comentários

O tipo é um sinônimo para o parâmetro do modelo Hash.

Exemplo

 

// std_tr1__unordered_set__unordered_multiset_hasher.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); 
    } 
 
  

Requisitos

Cabeçalho: <unordered_set>

Namespace: std

Consulte também

Referência

<unordered_set>

unordered_multiset Class

Outros recursos

<unordered_set> Membros