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() .
Смотрите также
|
возвращает хеш-код
(публичная функция-член) |