printΒΆ

group turbo_fmt_print

Functions

template<typename... T> TURBO_FORCE_INLINE void print (format_string< T... > fmt, T &&... args)

Formats args according to specifications in fmt and writes the output to stdout.

Example:

turbo::print("Elapsed time: {0:.2f} seconds", 1.23);
Output:
Elapsed time: 1.23 seconds
The print module is part of the turbo::format module.