85 std::stable_partition(
tree.children.begin(),
tree.children.end(),
86 [&
newValue](
const auto &
item) { return !(newValue >= item.value); });
93 newChild.children.emplace_back(std::move(*
it));
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
void insert_set_sorted(tree_node< T > &tree, T newValue, T zero={})
void flatten(const tree_node< T > &tree, std::vector< T > &flatten_elements)
std::vector< tree_node > children