public member function
<typeinfo>

std::type_info::hash_code

size_t hash_code() const noexcept;
Get type hash code
Returns a hash code value that identifies the type.

This function returns the same value for any two type_info objects that compare equal.

The particular values returned are implementation-defined and may vary between executions of the same program.

Parameters

none

Return Value

A value that identifies the type (runtime constant).
size_t is an unsigned integral type.

Exception safety

No-throw guarantee: this member function never throws exceptions.

See also