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

std::error_condition::error_condition

error_condition();

(1)

(since C++11)

error_condition( const error_condition& other );

(2)

(since C++11)(implicitly declared)

error_condition( int val, const error_category& cat );

(3)

(since C++11)

template< class ErrorConditionEnum > error_condition( ErrorConditionEnum e );

(4)

(since C++11)

构造新的错误条件。

1%29默认构造函数。使用泛型类别和错误代码初始化错误条件。​0​...

2%29复制构造函数。的内容初始化错误条件。other...

3%29使用错误代码初始化错误条件。val错误范畴cat...

4%29用enum初始化错误条件。e.有效地打电话make_error_condition()不参与过载决议,除非is_error_condition_enum<ErrorConditionEnum>::valuetrue...

参数

other

-

another error condition to initialize with

val

-

error code

cat

-

error category

e

-

error condition enum

例外

noexcept规格:

noexcept

另见

make_error_condition(std::errc) (C++11)

constructs an std::errc error condition (function)

make_error_condition(std::io_errc) (C++11)

constructs an iostream error_condition (function)

make_error_condition(std::future_errc) (C++11)

constructs a future error_condition (function)

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

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

扫码关注腾讯云开发者

领取腾讯云代金券