std::hash<std::type_index>
提供: cppreference.com
< cpp | types | type index
ヘッダ <typeindex> で定義
|
||
template<> struct hash<type_index>; |
(C++11以上) | |
std::hash の std::type_index に対するテンプレート特殊化はユーザが std::type_index 型のオブジェクトのハッシュを取得することを可能とします。
メメンバ関数 operator() は実質的に hash_code() と同じ値を返します。
[編集] 関連項目
ハッシュコードを返します (パブリックメンバ関数) |