What can I improve on this Algorithm?

Velnias75 (26)
I published an article in the articles section, but got a quite low vote on it.
http://www.cplusplus.com/articles/4wTbqMoL/

So; i would like to discuss what can I improve on my algorithm, since it is also an integral part of my project HGL.
naraku9333 (1037)
Personally, I'm not really seeing a point to it. If I have to write the functors your function takes then it isn't saving me much time or code. So I might as well write an iterator and traversal functions myself.
Registered users can post here. Sign in or register to post.