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);
Formats args according to specifications in fmt and writes the output to stdout.
template<typename... T>
void
print(
wformat_string<T...> fmt,
T&&... args);
Formats args according to the compiled format string fmt and writes the result to stdout.
template<
typename S,
typename... T>
void
print(
S const& fmt,
T&&... args);
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);
Prints formatted data to the stream os.
template<typename... T>
void
print(
std::ostream& os,
format_string<T...> fmt,
T&&... args);
Formats args according to specifications in fmt and writes the output to the stream os.
template<typename... T>
void
print(
std::wostream& os,
wformat_string<T...> fmt,
T&&... args);
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);
Formats args according to specifications in fmt and writes the output to the file f.
template<typename... T>
void
print(
FILE* f,
wformat_string<T...> fmt,
T&&... args);
Formats args according to the compiled format string fmt and writes the result to the file f.
template<
typename S,
typename... T>
void
print(
FILE* f,
S const& fmt,
T&&... args);
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);
Parameters
Name |
Description |
fmt |
The format string. |
args |
The arguments to format. |
ts |
The text style to apply. |
os |
The output stream to write to. |
f |
The file to write to. |
Created with MrDocs