Same as above but for rvalue string.
Declared in <absl/status/status.h>
template<
typename String,
typename = /* implementation-defined */::EnableIfString<String>>
Status(
absl::StatusCode code,
String&& msg,
absl::SourceLocation loc = SourceLocation::current());
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.
| Name | Description |
|---|---|
| code | The canonical error code for the status. |
| msg | The UTF-8 error message. |
| loc | The source location of the callsite. |