Closed pbor closed 5 years ago
Thanks. What about reverse_traverse
?
I am trying to replace a custom tree implementation with rctree and we have a double ended iterator... I could have just replaced our calls to children().rev() with reverse_children(), but I thought it might make sense to propose the double ended iterator upstream.
I can (try to) do reverse_traverse as well if you like the idea
Yes. I like it, because it's more idiomatic.
Cool, I will take a look at reverse_traverse then.
And thanks for the quick feedback.... this must be a record :smile:
Thanks!
I've missed your last patch for some reason.
Remove the ReverseChildren iterator and implement a double ended iterator instead.