absl::StatusBuilder::With

Calls adaptor on this status builder to apply policies, type conversions, and/or side effects on the StatusBuilder.

Synopsis

Declared in <absl/status/status_builder.h>

template<typename Adaptor>
/* implementation-defined */
With(Adaptor&& adaptor) &;

Description

This overload matches pure-policy adaptors, which return a StatusBuilder.

Return Value

The value returned by adaptor.

Parameters

NameDescription
adaptorThe functor to apply to this builder.