std::type_info::hash_code
From cppreference.com
std::size_t hash_code() const noexcept; |
(since C++11) | |
Returns an unspecified value (here denoted by hash code) such that for all std::type_info objects referring to the same type, their hash code is the same.
No other guarantees are given: std::type_info objects referring to different types may have the same hash code (although the standard recommends that implementations avoid this as much as possible), and hash code for the same type can change between invocations of the same program.
Contents |