std::error_code::operator=
Da cppreference.com
< cpp | error | error code
![]() |
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. |
template< class ErrorCodeEnum > error_code& operator=( ErrorCodeEnum e ); |
(desde C++11) | |
Substitui o código de erro e categoria correspondente com aqueles que representam o código de erro enum
e
. Original:
Replaces the error code and corresponding category with those representing error code enum
e
. 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.
Equivalente a *this = std::make_error_code(e). A sobrecarga participa em resoluções sobrecarga somente se std::is_error_code_enum<ErrorCodeEnum>::value == true.
Original:
Equivalent to *this = std::make_error_code(e). The overload participates in overload resolutions only if std::is_error_code_enum<ErrorCodeEnum>::value == true.
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] Parâmetros
e | - | código de erro enum para construir
Original: error code enum to construct The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Valor de retorno
*this
[editar] Exceções
[editar] Notas
Cópia atribuição operador é definido implicitamente.
Original:
Copy-assignment operator is defined implicitly.
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] Veja também
designa um outro código de erro Original: assigns another error code 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) |