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

Method Find

common/values/value_builder.cc:1085–1097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1083
1084 protected:
1085 absl::StatusOr<bool> Find(
1086 const Value& key,
1087 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
1088 google::protobuf::MessageFactory* absl_nonnull message_factory,
1089 google::protobuf::Arena* absl_nonnull arena,
1090 Value* absl_nonnull result) const override {
1091 CEL_RETURN_IF_ERROR(CheckMapKey(key));
1092 if (auto it = map_.find(key); it != map_.end()) {
1093 *result = it->second;
1094 return true;
1095 }
1096 return false;
1097 }
1098
1099 absl::StatusOr<bool> Has(
1100 const Value& key,

Callers

nothing calls this directly

Calls 2

CheckMapKeyFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected