Add fmt::println without args

This commit is contained in:
bugdea1er 2023-08-02 20:55:53 +03:00
parent 8a4bec5cf5
commit c19e127e30

View File

@ -2912,6 +2912,13 @@ FMT_INLINE void println(format_string<T...> fmt, T&&... args) {
return fmt::println(stdout, fmt, std::forward<T>(args)...); return fmt::println(stdout, fmt, std::forward<T>(args)...);
} }
/**
Writes a newline to ``stdout``.
*/
FMT_INLINE void println() {
return fmt::println(stdout, "");
}
FMT_END_EXPORT FMT_END_EXPORT
FMT_GCC_PRAGMA("GCC pop_options") FMT_GCC_PRAGMA("GCC pop_options")
FMT_END_NAMESPACE FMT_END_NAMESPACE