MCPcopy Create free account
hub / github.com/fmtlib/fmt / write_float

Method write_float

include/fmt/format.h:2627–2637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2625
2626template <typename Char, typename OutputIt, typename DecimalFP>
2627FMT_CONSTEXPR20 auto write_float(OutputIt out, const DecimalFP& f,
2628 const format_specs& specs, sign s,
2629 int exp_upper, locale_ref loc) -> OutputIt {
2630 if (is_constant_evaluated()) {
2631 return do_write_float<Char, fallback_digit_grouping<Char>>(out, f, specs, s,
2632 exp_upper, loc);
2633 } else {
2634 return do_write_float<Char, digit_grouping<Char>>(out, f, specs, s,
2635 exp_upper, loc);
2636 }
2637}
2638
2639template <typename T> constexpr auto isnan(T value) -> bool {
2640 return value != value; // std::isnan doesn't support __float128.

Callers

nothing calls this directly

Calls 1

is_constant_evaluatedFunction · 0.85

Tested by

no test coverage detected