std::type_index
Da 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; |
(desde 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
.