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

Method operator<

base/attribute.cc:240–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240bool AttributeQualifier::operator<(const AttributeQualifier& other) const {
241 // The order is not publicly documented because it is subject to change.
242 // Currently we sort in the following order, with each type being sorted
243 // against itself: bool, int, uint, string, type.
244 return absl::visit(ComparatorVisitor{other.value_}, value_);
245}
246
247bool Attribute::operator==(const Attribute& other) const {
248 // We cannot check pointer equality as a short circuit because we have to

Callers

nothing calls this directly

Calls 5

variable_nameMethod · 0.80
getMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
qualifier_pathMethod · 0.45

Tested by

no test coverage detected