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

Method Find

common/value.h:2682–2699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2680
2681template <typename Base>
2682absl::StatusOr<absl::optional<Value>> MapValueMixin<Base>::Find(
2683 const Value& other,
2684 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
2685 google::protobuf::MessageFactory* absl_nonnull message_factory,
2686 google::protobuf::Arena* absl_nonnull arena) const {
2687 ABSL_DCHECK(descriptor_pool != nullptr);
2688 ABSL_DCHECK(message_factory != nullptr);
2689 ABSL_DCHECK(arena != nullptr);
2690
2691 Value result;
2692 CEL_ASSIGN_OR_RETURN(
2693 bool found, static_cast<const Base*>(this)->Find(
2694 other, descriptor_pool, message_factory, arena, &result));
2695 if (found) {
2696 return result;
2697 }
2698 return absl::nullopt;
2699}
2700
2701template <typename Base>
2702absl::StatusOr<Value> MapValueMixin<Base>::Has(

Callers 5

LookupInMapFunction · 0.45
SelectOptionalFieldMapFunction · 0.45
MapOptIndexOptionalValueFunction · 0.45
MapEqualFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected