MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / format_duration_value

Function format_duration_value

extlibs/fmt/include/fmt/chrono.h:763–770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761
762template <typename Char, typename Rep, typename OutputIt>
763OutputIt 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
772template <typename Char, typename Period, typename OutputIt>
773OutputIt format_duration_unit(OutputIt out) {

Callers

nothing calls this directly

Calls 1

format_toFunction · 0.70

Tested by

no test coverage detected