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

Method Find

common/values/map_value.cc:154–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154absl::StatusOr<bool> MapValue::Find(
155 const Value& key,
156 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
157 google::protobuf::MessageFactory* absl_nonnull message_factory,
158 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) const {
159 ABSL_DCHECK(descriptor_pool != nullptr);
160 ABSL_DCHECK(message_factory != nullptr);
161 ABSL_DCHECK(arena != nullptr);
162 ABSL_DCHECK(result != nullptr);
163
164 return variant_.Visit([&](const auto& alternative) -> absl::StatusOr<bool> {
165 return alternative.Find(key, descriptor_pool, message_factory, arena,
166 result);
167 });
168}
169
170absl::Status MapValue::Has(
171 const Value& key,

Callers 7

TEST_FFunction · 0.45
SplitMethod · 0.45
ReplaceMethod · 0.45
TEST_FFunction · 0.45
MapValueEqualFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 1

VisitMethod · 0.45

Tested by 4

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36