std::error_code
Материал из 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. |
| Заголовочный файл <system_error>
|
||
| class error_code; |
(начиная с C++11) | |
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.
[править] Член функций
| строит код ошибки 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. (public функция-член) | |
| назначает другой код ошибки 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. (public функция-член) | |
| назначает другой код ошибки 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. (public функция-член) | |
Original: Modifiers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| устанавливает error_code в значение 0 в 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. (public функция-член) | |
Original: Observers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| получает значение 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. (public функция-член) | |
| получает error_category для этого 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. (public функция-член) | |
| получает error_condition для этого 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. (public функция-член) | |
| получает пояснительную строку для этого 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. (public функция-член) | |
| проверки, если значение не равно нулю 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. (public функция-член) | |
[править] Не являющиеся членами функций
| сравнивает два error_codesOriginal: compares two error_codesThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (функция) | |
| выводит значение и сообщение в выходной поток 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. (функция) | |
| (C++11) |
создает код ошибки из 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. (функция) |
[править] Вспомогательные классы
| (C++11) |
определяет класс как error_code перечисление 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. (шаблон класса) |
| (C++11) |
хэш поддержку 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. (специализация шаблона класса) |
[править] См. также
| (C++11) |
имеет портативный код ошибки 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. (класс) |
| (C++11) |
Базовый класс для категорий ошибок 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. (класс) |