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

Method Clone

common/values/value_builder.cc:404–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402 }
403
404 CustomListValue Clone(google::protobuf::Arena* absl_nonnull arena) const override {
405 ABSL_DCHECK(arena != nullptr);
406
407 ListValueBuilderImpl builder(arena);
408 builder.Reserve(elements_.size());
409 for (const auto& element : elements_) {
410 builder.UnsafeAdd(element.Clone(arena));
411 }
412 return std::move(builder).BuildCustom();
413 }
414
415 size_t Size() const override { return elements_.size(); }
416

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