std::hash<std::type_index>

< cpp‎ | types‎ | type index
在标头 <typeindex> 定义
template<> struct hash<type_index>;
(C++11 起)

std::hashstd::type_index 的模板特化允许用户获得 std::type_index 类型对象的哈希。

成员 operator() 等效地返回与 hash_code() 相同的值。

参阅

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