23struct fmt::formatter<Ptr> : fmt::formatter<std::string_view>
25 template <
typename FormatContext>
26 auto format (
const Ptr &ptr, FormatContext &ctx)
const
30 return fmt::formatter<std::string_view>::format (
31 fmt::format (
"{}", *ptr), ctx);
34 return fmt::formatter<std::string_view>::format (
"(null)", ctx);
40struct fmt::formatter<std::pair<T, U>> : fmt::formatter<std::string_view>
42 auto format (
const std::pair<T, U> &pair, format_context &ctx)
const
43 -> format_context::iterator
45 return fmt::formatter<std::string_view>::format (
46 fmt::format (
"({}, {})", pair.first, pair.second), ctx);