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>::value
是true
...
参数
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) |
? cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com