| 3839 | template <typename T, typename Char, type TYPE> |
| 3840 | template <typename FormatContext> |
| 3841 | FMT_CONSTEXPR auto native_formatter<T, Char, TYPE>::format( |
| 3842 | const T& val, FormatContext& ctx) const -> decltype(ctx.out()) { |
| 3843 | if (!specs_.dynamic()) |
| 3844 | return write<Char>(ctx.out(), val, specs_, ctx.locale()); |
| 3845 | auto specs = format_specs(specs_); |
| 3846 | handle_dynamic_spec(specs.dynamic_width(), specs.width, specs_.width_ref, |
| 3847 | ctx); |
| 3848 | handle_dynamic_spec(specs.dynamic_precision(), specs.precision, |
| 3849 | specs_.precision_ref, ctx); |
| 3850 | return write<Char>(ctx.out(), val, specs, ctx.locale()); |
| 3851 | } |
| 3852 | } // namespace detail |
| 3853 | |
| 3854 | FMT_BEGIN_EXPORT |
no test coverage detected