MCPcopy Create free account
hub / github.com/apache/brpc / operator==

Function operator==

test/bvar_multi_dimension_unittest.cpp:540–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538};
539
540bool operator==(const MyStringView& x, const std::string& y) {
541 if (x.size() != y.size()) {
542 return false;
543 }
544
545 return butil::StringPiece::wordmemcmp(x.data(), y.data(), x.size()) == 0;
546}
547
548bool operator==(const std::string& x, const MyStringView& y) {
549 if (x.size() != y.size()) {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected