◐ Shell
clean mode source ↗

std::error_code::operator= - cppreference.com

De cppreference.com

Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.

La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí.

template< class ErrorCodeEnum > error_code& operator=( ErrorCodeEnum e );

(desde C++11)

Reemplaza el código de error y la categoría correspondiente con los representantes de código de error de enumeración 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.

Equivalente a *this = std::make_error_code(e). La sobrecarga participa en las resoluciones de sobrecarga sólo si 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.

Parámetros

e -

el código de error de enumeración de 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.

Valor de retorno

*this

Excepciones

Notas

Copy-operador de asignación se define implícitamente .

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.

Ver también

asigna otro código de error

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.


(función miembro pública) [editar]