std:: hash <std::type_index>
From cppreference.net
<
cpp
|
types
|
type index
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type support
| Basic types | |||||||||||||||||||||
| Fixed width integer types (C++11) | |||||||||||||||||||||
| Fixed width floating-point types (C++23) | |||||||||||||||||||||
|
|||||||||||||||||||||
| Numeric limits | |||||||||||||||||||||
| C numeric limits interface | |||||||||||||||||||||
| Runtime type information | |||||||||||||||||||||
|
|||||||||||||||||||||
std::type_index
| Member functions | ||||
| Helper classes | ||||
|
hash
<std::type_index>
(C++11)
|
|
定义于头文件
<typeindex>
|
||
|
template
<>
struct
hash
<
std::
type_index
>
;
|
(C++11 起) | |
针对 std::hash 的 std::type_index 模板特化允许用户获取 std::type_index 类型对象的哈希值。
成员 operator ( ) 实际返回的值与 hash_code() 相同。
参见
|
返回哈希码
(公开成员函数) |