[#absl-StatusOr-status-0b] = xref:absl.adoc[absl]::xref:absl/StatusOr.adoc[StatusOr]::status :relfileprefix: ../../ :mrdocs: Returns the `absl::Status` contained within this object. == Synopsis Declared in `<absl/status/statusor.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] xref:absl/Status.adoc[Status] const& status() const &; ---- == Return Value The stored status, or `absl::OkStatus()` when a value is held. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#