std::hash<std::type_index>
ja.cppreference.net より
| ヘッダ <typeindex>
|
||
template<> struct hash<std::type_index>;
|
(C++11以上) で定義 | |
テンプレート特殊化 std::hash を std::type_index に対して行うと、ユーザーは std::type_index 型のオブジェクトのハッシュを取得できるようになります。
メンバ operator() は、実質的に hash_code() と同じ値を返します。
関連項目
|
ハッシュコードを返す
(公開メンバ関数) |