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

