unordered_multiset::hasher
Тип хэш-функции.
typedef Hash hasher;
Заметки
Тип синоним для параметра Hash шаблона.
Пример
// 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);
}
Требования
Заголовок:<unordered_set>
Пространство имен: std