C++ 异常库 - future_error



描述

这是一个 future 错误异常,此类定义了作为异常抛出的对象的类型,以报告对 future 对象或库中可能访问 future 共享状态的其他元素的无效操作。

声明

以下是 std::future_error 的声明。

class future_error;

C++11

class future_error;

参数

返回值

异常

无抛出保证 - 没有成员抛出异常。

成员

  • 构造函数 - what_arg 与成员 what 返回的值具有相同的内容。

  • what - 用于获取识别异常的字符串。

exception.htm
广告
© . All rights reserved.