MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / operator==

Method operator==

common/function_descriptor.cc:47–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47bool FunctionDescriptor::operator==(const FunctionDescriptor& other) const {
48 return impl_.get() == other.impl_.get() ||
49 (name() == other.name() &&
50 receiver_style() == other.receiver_style() &&
51 types().size() == other.types().size() &&
52 std::equal(types().begin(), types().end(), other.types().begin()));
53}
54
55bool FunctionDescriptor::operator<(const FunctionDescriptor& other) const {
56 if (impl_.get() == other.impl_.get()) {

Callers

nothing calls this directly

Calls 7

nameFunction · 0.50
getMethod · 0.45
nameMethod · 0.45
receiver_styleMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected