Same as above but for rvalue string.

Synopsis

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());

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

Name

Description

code

The canonical error code for the status.

msg

The UTF‐8 error message.

loc

The source location of the callsite.

Created with MrDocs