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