std::type_info::hash_code

From Cppreference

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

Returns an unspecified value, which is identical for objects, referring to the same type. No other guarantees are given, in particular, the value can change between invocations of the same program.

Contents

[edit] Parameters

(none)

[edit] Return value

some value, which is identical for the same types.

[edit] Example

[edit] See also

operator==
operator!=
checks whether the objects refer to the same type
(public member function)
name
implementation defined name of the type
(public member function)