hash_set::hasher (STL/CLR)
Pełnomocnik mieszania klucza.
Microsoft::VisualC::StlClr::UnaryDelegate<GKey, int>
hasher;
Uwagi
Typ opisuje pełnomocnika, który konwertuje wartości klucza do wartości całkowitej.
Przykład
// cliext_hash_set_hasher.cpp
// compile with: /clr
#include <cliext/hash_set>
typedef cliext::hash_set<wchar_t> Myhash_set;
int main()
{
Myhash_set c1;
Myhash_set::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);
}
Wymagania
Nagłówek: < cliext/hash_set >
Obszar nazw: cliext