absl::UntypedFormatSpec

A type-erased class that can be used directly within untyped API entry points.

Synopsis

Declared in <absl/strings/str_format.h>

class UntypedFormatSpec;

Description

An UntypedFormatSpec is specifically used as an argument to FormatUntyped().

Example:

absl::UntypedFormatSpec format("%d"); std::string out; CHECK(absl::FormatUntyped(&out, format, {absl::FormatArg(1)}));

Member Functions

NameDescription
UntypedFormatSpec [constructor]Constructors
operator= [deleted]Deleted copy assignment operator.

Protected Member Functions

NameDescription
UntypedFormatSpec [constructor]Constructs an untyped format spec from a pre-parsed format.

Friends

NameDescription
absl::str_format_internal::UntypedFormatSpecImpl