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.
Status
WithSourceLocation(absl::SourceLocation loc = absl::SourceLocation::current()) const &;
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()) &&;
Return Value
-
A copy of this status with
locappended. -
An rvalue reference to
*this.
Parameters
Name |
Description |
loc |
The source location to append. |
Created with MrDocs