MCPcopy Create free account
hub / github.com/apache/brpc / Foo

Class Foo

test/bvar_status_unittest.cpp:183–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183struct Foo {
184 int x;
185 Foo() : x(0) {}
186 explicit Foo(int x2) : x(x2) {}
187 Foo operator+(const Foo& rhs) const {
188 return Foo(x + rhs.x);
189 }
190};
191
192std::ostream& operator<<(std::ostream& os, const Foo& f) {
193 return os << "Foo{" << f.x << "}";

Callers 2

operator+Method · 0.70
TEST_FFunction · 0.70

Calls

no outgoing calls

Tested by 2

operator+Method · 0.56
TEST_FFunction · 0.56