[#absl-Status-2constructor-0a]
= xref:absl.adoc[absl]::xref:absl/Status.adoc[Status]::Status
:relfileprefix: ../../
:mrdocs:

Same as above but for rvalue string&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename String,
    typename = &sol;&ast; implementation-defined &ast;&sol;::EnableIfString&lt;String&gt;&gt;
Status(
    xref:absl/StatusCode.adoc[absl::StatusCode] code,
    String&& msg,
    xref:absl/SourceLocation.adoc[absl::SourceLocation] loc = SourceLocation&colon;&colon;current());
----

== Description

Note&colon; using a template to disambiguate the case of matching string&lowbar;view and string&amp;&amp; (e&period;g&period; char&ast;) as a template lowers the priority of the overload&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *code*
| The canonical error code for the status&period;
| *msg*
| The UTF&hyphen;8 error message&period;
| *loc*
| The source location of the callsite&period;
|===


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