std::type_index::name
提供: cppreference.com
<tbody>
</tbody>
const char* name() const noexcept; |
(C++11以上) | |
紐付けられている std::type_info オブジェクトの名前を返します。 直接 std::type_info::name() を呼ぶのと同等です。
引数
(なし)
戻り値
紐付けられている std::type_info オブジェクトの名前。
例
| This section is incomplete Reason: no example |
欠陥報告
以下の動作変更欠陥報告は以前に発行された C++ 標準に遡って適用されました。
| DR | 適用先 | 発行時の動作 | 正しい動作 |
|---|---|---|---|
| LWG 2144 | C++11 | type_index::name was not required to be noexcept
|
required |