<future>

std::future_error

class future_error : public logic_error;
Future error exception

此類用於報告對 future 物件或其他可能訪問 future 物件共享狀態的庫元素的無效操作所丟擲的異常。

此類繼承自 logic_error,並添加了一個 error_code 作為成員 code(並定義了一個專門的 what 成員)。

成員函式