◐ Shell
clean mode source ↗

std::error_category - cppreference.com

De cppreference.com

class error_category;

(desde C++11)

La categoría de error, std::error_category, sirve como la clase base para tipos categoría de error específicos, tales como la categoría de sistema (std::system_category), categoría de flujo de entrada/salida (std::iostream_category), etc. Cada clase de categoría específica define la correspondencia entre un código de error y una condición de error (error_code - error_condition) y mantiene las cadenas explicativas para todas las condiciones de error. Los objetos de las clases de categorías de error se tratan como singletons, pasados por referencia.

Funciones miembro

construye un error_category

Original:

constructs an error_category

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]

[virtual]

destructs un error_category

Original:

destructs an error_category

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 virtual pública) [editar]

operator=

[eliminada]

No copie asignable

Original:

not copy assignable

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]

[virtual]

obtiene el nombre de la categoría

Original:

obtains the name of the category

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 virtual pública) [editar]
maps error_code to error_condition
(función miembro virtual pública) [editar]

[virtual]

compara error_code y error_condition de equivalencia

Original:

compares error_code and error_condition for equivalence

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 virtual pública) [editar]

[virtual]

obtiene la cadena de motivos

Original:

obtains the explanatory string

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 virtual pública) [editar]

compara dos categorías de errores

Original:

compares two error categories

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


(función) [editar]

Categorías de error específicas

Véase también