WithSourceLocation overloads
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.
Status
WithSourceLocation(absl::SourceLocation loc = absl::SourceLocation::current()) const &;
» 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.
[[nodiscard]]
Status&&
WithSourceLocation(absl::SourceLocation loc = absl::SourceLocation::current()) &&;
» more...
loc appended.*this.| Name | Description |
|---|---|
| loc | The source location to append. |