SyTen

◆ visit_bottom_rec() [2/3]

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

Recursively visits a subtree, bottom-first.

Parameters
ffunction to call on each pointer to a node
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().

Referenced by syten::BinaryTree::Tree< T >::visit_bottom(), and syten::BinaryTree::Tree< T >::visit_bottom_rec().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: