tinyformat::FormatStringCheck

Format string wrapper that checks the format at compile time.

Synopsis

Declared in <tinyformat.h>

template<unsigned int num_params>
struct FormatStringCheck;

Description

Added for Bitcoin Core. Unlike ConstevalFormatString this supports RuntimeFormat-wrapped std::string for runtime string formatting without compile time checks.

Member Functions

NameDescription
FormatStringCheck [constructor]Constructors
operator char const* Access the underlying format string.

Data Members

NameDescription
fmt Validated null-terminated format string.

Non-Member Functions

NameDescription
formatFormat list of arguments according to the given format string and return the result as a string.
printfFormat list of arguments to std::cout, according to the given format string
printflnFormat list of arguments to std::cout, then append a newline.