[#absl-Status-2constructor-0a] = xref:absl.adoc[absl]::xref:absl/Status.adoc[Status]::Status :relfileprefix: ../../ :mrdocs: Same as above but for rvalue string. == Synopsis Declared in `<absl/status/status.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename String, typename = /* implementation-defined */::EnableIfString<String>> Status( xref:absl/StatusCode.adoc[absl::StatusCode] code, String&& msg, xref:absl/SourceLocation.adoc[absl::SourceLocation] loc = SourceLocation::current()); ---- == Description Note: using a template to disambiguate the case of matching string_view and string&& (e.g. char*) as a template lowers the priority of the overload. == Parameters [cols="1,4"] |=== | Name| Description | *code* | The canonical error code for the status. | *msg* | The UTF‐8 error message. | *loc* | The source location of the callsite. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#