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

Method ForEach

common/values/value_builder.cc:1031–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029 }
1030
1031 absl::Status ForEach(
1032 ForEachCallback callback,
1033 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
1034 google::protobuf::MessageFactory* absl_nonnull message_factory,
1035 google::protobuf::Arena* absl_nonnull arena) const override {
1036 for (const auto& entry : map_) {
1037 CEL_ASSIGN_OR_RETURN(auto ok, callback(entry.first, entry.second));
1038 if (!ok) {
1039 break;
1040 }
1041 }
1042 return absl::OkStatus();
1043 }
1044
1045 absl::StatusOr<absl_nonnull ValueIteratorPtr> NewIterator() const override {
1046 return std::make_unique<CompatMapValueImplIterator>(&map_);

Callers 2

MakeCompatListValueFunction · 0.45
MakeCompatMapValueFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected