absl::StatusOr::status

Returns the absl::Status contained within this object.

Synopsis

Declared in <absl/status/statusor.h>

[[nodiscard]]
Status const&
status() const &;

Return Value

The stored status, or absl::OkStatus() when a value is held.

NOTE

The return value should not be discarded.