std::type_info
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <typeinfo> 中定义
|
||
| class type_info; |
||
类
type_info拥有实现特定类型的信息,包括名称的类型,并比较两种相等或排序顺序。这是由typeid运营商返回的类. 原文:
The class
type_info holds implementation-specific information about a type, including the name of the type and means to compare two types for equality or collating order. This is the class returned by the typeid operator. [编辑] 成员函数
| (constructor) [删除]</div></div>
|
has neither default nor copy constructors (公共成员函数) |
| [虚]</div></div>
|
派生的对象是通过指针到基地安全地删除 原文: derived objects are safe to delete through pointer-to-base (公有虚成员函数) |
| operator= [删除]</div></div>
|
不能复制分配 (公共成员函数) |
| checks whether the objects refer to the same type (公共成员函数) | |
| 在执行检查是否被引用的类型前面提到的类型的另一个 type_index对象定义的顺序,即命令所引用的类型 原文: checks whether the referred type precedes referred type of another type_indexobject in the implementation defined order, i.e. orders the referred types (公共成员函数) | |
| (C++11) |
返回一个值,该值是相同的类型相同 原文: returns a value which is identical for the same types (公共成员函数) |
| 实现定义的类型的名称 原文: implementation defined name of the type (公共成员函数) | |
[编辑] 另请参阅
| (C++11) |
针对type_info对象的一个包装,可以用作关联容器和无序关联容器的索引。 (类) |