hash Structure

模板选件类定义其方法转换为返回 val.hash_code()。方法定义用于映射类型 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;
    };

请参见

参考

<typeindex>