包括标准标头 <typeindex>,以定义支持类 type_info 的对象索引的类和函数。
语法
#include <typeindex>
备注
hash 结构可定义适合将 type_index 类型的值映射到索引值的分布的 hash function。
type_index 类包装指向 type_info 对象的指针,以便辅助编写索引。
<typeindex>包括标准标头 <typeindex>,以定义支持类 type_info 的对象索引的类和函数。
#include <typeindex>
hash 结构可定义适合将 type_index 类型的值映射到索引值的分布的 hash function。
type_index 类包装指向 type_info 对象的指针,以便辅助编写索引。