absl::FormatConvertResult

Indicates whether a call to AbslFormatConvert() was successful.

Synopsis

Declared in <absl/strings/str_format.h>

template<FormatConversionCharSet C>
struct FormatConvertResult;

Description

This return type informs the StrFormat extension framework (through ADL but using the return type) of what conversion characters are supported. It is strongly discouraged to return {false}, as this will result in an empty string in StrFormat.

Data Members

NameDescription
value Whether the conversion was successful.