-
Notifications
You must be signed in to change notification settings - Fork 11
ST::printf
Michael Hansen edited this page Nov 20, 2019
·
3 revisions
#include <string_theory/stdio>| Name | Summary |
|---|---|
| ST::printf | Write formatted output to stdout or a C-style FILE * object |
| Signature | |
|---|---|
|
void ST::printf(const char *fmt_str, args_T ...args) template <typename... args_T> void ST::printf(const char *fmt_str, args_T &&...args) |
(1) |
|
void ST::printf(FILE *out_file, const char *fmt_str, args_T ...args) template <typename... args_T> void ST::printf(FILE *out_file, const char *fmt_str, args_T &&...args) |
(2) |
- Writes formatted text to the C
stdoutstream. - Writes formatted text to the C
FILEstreamout_file.
These both use the formatting rules defined in the Format String Reference guide, rather than classic C-style printf formatting.
Changed in 3.0: The arguments in args are now forwarded to reduce copying.