| 134 | |
| 135 | template <typename Char, typename OutputIt, typename T, typename FormatContext> |
| 136 | FMT_CONSTEXPR auto write_escaped_alternative(OutputIt out, const T& v, |
| 137 | FormatContext& ctx) -> OutputIt { |
| 138 | if constexpr (has_to_string_view<T>::value) |
| 139 | return write_escaped_string<Char>(out, detail::to_string_view(v)); |
| 140 | if constexpr (std::is_same_v<T, Char>) return write_escaped_char(out, v); |
| 141 | |
| 142 | formatter<std::remove_cv_t<T>, Char> underlying; |
| 143 | maybe_set_debug_format(underlying, true); |
| 144 | return underlying.format(v, ctx); |
| 145 | } |
| 146 | #endif |
| 147 | |
| 148 | #if FMT_CPP_LIB_VARIANT |
nothing calls this directly
no test coverage detected