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

Method Find

common/values/value_builder.cc:1271–1283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1269
1270 protected:
1271 absl::StatusOr<bool> Find(
1272 const Value& key,
1273 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
1274 google::protobuf::MessageFactory* absl_nonnull message_factory,
1275 google::protobuf::Arena* absl_nonnull arena,
1276 Value* absl_nonnull result) const override {
1277 CEL_RETURN_IF_ERROR(CheckMapKey(key));
1278 if (auto it = map_.find(key); it != map_.end()) {
1279 *result = it->second;
1280 return true;
1281 }
1282 return false;
1283 }
1284
1285 absl::StatusOr<bool> Has(
1286 const Value& key,

Callers

nothing calls this directly

Calls 2

CheckMapKeyFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected