SyTen

◆ visit_top_rec() [3/3]

template<typename T >
template<typename Func , typename PtrType , typename ValueType >
static std::result_of<Func(ValueType&)>::type syten::BinaryTree::Tree< T >::visit_top_rec ( Func &&  f,
typename std::result_of< Func(ValueType &)>::type  initial,
IterFirst const  dir,
PtrType  ptr 
)
inlinestatic

Recursively visits a subtree, top-first.

Parameters
ffunction to call on each node value
initialinitial value of the accumulator
dirleft or right subtree first?
ptrpointer to root of subtree
Returns
the accumulated value from this node and each branch

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

+ Here is the call graph for this function: