11 template <
typename... T>
12 inline std::string
format(fmt::format_string<T...> pattern, T&&... args)
14 return fmt::vformat(pattern, fmt::make_format_args(args...));
17 template <
typename... T>
18 inline std::wstring
format(fmt::wformat_string<T...> pattern, T&&... args)
20 return fmt::vformat<wchar_t>(pattern, fmt::make_format_args<fmt::wformat_context>(args...));
23 template <
typename... T>
24 inline void print(fmt::format_string<T...> pattern, T&&... args)
26 return fmt::vprint(pattern, fmt::make_format_args(args...));
29 template <
typename... T>
30 inline void print(fmt::wformat_string<T...> pattern, T&&... args)
32 return fmt::vprint<wchar_t>(pattern, fmt::make_format_args<fmt::wformat_context>(args...));
35 template <
typename TOutputStream,
typename... T>
36 inline void print(TOutputStream& stream, fmt::format_string<T...> pattern, T&&... args)
38 return fmt::vprint(stream, pattern, fmt::make_format_args(args...));
41 template <
typename TOutputStream,
typename... T>
42 inline void print(TOutputStream& stream, fmt::wformat_string<T...> pattern, T&&... args)
44 return fmt::vprint<wchar_t>(stream, pattern, fmt::make_format_args<fmt::wformat_context>(args...));
51 using namespace fmt::literals;
C++ Common project definitions.
std::string format(fmt::format_string< T... > pattern, T &&... args)
Format string.
void print(fmt::format_string< T... > pattern, T &&... args)
Format string and print it into the std::cout.