hash — Struktura

Szablon klasy definiuje swoją metodę jako zwracaną val.hash_code()wartość . Metoda definiuje funkcję skrótu używaną do mapowania wartości typu type_index na rozkład wartości indeksu.

Składnia

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

Wyspecjalizowane typy

<System_error>

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

Zobacz też

<typeindex>