Owning formatv result that stores parameters and type‐erased adapters.

Synopsis

Declared in <llvm/Support/FormatVariadic.h>

template<typename Tuple>
class formatv_object
    : public formatv_object_base

Base Classes

Name

Description

formatv_object_base

Base class for formatv objects used by Twine.

Member Functions

Name

Description

formatv_object [constructor]

Constructors

format

Write the formatted string to S.

sstr

Convert the formatted result to a SmallString of capacity N.

str

Convert the formatted result to a std::string.

operator SmallString<N>

Convert the formatted result to a SmallString of capacity N.

operator std::string

Convert the formatted result to a std::string.

Static Member Functions

Name

Description

parseFormatString

Parse and optionally validate a format string.

Protected Data Members

Name

Description

Adapters

Type‐erased functors that format each parameter.

Fmt

Format string containing replacement fields and literal text.

Validate

When true, parse and validate the format string in assert‐enabled builds.

Created with MrDocs