SyTen
◆
visit()
[1/3]
template<typename T >
template<typename Func >
static
std::result_of
< Func(
Ptr
)>::type
syten::T3N::Tree::Tree
< T >::visit
(
Func &&
f
,
typename
std::result_of
< Func(
Ptr
)>::type
initial
,
Pair
<
IterDirection
,
IterDirection
>
directions
,
Ptr
ptr
)
inline
static
Recursively visits a subtree, bottom-first.
Parameters
f
function to call on each pointer to a node
initial
initial value of the accumulator
dir
left or right subtree first?
ptr
pointer to root of subtree
Returns
the accumulated value from each branch and this node
syten
T3N
Tree
Tree
Generated by
1.9.4