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

Class double_double

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

Source from the content-addressed store, hash-verified

278#endif
279
280struct double_double {
281 double a;
282 double b;
283
284 constexpr explicit double_double(double a_val = 0, double b_val = 0)
285 : a(a_val), b(b_val) {}
286
287 operator double() const { return a + b; }
288 auto operator-() const -> double_double { return double_double(-a, -b); }
289};
290
291auto format_as(double_double d) -> double { return d; }
292

Callers 2

operator-Method · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 2

operator-Method · 0.68
TESTFunction · 0.68