Namespaces
Variants

std:: hash <std::type_index>

From cppreference.net
Utilities library
ヘッダーで定義 <typeindex>
template <> struct hash < std:: type_index > ;
(C++11以降)

std::hash std::type_index に対するテンプレート特殊化は、 std::type_index 型のオブジェクトのハッシュ値をユーザーが取得することを可能にします。

メンバー関数 operator ( ) は、 hash_code() と実質的に同じ値を返します。

関連項目

ハッシュコードを返す
(公開メンバ関数)