From c19e127e30580b95cfcbd3c8cf3c67da231b316e Mon Sep 17 00:00:00 2001 From: bugdea1er Date: Wed, 2 Aug 2023 20:55:53 +0300 Subject: [PATCH] Add fmt::println without args --- include/fmt/core.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/fmt/core.h b/include/fmt/core.h index f6886cf4..5f85f7e8 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2912,6 +2912,13 @@ FMT_INLINE void println(format_string fmt, T&&... args) { return fmt::println(stdout, fmt, std::forward(args)...); } +/** + Writes a newline to ``stdout``. + */ +FMT_INLINE void println() { + return fmt::println(stdout, ""); +} + FMT_END_EXPORT FMT_GCC_PRAGMA("GCC pop_options") FMT_END_NAMESPACE