[#absl-Status-Update-06]
= xref:absl.adoc[absl]::xref:absl/Status.adoc[Status]::Update
:relfileprefix: ../../
:mrdocs:

`Update` overloads

== Synopses

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

Updates the existing status with `new&lowbar;status` provided that `this&hyphen;&gt;ok()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:absl/Status/Update-01.adoc[Update](xref:absl/Status.adoc[Status] const& new&lowbar;status);
----

[.small]#xref:absl/Status/Update-01.adoc[_» more&period;&period;&period;_]#

Updates the existing status by moving from `new&lowbar;status` if `this&hyphen;&gt;ok()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:absl/Status/Update-0a.adoc[Update](xref:absl/Status.adoc[Status]&& new&lowbar;status);
----

[.small]#xref:absl/Status/Update-0a.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *new&lowbar;status*
| The status to apply if `&ast;this` is currently OK&period;
|===


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