std::type_index:: hash_code
From cppreference.net
<
cpp
|
types
|
type index
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type support
| Basic types | |||||||||||||||||||||
| Fixed width integer types (C++11) | |||||||||||||||||||||
| Fixed width floating-point types (C++23) | |||||||||||||||||||||
|
|||||||||||||||||||||
| Numeric limits | |||||||||||||||||||||
| C numeric limits interface | |||||||||||||||||||||
| Runtime type information | |||||||||||||||||||||
|
|||||||||||||||||||||
std::type_index
| Member functions | ||||
|
type_index::hash_code
|
||||
| Helper classes | ||||
|
(C++11)
|
|
std::
size_t
hash_code
(
)
const
noexcept
;
|
(C++11以降) | |
関連付けられた std::type_info オブジェクトのハッシュコードを返します。 type_info::hash_code を直接呼び出すのと同等です。
目次 |
パラメータ
(なし)
戻り値
関連付けられた std::type_info オブジェクトのハッシュコード。
例
|
このセクションは不完全です
理由: 例がありません |
欠陥報告
以下の動作変更の欠陥報告書は、以前に公開されたC++規格に対して遡及的に適用されました。
| DR | 適用対象 | 公開時の動作 | 正しい動作 |
|---|---|---|---|
| LWG 2144 | C++11 |
type_index::hash_code
noexceptが要求されていなかった
|
要求される |
関連項目
|
(C++11)
|
std::type_index
のハッシュサポート
(クラステンプレートの特殊化) |