Lines Matching refs:rhs
47 const ResourceNamedTypeRef& rhs) { in less_than_type() argument
48 return lhs->named_type < rhs; in less_than_type()
52 bool less_than_struct_with_name(const std::unique_ptr<T>& lhs, StringPiece rhs) { in less_than_struct_with_name() argument
53 return lhs->name.compare(0, lhs->name.size(), rhs.data(), rhs.size()) < 0; in less_than_struct_with_name()
57 bool greater_than_struct_with_name(StringPiece lhs, const std::unique_ptr<T>& rhs) { in greater_than_struct_with_name() argument
58 return rhs->name.compare(0, rhs->name.size(), lhs.data(), lhs.size()) > 0; in greater_than_struct_with_name()
63 bool operator()(const std::unique_ptr<T>& lhs, StringPiece rhs) const { in operator ()()
64 return less_than_struct_with_name<T>(lhs, rhs); in operator ()()
66 bool operator()(StringPiece lhs, const std::unique_ptr<T>& rhs) const { in operator ()()
67 return greater_than_struct_with_name<T>(lhs, rhs); in operator ()()
73 const std::pair<std::string_view, std::optional<U>>& rhs) { in less_than_struct_with_name_and_id() argument
74 if (lhs.id != rhs.second) { in less_than_struct_with_name_and_id()
75 return lhs.id < rhs.second; in less_than_struct_with_name_and_id()
77 return lhs.name.compare(0, lhs.name.size(), rhs.first.data(), rhs.first.size()) < 0; in less_than_struct_with_name_and_id()
94 bool lt_config_key_ref(const T& lhs, const ConfigKey& rhs) { in lt_config_key_ref() argument
95 int cmp = lhs->config.compare(*rhs.config); in lt_config_key_ref()
97 cmp = StringPiece(lhs->product).compare(rhs.product); in lt_config_key_ref()
313 auto it = std::lower_bound(el.begin(), el.end(), value, [&](auto& lhs, auto& rhs) { in LowerBound() argument
314 return Comparer::operator()(lhs, rhs); in LowerBound()
331 bool operator()(const ResourceTablePackageView& lhs, const ResourceTablePackageView& rhs) { in operator ()()
333 lhs, std::make_pair(rhs.name, rhs.id)); in operator ()()
338 bool operator()(const ResourceTableTypeView& lhs, const ResourceTableTypeView& rhs) { in operator ()()
339 return lhs.id != rhs.id ? lhs.id < rhs.id : lhs.named_type < rhs.named_type; in operator ()()
344 bool operator()(const ResourceTableEntryView& lhs, const ResourceTableEntryView& rhs) { in operator ()()
346 lhs, std::make_pair(rhs.name, rhs.id)); in operator ()()