7#include "../utility/utility.hpp"
8#include "../macros.hpp"
12hi_export_module(hikogui.telemetry.delayed_format);
14hi_export
namespace hi::inline
v1 {
20template<fixed_string Fmt,
typename... Values>
23 static_assert(std::is_same_v<
typename decltype(Fmt)::value_type,
char>,
"Fmt must be a fixed_string<char>");
43 template<
typename... Args>
53 return std::apply(format_wrapper<Values const &...>, _values);
62 return std::apply(format_locale_wrapper<Values const &...>, _values);
68 template<
typename... Args>
69 static std::string format_wrapper(Args
const &...args)
71 return std::format(
static_cast<std::string_view
>(Fmt), args...);
74 template<
typename... Args>
77 return std::format(loc,
static_cast<std::string_view
>(Fmt), args...);
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
Delayed formatting.
Definition delayed_format.hpp:21
delayed_format(Args const &...args) noexcept
Construct a delayed format.
Definition delayed_format.hpp:44
std::string operator()(std::locale const &loc) const noexcept
Format now.
Definition delayed_format.hpp:60
std::string operator()() const noexcept
Format now.
Definition delayed_format.hpp:51