std::hash<std::type_index>
来自cppreference.com
< cpp | types | type index
工具库
std::type_index
成员函数 | ||||
(C++11)
|
||||
(C++11)(C++11)(C++20
前)(C++11)(C++11)(C++11)(C++11)(C++20)
|
||||
(C++11)
|
||||
(C++11)
|
||||
辅助类 | ||||
hash<std::type_index>
(C++11)
|
在标头
<typeindex>
定义
|
||
template<>
struct
hash<type_index>;
|
(C++11 起) | |
std::hash 对 std::type_index 的模板特化允许用户获得 std::type_index 类型对象的哈希。
成员 operator() 等效地返回与 hash_code() 相同的值。
参阅
返回哈希码 (公开成员函数) |