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

Function ComparisonImpl

eval/public/set_util.cc:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10// Note: for UnknownSet, Error and Message, this is ptr less than.
11template <typename T>
12int ComparisonImpl(T lhs, T rhs) {
13 if (lhs < rhs) {
14 return -1;
15 } else if (lhs > rhs) {
16 return 1;
17 } else {
18 return 0;
19 }
20}
21
22template <>
23int ComparisonImpl(const CelError* lhs, const CelError* rhs) {

Callers 1

operator()Method · 0.85

Calls 8

CelValueCompareFunction · 0.85
message_ptrMethod · 0.80
sizeMethod · 0.45
GetMethod · 0.45
valueMethod · 0.45
ListKeysMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected