|
inlinestatic |
Recursively visits a subtree, top-first.
f | function to call on each node value |
initial | initial value of the accumulator |
dir | left or right subtree first? |
ptr | pointer to root of subtree |
References syten::BinaryTree::Tree< T >::visit_top_rec().