SyTen

◆ visit_top() [1/6]

template<typename T >
template<typename Func >
void syten::BinaryTree::Tree< T >::visit_top ( Func &&  f,
IterFirst const  dir = IterFirst::Left 
)
inline

Visits each node, starting at the root node.

Parameters
ffunction to call on each pointer to a node
dirleft or right branch first?

References syten::BinaryTree::Tree< T >::r, and syten::BinaryTree::Tree< T >::visit_top_rec().

+ Here is the call graph for this function: