HDK
|
Functions | |
template<typename... Args> | |
void | print (FILE *file, const char *fmt, Args &&...args) |
template<typename... Args> | |
void | print (const char *fmt, Args &&...args) |
template<typename... Args> | |
void | print (std::ostream &file, const char *fmt, Args &&...args) |
|
inline |
Strutil::sync::print (fmt, ...) Strutil::sync::print (FILE*, fmt, ...) Strutil::sync::print (ostream& fmt, ...)
Output formatted strings to stdout, a FILE*, or a stream, using a "Python-like/std::format" type-safe formatting description. Results are locale-independent (use {:n}
locale-aware formatting).
Output is fully thread-safe (the outputs are "atomic" to the file or stream), and if the stream is buffered, it is flushed after the output).
|
inline |