std::type_info
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. |
Definido no cabeçalho <typeinfo>
|
||
class type_info; |
||
O
type_info
classe contém informações específicas de execução sobre um tipo, incluindo o nome do tipo e meios para comparar dois tipos de igualdade ou ordem de agrupamento. Esta é a classe retornado pelo operador 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.
A classe
type_info
é nem CopyConstructible
nem 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.
[editar] Funções de membro
(constructor) [excluída] |
has neither default nor copy constructors (função pública membro) |
[virtual] |
objetos derivados são seguros para apagar através de ponteiro-para-base 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. (função pública virtual membro) |
operator= [excluída] |
não pode ser atribuído por cópia 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. (função pública membro) |
checks whether the objects refer to the same type (função pública membro) | |
verifica se o tipo referido precede tipo referido de outro objeto type_index na implementação ordem definida, ordens ou seja, os tipos referidos Original: checks whether the referred type precedes referred type of another type_index object 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. (função pública membro) | |
(C++11) |
retorna um valor que é idêntica para os mesmos tipos 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. (função pública membro) |
implementação definido nome do tipo 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. (função pública membro) |
[editar] Veja também
(C++11) |
invólucro em torno de um objecto type_info , que pode ser usado como índice associativo e desordenadas recipientes associativas 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. (classe) |