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

Method ProjectKeys

common/values/value_builder.cc:1295–1308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1293
1294 private:
1295 const CompatListValue* absl_nonnull ProjectKeys() const {
1296 absl::call_once(keys_once_, [this]() {
1297 ListValueBuilderImpl builder(map_.get_allocator().arena());
1298 builder.Reserve(map_.size());
1299
1300 for (const auto& entry : map_) {
1301 builder.UnsafeAdd(entry.first);
1302 }
1303
1304 std::move(builder).BuildCompatAt(&keys_[0]);
1305 });
1306 return std::launder(
1307 reinterpret_cast<const CompatListValueImpl*>(&keys_[0]));
1308 }
1309
1310 mutable ValueFlatHashMap map_;
1311 mutable bool entries_trivially_destructible_ = true;

Callers

nothing calls this directly

Calls 5

UnsafeAddMethod · 0.80
BuildCompatAtMethod · 0.80
arenaMethod · 0.45
ReserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected