std::hash<std::type_index>
From cppreference.com
< cpp | types | type index
C++
Utilities library
Type support (basic types, RTTI, type traits) | |||||||||||||||||||||
Dynamic memory management | |||||||||||||||||||||
Error handling | |||||||||||||||||||||
Program utilities | |||||||||||||||||||||
Variadic functions | |||||||||||||||||||||
Library feature-test macros | |||||||||||||||||||||
Date and time | |||||||||||||||||||||
Function objects | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
(C++14) | |||||||||||||||||||||
Relational operators (deprecated in C++20) | |||||||||||||||||||||
Comparisons (C++20) | |||||||||||||||||||||
Common vocabulary types | |||||||||||||||||||||
| |||||||||||||||||||||
Swap, forward and move | |||||||||||||||||||||
(C++14) | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
Elementary string conversions | |||||||||||||||||||||
(C++17) | |||||||||||||||||||||
(C++17) | |||||||||||||||||||||
(C++17) | |||||||||||||||||||||
Type operations | |||||||||||||||||||||
(C++11) | |||||||||||||||||||||
(C++17) | |||||||||||||||||||||
(C++17) |
Type support
Basic types | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fundamental types | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fixed width integer types (C++11) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Numeric limits | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
C numeric limits interface | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Runtime type information | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type traits | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type categories | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++11) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++11) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++11) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++11) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++11) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++11) |
Type properties | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type trait constants | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++11)(C++17)(C++11)(C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Metafunctions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Endian | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Constant evaluation context | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++20) |
Supported operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++11)(C++11)(C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++11)(C++11)(C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++11)(C++11)(C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++11)(C++11)(C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++11)(C++11)(C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++11)(C++11)(C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++11)(C++11)(C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++17)(C++17)(C++17)(C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Relationships and property queries | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++17)(C++17)(C++17)(C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type modifications | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type transformations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Defined in header <typeindex>
|
||
template<> struct hash<type_index>; |
(since C++11) | |
The template specialization of std::hash for std::type_index allows users to obtain hashes of objects of type std::type_index.
The member operator() effectively returns the same value as hash_code().
See also
returns hashed code (public member function) |