Поделиться через


Структура hash

Шаблон класса определяет метод как возвращаемый val.hash_code(). Метод определяет функцию hash, используемую для сопоставления значений типа type_index с распределением значений индекса.

Синтаксис

template <> struct hash<type_index>
: public unary_function<type_index, size_t>
{ // hashes a typeinfo object
    size_t operator()(type_index val) const;
};

Специализированные типы

<system_error>

template <class T> struct hash;
template <> struct hash<error_code>;
template <> struct hash<error_condition>;

См. также

<typeindex>