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

std::error_code::assign

void assign( int ec, const error_category& ecat );

?

(since C++11)

用错误代码替换内容。ec以及相应的范畴ecat...

参数

ec

-

platform-dependent error code enum to assign

ecat

-

error category corresponding to ec

返回值

%280%29

例外

noexcept规格:

noexcept

另见

operator=

assigns another error code (public member function)

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

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

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com