名稱空間
變體
操作

std::hash<std::type_index>

來自 cppreference.com
< cpp‎ | 型別‎ | type_index
 
 
 
 
 
定義於標頭檔案 <typeindex>
template<> struct hash<std::type_index>;
(C++11 起)

std::hashstd::type_index 的模板特化允許使用者獲取 std::type_index 型別物件的雜湊值。

成員 operator() 實際上返回與 hash_code() 相同的值。

[編輯] 參閱

返回雜湊碼
(公共成員函式) [編輯]