std::error_condition
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 <system_error>
|
||
class error_condition; |
(desde C++11) | |
std::error_condition
é um código de erro independente de plataforma. Como std::error_code, ele é identificado exclusivamente por um valor inteiro e um std::error_category, mas ao contrário std::error_code, o valor não é dependente de plataforma.Original:
std::error_condition
is a platform-independent error code. Like std::error_code, it is uniquely identified by an integer value and a std::error_category, but unlike std::error_code, the value is not platform-dependent.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.
Uma implementação típica tem um membro de dados inteiro (o valor) e um ponteiro para um std::error_category.
Original:
A typical implementation holds one integer data member (the value) and a pointer to an std::error_category.
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.
Índice |
[editar] Funções de membro
constrói uma error_condition Original: constructs an error_condition 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) | |
substitui o conteúdo de um error_condition Original: replaces the contents of an error_condition 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) | |
substitui o conteúdo de um error_condition Original: replaces the contents of an error_condition 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) | |
define o error_condition para 0 valor em generic_category Original: sets the error_condition to value 0 in generic_category 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) | |
obtém o valor da error_condition Original: obtains the value of the error_condition 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) | |
obtém o error_category para este error_condition Original: obtains the error_category for this error_condition 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) | |
obtém a seqüência explicativa para este error_condition Original: obtains the explanatory string for this error_condition 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) | |
verifica se o valor é diferente de zero Original: checks if the value is non-zero 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] Não-membros funções
compara error_conditions e error_codes Original: compares error_conditions and error_codes The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função) | |
(C++11) |
cria um objeto condição de erro de error_category especificado Original: creates an error condition object of specified error_category The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função) |
[editar] Classes auxiliares
(C++11) |
identifica uma enumeração como um std::error_condition Original: identifies an enumeration as an std::error_condition The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de classe) |
[editar] Veja também
(C++11) |
possui um código de erro depende da plataforma Original: holds a platform-dependent error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe) |
(C++11) |
classe base para as categorias de erro Original: base class for error categories The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe) |