fmt::println

println overloads

Synopses

Declared in <fmt/base.h>

Formats args according to specifications in fmt and writes the output to stdout followed by a newline.

template<typename... T>
void
println(
    format_string<T...> fmt,
    T&&... args);
» more...

Formats args according to specifications in fmt and writes the output to stdout followed by a newline.

template<typename... T>
void
println(
    wformat_string<T...> fmt,
    T&&... args);
» more...

Formats a string and prints it to stdout followed by a newline, using ANSI escape sequences to specify text formatting.

template<typename... T>
void
println(
    text_style ts,
    format_string<T...> fmt,
    T&&... args);
» more...

Formats args according to specifications in fmt, writes the output to the stream os followed by a newline.

template<typename... T>
void
println(
    std::ostream& os,
    format_string<T...> fmt,
    T&&... args);
» more...

Formats args according to specifications in fmt and writes the output to the stream os followed by a newline.

template<typename... T>
void
println(
    std::wostream& os,
    wformat_string<T...> fmt,
    T&&... args);
» more...

Formats args according to specifications in fmt and writes the output to the file f followed by a newline.

template<typename... T>
void
println(
    FILE* f,
    format_string<T...> fmt,
    T&&... args);
» more...

Formats args according to specifications in fmt and writes the output to the file f followed by a newline.

template<typename... T>
void
println(
    FILE* f,
    wformat_string<T...> fmt,
    T&&... args);
» more...

Formats a string and prints it to the specified file stream followed by a newline, using ANSI escape sequences to specify text formatting.

template<typename... T>
void
println(
    FILE* f,
    text_style ts,
    format_string<T...> fmt,
    T&&... args);
» more...

Parameters

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