81struct fmt::formatter<USERVER_NAMESPACE::utils::statistics::HistogramView> {
82 constexpr static auto parse(format_parse_context& ctx) {
return ctx.begin(); }
84 template <
typename FormatCtx>
85 auto format(USERVER_NAMESPACE::utils::statistics::HistogramView histogram, FormatCtx& ctx)
const {
87 for (std::size_t i = 0; i < bucket_count; ++i) {
89 ctx.advance_to(fmt::format_to(ctx.out(),
","));
91 ctx.advance_to(fmt::format_to(ctx.out(),
"[inf]={}", histogram
.GetValueAtInf()));