absl::StatusOr::status

status overloads

Synopses

Declared in <absl/status/statusor.h>

Returns the absl::Status contained within this object.

[[nodiscard]]
Status const&
status() const &;
» more...

Returns the absl::Status contained within this object (rvalue overload).

Status
status() &&;
» more...

Return Value

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