[#absl-StatusOr-status-0ec]
= xref:absl.adoc[absl]::xref:absl/StatusOr.adoc[StatusOr]::status
:relfileprefix: ../../
:mrdocs:

`status` overloads

== Synopses

Declared in `&lt;absl&sol;status&sol;statusor&period;h&gt;`

Returns the `absl&colon;&colon;Status` contained within this object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
xref:absl/Status.adoc[Status] const&
xref:absl/StatusOr/status-0b.adoc[status]() const &amp;;
----

[.small]#xref:absl/StatusOr/status-0b.adoc[_» more&period;&period;&period;_]#

Returns the `absl&colon;&colon;Status` contained within this object (rvalue overload)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/Status.adoc[Status]
xref:absl/StatusOr/status-0ed.adoc[status]() &amp;&amp;;
----

[.small]#xref:absl/StatusOr/status-0ed.adoc[_» more&period;&period;&period;_]#

== Return Value

The stored status, or `absl&colon;&colon;OkStatus()` when a value is held&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
