[#absl-StatusBuilder-2constructor-06]
= xref:absl.adoc[absl]::xref:absl/StatusBuilder.adoc[StatusBuilder]::StatusBuilder
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

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

Creates an empty builder that produces an OK status&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/StatusBuilder/2constructor-0e7.adoc[StatusBuilder]();
----

[.small]#xref:absl/StatusBuilder/2constructor-0e7.adoc[_» more&period;&period;&period;_]#

Creates a copy of `sb`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/StatusBuilder/2constructor-04.adoc[StatusBuilder](xref:absl/StatusBuilder.adoc[StatusBuilder] const& sb);
----

[.small]#xref:absl/StatusBuilder/2constructor-04.adoc[_» more&period;&period;&period;_]#

Move constructor&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/StatusBuilder/2constructor-0b.adoc[StatusBuilder](xref:absl/StatusBuilder.adoc[StatusBuilder]&& other) = default;
----

[.small]#xref:absl/StatusBuilder/2constructor-0b.adoc[_» more&period;&period;&period;_]#

Creates a `StatusBuilder` from a status code&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/StatusBuilder/2constructor-0e0.adoc[StatusBuilder](
    xref:absl/StatusCode.adoc[absl::StatusCode] code,
    xref:absl/SourceLocation.adoc[absl::SourceLocation] location = absl&colon;&colon;SourceLocation&colon;&colon;current());
----

[.small]#xref:absl/StatusBuilder/2constructor-0e0.adoc[_» more&period;&period;&period;_]#

Creates a `StatusBuilder` based on an original status&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/StatusBuilder/2constructor-0a.adoc[StatusBuilder](
    xref:absl/Status.adoc[absl::Status] const& original&lowbar;status,
    xref:absl/SourceLocation.adoc[absl::SourceLocation] location = absl&colon;&colon;SourceLocation&colon;&colon;current());
----

[.small]#xref:absl/StatusBuilder/2constructor-0a.adoc[_» more&period;&period;&period;_]#

Creates a `StatusBuilder` based on an original status&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/StatusBuilder/2constructor-02.adoc[StatusBuilder](
    xref:absl/Status.adoc[absl::Status]&& original&lowbar;status,
    xref:absl/SourceLocation.adoc[absl::SourceLocation] location = absl&colon;&colon;SourceLocation&colon;&colon;current());
----

[.small]#xref:absl/StatusBuilder/2constructor-02.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sb*
| The builder to copy&period;
| *other*
| The source object&period;
| *code*
| The status code the result will be based on&period;
| *location*
| The source location associated with the builder&period;
| *original&lowbar;status*
| The status the result will be based on&period;
|===


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