Template Function fwdpp::ts::process_children¶
Defined in File children.hpp
Function Documentation¶
-
template<typename
F>
voidfwdpp::ts::process_children(const marginal_tree &m, table_index_t n, bool left_to_right_traversal, const F &f)¶ Apply a function to children of node n.
- Parameters
n: Index a fwdpp::ts::nodeleft_to_right_traversal.: Iftrue, traverse children left-to-right. Else, the opposite.f: A function equivalent to void (*process_child)(table_index_t)