std::error_condition::assign

void assign( int val, const error_category& cat ) noexcept;
(C++11 起)

赋值内容给 error_condition 。设置 error_code 为 val , error_category 为 cat

参数

val - 错误码
cat - error_category

返回值

(无)

版本历史

  • (当前 | 先前) 2017年6月8日 (四) 08:07Fruderica讨论 | 贡献. . (441字节) (+441). . (以“{{cpp/error/error_condition/title | assign}} {{cpp/error/error_condition/navbar}} {{dcl begin}} {{dcl | since=c++11 | void assign( int val, const error_category& cat...”为内容创建页面)