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

Method Clone

common/values/value_builder.cc:267–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265 }
266
267 CustomListValue Clone(google::protobuf::Arena* absl_nonnull arena) const override {
268 ABSL_DCHECK(arena != nullptr);
269
270 ListValueBuilderImpl builder(arena);
271 builder.Reserve(elements_.size());
272 for (const auto& element : elements_) {
273 builder.UnsafeAdd(element.Clone(arena));
274 }
275 return std::move(builder).BuildCustom();
276 }
277
278 size_t Size() const override { return elements_.size(); }
279

Callers

nothing calls this directly

Calls 5

UnsafeAddMethod · 0.80
BuildCustomMethod · 0.80
ReserveMethod · 0.45
sizeMethod · 0.45
CloneMethod · 0.45

Tested by

no test coverage detected