Sdílet prostřednictvím


hash – struktura

Třída šablony definuje svou metodu jako vracející val.hash_code().Metoda definuje hashovací funkci, která se používá k mapování hodnot typu type_index k distribuci hodnot indexu.

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

Viz také

Referenční dokumentace

<typeindex>