std::future_category
來自 cppreference.com
在標頭檔案 <future> 中定義 |
||
const std::error_category& future_category() noexcept; |
(C++11 起) | |
獲取與 future 和 promise 相關的錯誤的靜態錯誤類別物件的引用。該物件需要重寫虛擬函式 error_category::name(),以返回指向字串 "future" 的指標。它用於識別型別為 std::future_error 的異常中提供的錯誤程式碼。
目錄 |
[編輯] 引數
(無)
[編輯] 返回值
對靜態物件的引用,該靜態物件的執行時型別未指定,派生自 std::error_category。
[編輯] 示例
本節不完整 原因:無示例 |
[編輯] 參閱
(C++11) |
標識 future 錯誤程式碼 (enum) |
(C++11) |
報告與 future 或 promise 相關的錯誤 (class) |
(C++11) |
錯誤類別的基類 (class) |