MCPcopy Create free account
hub / github.com/fmtlib/fmt / operator-

Method operator-

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

Source from the content-addressed store, hash-verified

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; }

Callers

nothing calls this directly

Calls 1

slow_floatClass · 0.85

Tested by

no test coverage detected