Namespaces
Variants

std::type_index::type_index

来自 zh.cppreference.net
 
 
 
类型支持
基本类型
定宽整型 (C++11)
定宽浮点类型 (C++23)
(C++11)    
(C++17)
数值极限
C 数值极限接口
运行时类型信息
 
 
type_index( const std::type_info& info ) noexcept;
(自 C++11 起)

从 std::type_info 对象构造类型索引。

参数

info - 类型信息对象

示例