std::error_code
De 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. |
Déclaré dans l'en-tête <system_error>
|
||
class error_code; |
(depuis C++11) | |
std::error_code
est un code d'erreur dépendant de la plateforme. Chaque objet std::error_code
contient une paire de code d'erreur provenant du système d'exploitation, ou d'une interface de bas niveau et un pointeur vers un objet de std::error_category type, qui correspond à l'interface de ladite. Les valeurs de code d'erreur peut être pas unique dans toutes les catégories d'erreur différents .Original:
std::error_code
is a platform-dependent error code. Each std::error_code
object holds a pair of error code originating from the operating system, or some low-level interface and a pointer to an object of type std::error_category, which corresponds to the said interface. The error code values may be not unique across different error categories.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.
[modifier] Fonctions membres
construit un code d'erreur Original: constructs an error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
assigne un autre code d'erreur 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. (fonction membre publique) | |
assigne un autre code d'erreur 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. (fonction membre publique) | |
Original: Modifiers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
définit le error_code à la valeur 0 dans generic_category Original: sets the error_code 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. (fonction membre publique) | |
Original: Observers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
obtient la valeur de la error_code Original: obtains the value of the error_code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
obtient le error_category pour cette error_code Original: obtains the error_category for this error_code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
obtient le error_condition pour cette error_code Original: obtains the error_condition for this error_code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
obtient la chaîne explicative pour cette error_code Original: obtains the explanatory string for this error_code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
vérifie si la valeur est non nulle 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. (fonction membre publique) |
[modifier] Fonctions annexes
compare deux error_code sOriginal: compares two error_code sThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
et délivre en sortie la valeur du message à un flux de sortie Original: outputs the value and the message to an output stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction) | |
(C++11) |
crée un code d'erreur à partir d'un error_category Original: creates an error code from 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. (fonction) |
[modifier] Classes d'aide
(C++11) |
identifie une classe comme un error_code contrôle de l'énumération Original: identifies a class as an error_code enumeration The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe générique) |
(C++11) |
soutien de hachage pour std::error_code Original: hash support for std::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 générique spécialisée) |
[modifier] Voir aussi
(C++11) |
détient un code d'erreur portable Original: holds a portable 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 de base pour les catégories d'erreur 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) |