std::hash<std::type_index>
来自 cppreference.cn
< cpp | 类型 | type_index
定义于头文件 <typeindex> |
||
template<> struct hash<std::type_index>; |
(C++11 起) | |
std::hash 对 std::type_index 的模板特化允许用户获取 std::type_index 类型对象的哈希值。
成员 operator() 实际上返回与 hash_code() 相同的值。
[编辑] 参阅
返回哈希码 (公共成员函数) |