SyTen

◆ visit_bottom_rec() [3/3]

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

Recursively visits a subtree, bottom-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 each branch and this node

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

+ Here is the call graph for this function: