C++ output params setup for a forloop node

Yes, I noticed that about the ForLoop and how expensive it is in BP. I don’t understand why there’s not a native function implementation so I tried to do on my own, but I can’t find a guide on how to create all the needed pins.