Prints formatted data to the stream os.

Synopsis

Declared in <fmt/ostream.h>

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

Description

Example:

fmt::print(cerr, "Don't {}!", "panic");

Parameters

Name

Description

os

The output stream to write to.

fmt

The format string.

args

The arguments to format.

Created with MrDocs