首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::future_category

Defined in header <future>

?

?

const std::error_category& future_category();

?

(since C++11)

获取对未来对象错误的静态错误类别对象的引用。对象需要重写虚拟函数。error_category::name()返回指向字符串的指针"future"它用于识别类型异常中提供的错误代码。std::future_error...

参数

%280%29

返回值

派生为未指定运行时类型的静态对象的引用。std::error_category...

例外

noexcept规格:

noexcept

另见

future_error (C++11)

reports an error related to futures or promises (class)

future_errc (C++11)

identifies the future error codes (enum)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com