type_index(const type_info& rhs) noexcept;
type_indexの構築
type_index(const type_info& rhs) noexcept
type_info
オブジェクトからの構築
例外
投げない
例
#include <cassert>
#include <typeindex>
int main()
{
std::type_index ti = typeid(int);
assert(ti == typeid(int));
}
出力
バージョン
言語
- C++11
処理系
- Clang: ?
- GCC: 4.6.1
- ICC: ?
- Visual C++: 2010, 2012, 2013, 2015, 2017