fmt::vprint

vprint overloads

Synopses

Declared in <fmt/base.h>

Formats args according to specifications in fmt and writes the output to stdout.

void
vprint(
    string_view fmt,
    format_args args);
» more...

Formats args according to specifications in fmt and writes the output to stdout.

void
vprint(
    wstring_view fmt,
    wformat_args args);
» more...

Formats args according to specifications in fmt and writes the output to the stream os.

void
vprint(
    std::ostream& os,
    string_view fmt,
    format_args args);
» more...

Formats args according to specifications in fmt and writes the output to the stream os.

void
vprint(
    std::wostream& os,
    wstring_view fmt,
    wformat_args args);
» more...

Formats args according to specifications in fmt and writes the output to the file f.

void
vprint(
    FILE* f,
    string_view fmt,
    format_args args);
» more...

Formats args according to specifications in fmt and writes the output to the file f.

void
vprint(
    FILE* f,
    wstring_view fmt,
    wformat_args args);
» more...

Formats a string with the given text style using ANSI escape sequences and prints it to the specified file stream.

void
vprint(
    FILE* f,
    text_style ts,
    string_view fmt,
    format_args args);
» more...

Parameters

NameDescription
fmtThe format string.
argsThe type-erased arguments to format.
osThe output stream to write to.
fThe file to write to.
tsThe text style to apply.