C++ Type_info Library - hash_code Function


Advertisements

Description

It returns a hash code value that identifies the type.

Declaration

Following is the declaration for std::type_info::hash_code.

C++98

	
size_t hash_code() const noexcept;

C++11

size_t hash_code() const noexcept;

Parameters

none

Return Value

It returns a hash code value that identifies the type.

Exceptions

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

Data races

The locale object is modified.

typeinfo.htm
Advertisements