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

Class slow_float

test/format-impl-test.cc:297–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297struct slow_float {
298 float value;
299
300 constexpr explicit slow_float(float val = 0) : value(val) {}
301 operator float() const { return value; }
302 auto operator-() const -> slow_float { return slow_float(-value); }
303};
304
305auto format_as(slow_float f) -> float { return f; }
306

Callers 2

operator-Method · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 2

operator-Method · 0.68
TESTFunction · 0.68