Formats args according to specifications in fmt and writes the output to stdout.
Synopsis
Declared in <fmt/printf.h>
template<typename... T>
int
printf(
string_view fmt,
T const&... args);
Description
Example:
fmt::printf("Elapsed time: %.2f seconds", 1.23);
Return Value
The number of characters written, or ‐1 on failure.
Parameters
Name |
Description |
fmt |
The format string. |
args |
The arguments to format. |
Created with MrDocs