std::future_category
Материал из 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. |
| Заголовочный файл <future>
|
||
| const std::error_category& future_category(); |
(начиная с C++11) | |
Получает ссылку на статический объект категории ошибки для ошибки, связанные с фьючерсами и обещаний. Объект требуется переопределить виртуальный error_category::name() функция возвращает указатель на строку "future". Он используется для определения кодов ошибок приводится в исключения типа std::future_error.
Original:
Obtains a reference to the static error category object for the errors related to futures and promises. The object is required to override the virtual function error_category::name() to return a pointer to the string "future". It is used to identify error codes provided in the exceptions of type std::future_error.
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.
Содержание |
[править] Параметры
(Нет)
Original:
(none)
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.
[править] Возвращаемое значение
ссылку на статический объект неопределенного типа среды, полученные от std::error_category.
Original:
a reference to the static object of unspecified runtime type, derived from std::error_category.
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.
[править] Исключения
[править] Пример
| Этот раздел не завершён Причина: нет примера |
[править] См. также
| (C++11) |
определяет будущее кодов ошибок Original: identifies the future error codes 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: reports an error related to futures or promises 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. (класс) |