Tiny type‐safe printf‐style string formatting library.

Types

Name

Description

FormatList

List of template arguments format(), held in a type‐opaque way.

FormatStringCheck

Format string wrapper that checks the format at compile time.

RuntimeFormat

Wrapper marking a format string as runtime data, skipping compile‐time checks.

format_error

Exception thrown when formatting fails. Added for Bitcoin Core.

Type Aliases

Name

Description

FormatListRef

Reference to type‐opaque format list for passing to vformat()

Functions

Name

Description

format

format overloads

formatValue

formatValue overloads

makeFormatList

Make type‐agnostic format list from list of template arguments.

printf

Format list of arguments to std::cout, according to the given format string

printfln

Format list of arguments to std::cout, then append a newline.

vformat

Format a list of arguments to a stream according to a format string.

Created with MrDocs