◐ Shell
clean mode source ↗

std::error_category::equivalent - 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í.

virtual bool equivalent( int code, const std::error_condition& condition ) const;

(1) (desde C++11)

virtual bool equivalent( const std::error_code& code, int condition ) const;

(2) (desde C++11)

Comprueba si el código de error es equivalente a una condición de error para la categoría de error representado por *this .

Original:

Checks whether error code is equivalent to an error condition for the error category represented by *this.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

1)

Equivalente a default_error_condition(code) == condition .

Original:

Equivalent to default_error_condition(code) == condition.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

2)

Equivalente a *this == code.category() && code.value() == condition .

Original:

Equivalent to *this == code.category() && code.value() == condition.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parámetros

code -

especifica el código de error para comparar

Original:

specifies the error code to compare

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

condition -

especifica la condición de error para comparar

Original:

specifies the error condition to compare

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

true si el código de error es equivalente a la condición de error determinada para la categoría de error representado por *this, false lo contrario .

Original:

true if the error code is equivalent to the given error condition for the error category represented by *this, false otherwise.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Excepciones