fmt::print

print overloads

Synopses

Declared in <fmt/base.h>

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

template<typename... T>
void
print(
    format_string<T...> fmt,
    T&&... args);
» more...
template<typename... T>
void
print(
    wformat_string<T...> fmt,
    T&&... args);
» more...
template<
    typename S,
    typename... T>
void
print(
    S const& fmt,
    T&&... args);
» more...

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

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

Prints formatted data to the stream os.

template<typename... T>
void
print(
    std::ostream& os,
    format_string<T...> fmt,
    T&&... args);
» more...
template<typename... T>
void
print(
    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.

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

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

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