将类型 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