[#absl-Status-WithSourceLocation-0c] = xref:absl.adoc[absl]::xref:absl/Status.adoc[Status]::WithSourceLocation :relfileprefix: ../../ :mrdocs: `WithSourceLocation` overloads == Synopses Declared in `<absl/status/status.h>` Returns a copy of the current status, with `loc` appended to its location chain iff the status is non‐ok and contains a non‐empty message. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/Status.adoc[Status] xref:absl/Status/WithSourceLocation-06.adoc[WithSourceLocation](xref:absl/SourceLocation.adoc[absl::SourceLocation] loc = absl::SourceLocation::current()) const &; ---- [.small]#xref:absl/Status/WithSourceLocation-06.adoc[_» more..._]# Appends the `loc` to the current location chain inside the status iff the status is non‐ok and contains a non‐empty message, and returns an rvalue reference to `*this`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] xref:absl/Status.adoc[Status]&& xref:absl/Status/WithSourceLocation-0f.adoc[WithSourceLocation](xref:absl/SourceLocation.adoc[absl::SourceLocation] loc = absl::SourceLocation::current()) &&; ---- [.small]#xref:absl/Status/WithSourceLocation-0f.adoc[_» more..._]# == Return Value * A copy of this status with `loc` appended. * An rvalue reference to `*this`. == Parameters [cols="1,4"] |=== | Name| Description | *loc* | The source location to append. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#