|
inlinestatic |
Recursively visits a subtree, top-first for const trees.
f | function to call on each pointer to a node |
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().
Referenced by syten::BinaryTree::Tree< T >::visit_top(), and syten::BinaryTree::Tree< T >::visit_top_rec().