std::type_info
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <typeinfo>
|
||
| class type_info; |
||
类
type_info拥有实现特定类型的信息,包括名称的类型,并比较两种相等或排序顺序。这是由typeid运营商返回的类. Original:
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. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
type_info类既不是CopyConstructible也不CopyAssignable. Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 成员函数
| (constructor) [删除] </ SPAN></div></div>
|
has neither default nor copy constructors (公共成员函数) |
| [虚拟的] </ SPAN></div></div>
|
派生的对象是通过指针到基地安全地删除 Original: derived objects are safe to delete through pointer-to-base The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (虚拟公有成员函数) |
| operator= [删除] </ SPAN></div></div>
|
不能复制分配 Original: can not be copy-assigned The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) |
| checks whether the objects refer to the same type (公共成员函数) | |
| 在执行检查是否被引用的类型前面提到的类型的另一个 type_index对象定义的顺序,即命令所引用的类型 Original: checks whether the referred type precedes referred type of another type_indexobject in the implementation defined order, i.e. orders the referred types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |
| (C++11) |
返回一个值,该值是相同的类型相同 Original: returns a value which is identical for the same types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) |
| 实现定义的类型的名称 Original: implementation defined name of the type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |
[编辑] 另请参阅
| (C++11) |
包装周围的 type_info对象,可以作为指数的关联和无序关联式容器 Original: wrapper around a type_info object, that can be used as index in associative and unordered associative containers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (类) |