MCPcopy Create free account
hub / github.com/boostorg/hana / operator/

Function operator/

example/misc/dimensional_analysis.cpp:59–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58template <typename D1, typename D2>
59auto operator/(quantity<D1> a, quantity<D2> b) {
60 using D = decltype(hana::zip_with(std::minus<>{}, D1{}, D2{}));
61 return quantity<D>{static_cast<double>(a) / static_cast<double>(b)};
62}
63
64int main() {
65 quantity<mass> m{10.3};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected