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)
|
|
Definido en el encabezado
<typeindex>
|
||
|
template
<>
struct
hash
<
std::
type_index
>
;
|
(desde C++11) | |
La especialización de plantilla de std::hash para std::type_index permite a los usuarios obtener hashes de objetos de tipo std::type_index .
El miembro operator ( ) efectivamente retorna el mismo valor que hash_code() .
Véase también
|
devuelve código hash
(función miembro pública) |