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

Method Has

eval/public/containers/internal_field_backed_map_impl.cc:143–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143absl::StatusOr<bool> FieldBackedMapImpl::Has(const CelValue& key) const {
144 MapValueConstRef value_ref;
145 return LookupMapValue(key, &value_ref);
146}
147
148absl::optional<CelValue> FieldBackedMapImpl::operator[](CelValue key) const {
149 // Fast implementation which uses a friend method to do a hash-based key

Callers 2

TESTFunction · 0.45
TESTFunction · 0.45

Calls 1

LookupMapValueFunction · 0.50

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36