2021-08-29 20:15:18 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string_view>
|
|
|
|
#include <fmt/format.h>
|
|
|
|
#include <fmt/chrono.h>
|
|
|
|
|
|
|
|
namespace hex {
|
|
|
|
|
2022-01-24 19:53:17 +00:00
|
|
|
template<typename... Args>
|
|
|
|
inline std::string format(std::string_view format, Args... args) {
|
2021-08-29 20:15:18 +00:00
|
|
|
return fmt::format(fmt::runtime(format), args...);
|
|
|
|
}
|
|
|
|
|
2022-01-24 19:53:17 +00:00
|
|
|
template<typename... Args>
|
|
|
|
inline void print(std::string_view format, Args... args) {
|
2021-08-29 20:15:18 +00:00
|
|
|
fmt::print(fmt::runtime(format), args...);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|