std::type_index::hash_code

From cppreference.com
< cpp‎ | types‎ | type index
 
 
 
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)
(C++11)
(C++11)
Type properties
(C++11)
(C++11)
(C++14)
(C++11)
(C++11)(until C++20)
(C++11)(deprecated in C++20)
(C++11)
Type trait constants
Metafunctions
(C++17)
Endian
(C++20)
Constant evaluation context
Supported operations
Relationships and property queries
(C++11)
(C++11)
Type modifications
(C++11)(C++11)(C++11)
Type transformations
(C++11)
(C++11)
(C++17)
(C++11)(until C++20)(C++17)
 
 
std::size_t hash_code() const;
(since C++11)
(until C++14)
std::size_t hash_code() const noexcept;
(since C++14)

Returns the hash code of the associated std::type_info object. Equivalent to calling type_info::hash_code directly.

Parameters

(none)

Return value

The hash code of the associated type_info object.

Example

See also

hash support for std::type_index
(class template specialization)