Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/brpc
/ operator+
Method
operator+
test/bvar_status_unittest.cpp:187–189 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
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
192
std::ostream& operator<<(std::ostream& os, const Foo& f) {
Callers
nothing calls this directly
Calls
1
Foo
Class · 0.70
Tested by
no test coverage detected