11 #ifdef QUICR_HAS_STD_FORMAT
13 namespace std_or_fmt = std;
15 #include <fmt/chrono.h>
16 namespace std_or_fmt = fmt;
29 template<
typename... Args>
30 std::string
format(std_or_fmt::format_string<Args...> msg, Args&&... args)
44 template<
typename... Args>
45 std::string
vformat(std::string_view msg, Args&&... args)
47 const std_or_fmt::string_view
format{ msg.data(), msg.size() };
Definition: attributes.h:13
std::string vformat(std::string_view msg, Args &&... args)
Formats arguments using a runtime format string.
Definition: format.h:45
std::string format(std_or_fmt::format_string< Args... > msg, Args &&... args)
Formats arguments using the configured std::format or {fmt} backend.
Definition: format.h:30