Stringifies the value or the status of a StatusOr<T>.

Synopsis

Declared in <absl/status/statusor.h>

template<
    typename Sink,
    typename T>
requires absl::HasAbslStringify<T>::value
void
AbslStringify(
    Sink& sink,
    StatusOr<T> const& status_or);

Description

As above, but supports StrCat, StrFormat, etc.

Requires T has AbslStringify. Do not rely on the output format which may change without notice.

Parameters

Name

Description

sink

The stringify sink to write to.

status_or

The object to stringify.

Created with MrDocs