std::type_index
来自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 <typeindex>
|
||
| class type_index; |
(C++11 起) | |
The type_index class is a wrapper class around a std::type_info object, that can be used as index in associative and unordered associative containers. The relationship with type_info object is maintained through a pointer, therefore type_index is CopyConstructible and CopyAssignable.
[编辑] 成员函数
| 构造对象 Original: constructs the object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |
| 比较基础std::type_info对象 Original: compares the underlying std::type_info objects The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |
| 回报进行散列代码 Original: returns hashed code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |
| 收益实现 与相关type_info对象的类型,定义的名称 Original: returns implementation defined name of the type, associated with underlying type_info object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |
[编辑] Helper类
| (C++11) |
std::type_index的哈希支持 Original: hash support for std::type_index The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (类模板专业化) |
[编辑] 另请参阅
| 包含某些类型的信息,这是类的implementation. 产生的,由typeid的运算符返回 Original: contains some type's information, generated by the implementation. 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. (类) | |