| 761 | |
| 762 | template <typename Char, typename Rep, typename OutputIt> |
| 763 | OutputIt format_duration_value(OutputIt out, Rep val, int precision) { |
| 764 | const Char pr_f[] = {'{', ':', '.', '{', '}', 'f', '}', 0}; |
| 765 | if (precision >= 0) return format_to(out, pr_f, val, precision); |
| 766 | const Char fp_f[] = {'{', ':', 'g', '}', 0}; |
| 767 | const Char format[] = {'{', '}', 0}; |
| 768 | return format_to(out, std::is_floating_point<Rep>::value ? fp_f : format, |
| 769 | val); |
| 770 | } |
| 771 | |
| 772 | template <typename Char, typename Period, typename OutputIt> |
| 773 | OutputIt format_duration_unit(OutputIt out) { |
nothing calls this directly
no test coverage detected