std::type_index::hash_code

From Cppreference

Jump to: navigation, search
size_t hash_code() const;
(C++11 feature)

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

[edit] Parameters

(none)

[edit] Return value

the hash code of the associated type_info object.

[edit] Example