Compartilhar via


unordered_multimap::hasher

O tipo de função de hash.

typedef Hash hasher;

Comentários

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

Exemplo

 

// std_tr1__unordered_map__unordered_multimap_hasher.cpp 
// compile with: /EHsc 
#include <unordered_map> 
#include <iostream> 
 
typedef std::tr1::unordered_multimap<char, int> Mymap; 
int main() 
    { 
    Mymap c1; 
 
    Mymap::hasher hfn = c1.hash_function(); 
    std::cout << "hfn('a') == " << hfn('a') << std::endl; 
    std::cout << "hfn('b') == " << hfn('b') << std::endl; 
 
    return (0); 
    } 
 
hfn('a') == 1630279 hfn('b') == 1647086

Requisitos

Cabeçalho:<unordered_map>

Namespace: std::tr1

Consulte também

Referência

<unordered_map>

Classe unordered_multimap