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

Name

Description

UntypedFormatSpec [constructor]

Constructors

operator= [deleted]

Deleted copy assignment operator.

Protected Member Functions

Name

Description

UntypedFormatSpec [constructor]

Constructs an untyped format spec from a pre‐parsed format.

Friends

Name

Description

absl::str_format_internal::UntypedFormatSpecImpl

Created with MrDocs