Is there a better way to loop through all elements of a datatable?

STL is not used by any version of the engine. We do have our own iterators, though, so you could use those to implement the node you describe