转换 error_condition类型的变量。
explicit operator bool() const;
返回值
对象 error_condition 的布尔值。
备注
在 值 不相等为零,运算符的返回值转换为 true。 返回类型仅可为 bool,而非 void * 或其他的标量已知类型。
要求
标头: <system_error>
命名空间: std
转换 error_condition类型的变量。
explicit operator bool() const;
对象 error_condition 的布尔值。
在 值 不相等为零,运算符的返回值转换为 true。 返回类型仅可为 bool,而非 void * 或其他的标量已知类型。
标头: <system_error>
命名空间: std