Returns true if this‐>code() == absl::StatusCode::kOk, indicating the absence of an error.

Synopsis

Declared in <absl/status/status.h>

[[nodiscard]]
bool
ok() const;

Description

Prefer checking for an OK status using this member function.

Return Value

true if the status is OK.

Note

The return value should not be discarded.

Created with MrDocs