Share via


hash_multimap::hash_delegate (STL/CLR)

Viene trovato un elemento che corrisponde alla chiave specificata.

hasher^ hash_delegate();

Note

La funzione membro restituisce il delegato utilizzato per convertire un valore di chiave in un Integer.È possibile utilizzarlo per l'hashing di una chiave.

Esempio

// cliext_hash_multimap_hash_delegate.cpp 
// compile with: /clr 
#include <cliext/hash_map> 
 
typedef cliext::hash_multimap<wchar_t, int> Myhash_multimap; 
int main() 
    { 
    Myhash_multimap c1; 
    Myhash_multimap::hasher^ myhash = c1.hash_delegate(); 
 
    System::Console::WriteLine("hash(L'a') = {0}", myhash(L'a')); 
    System::Console::WriteLine("hash(L'b') = {0}", myhash(L'b')); 
    return (0); 
    } 
 
  

Requisiti

intestazione: <cliext/hash_map>

Cliext diSpazio dei nomi:

Vedere anche

Riferimenti

hash_multimap (STL/CLR)

hash_multimap::hasher (STL/CLR)