std::type_index::hash_code
來自 cppreference.com
< cpp | 型別 | type_index
std::size_t hash_code() const noexcept; |
(C++11 起) | |
返回關聯的 std::type_info 物件的雜湊碼。等價於直接呼叫 type_info::hash_code。
目錄 |
[編輯] 引數
(無)
[編輯] 返回值
關聯的 std::type_info 物件的雜湊碼。
[編輯] 示例
本節不完整 原因:無示例 |
[編輯] 缺陷報告
下列更改行為的缺陷報告追溯地應用於以前出版的 C++ 標準。
缺陷報告 | 應用於 | 釋出時的行為 | 正確的行為 |
---|---|---|---|
LWG 2144 | C++11 | type_index::hash_code 不要求是 noexcept |
需要 |
[編輯] 參閱
(C++11) |
對 std::type_index 的雜湊支援 (類模板特化) |