Condividi tramite


unordered_multiset::hasher

Il tipo di funzione hash.

typedef Hash hasher;

Note

Il tipo è sinonimo del parametro di template Hash.

Esempio

 

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

Requisiti

intestazione: <unordered_set>

Spazio dei nomi: deviazione standard

Vedere anche

Riferimenti

<unordered_set>

unordered_multiset Class

Altre risorse

<unordered_set> membri