Template Function ADS::pre_visit(Tree<T> *, F&&)

Function Documentation

template<class T, class F>
void ADS::pre_visit(Tree<T> *t, F &&f)

the previsit: f( u ) on the root, then on the subtrees in order