[#absl-Status-ok] = xref:absl.adoc[absl]::xref:absl/Status.adoc[Status]::ok :relfileprefix: ../../ :mrdocs: Returns `true` if `this‐>code()` == `absl::StatusCode::kOk`, indicating the absence of an error. == Synopsis Declared in `<absl/status/status.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[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 https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#