IsOk接口

接口功能

判断状态对象状态是否是成功的。

接口格式

bool IsOk() const;

接口参数

无。

使用样例

status = Status(Error::Code::ERROR, "Engine init model failed: new modelBackend failed");
if (!status.IsOk()) {
    return;
}

返回值