Format a Formatter object recursively. Behaves just like formatString(fmt.str(), arg, cb); but avoids creating a temporary string if possible.

Synopsis

Declared in <folly/Format.h>

template<
    class FormatCallback,
    bool containerMode,
    class... Args>
void
formatFormatter(
    Formatter<containerMode, Args...> const& formatter,
    FormatArg& arg,
    FormatCallback& cb);

Parameters

Name

Description

formatter

The formatter whose output is formatted.

arg

The format argument describing alignment, padding, and width.

cb

The callback that receives the formatted output.

Created with MrDocs