How to implement LoopBody node in C++

Hello, I want to implement a for loop function in C++, which is called in the blueprint. I inherit this function from K2_Node. How can I write the output node of LoopBody? Because this is a function executed inside the loop, I have no way to start,thank you.

291219-image-1do706g2v86c5tm1v9p1cbgqho9.png

You should make function in C++ which return value , write UFUNCTION(BlueprintCallable) makro upside the function declaration in the header. Then you can call it from loop body in BP. If you want loop inside the fuction, just write for loop in function definition in C++ and call this func from BP without ForLoop node.