Namespaces
Variants

std:: hash <std::type_index>

From cppreference.net
Utilities library
定义于头文件 <typeindex>
template <> struct hash < std:: type_index > ;
(C++11 起)

针对 std::hash std::type_index 模板特化允许用户获取 std::type_index 类型对象的哈希值。

成员 operator ( ) 实际返回的值与 hash_code() 相同。

参见

返回哈希码
(公开成员函数)