MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / X

Class X

edrav2/eprj/boost/libs/python/test/operators.cpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28using namespace boost::python;
29
30struct X : test_class<>
31{
32 typedef test_class<> base_t;
33
34 X(int x) : base_t(x) {}
35 X const operator+(X const& r) const { return X(value() + r.value()); }
36
37// typedef int (X::*safe_bool)() const;
38// operator safe_bool() const { return value() != 0 ? &X::value : 0; }
39};
40
41X operator-(X const& l, X const& r) { return X(l.value() - r.value()); }
42X operator-(int l, X const& r) { return X(l - r.value()); }

Callers 4

operator+Method · 0.70
operator-Function · 0.70
absFunction · 0.70
powFunction · 0.70

Calls

no outgoing calls

Tested by 4

operator+Method · 0.56
operator-Function · 0.56
absFunction · 0.56
powFunction · 0.56