C++ Typeindex Library - hash_code



Description

It returns a hash code value that identifies the type currently referenced to by the object.

Declaration

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

size_t hash_code() const;

C++11

size_t hash_code() const;

C++14

size_t hash_code() const noexcept;

Parameters

none

Return Value

It returns a hash code value that identifies the type currently referenced to by the object.

Exceptions

No-throw guarantee − never throws exceptions.

typeinfo.htm
Advertisements