std::type_index::hash_code
提供: cppreference.com
< cpp | types | type index
std::size_t hash_code() const noexcept; |
(C++11以上) | |
紐付けられている std::type_info のハッシュコードを返します。 直接 type_info::hash_code を呼ぶのと同等です。
目次 |
[編集] 引数
(なし)
[編集] 戻り値
紐付けられている std::type_info オブジェクトのハッシュコード。
[編集] 例
This section is incomplete Reason: no example |
[編集] 欠陥報告
以下の動作変更欠陥報告は以前に発行された C++ 標準に遡って適用されました。
DR | 適用先 | 発行時の動作 | 正しい動作 |
---|---|---|---|
LWG 2144 | C++11 | type_index::hash_code was not required to be noexcept
|
required |
[編集] 関連項目
(C++11) |
std::type_index に対するハッシュサポート (クラステンプレートの特殊化) |