MCPcopy Create free account
hub / github.com/davisking/dlib / delete_tree

Method delete_tree

dlib/binary_search_tree/binary_search_tree_kernel_2.h:1055–1065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1053 typename compare
1054 >
1055 void binary_search_tree_kernel_2<domain,range,mem_manager,compare>::
1056 delete_tree (
1057 node* t
1058 )
1059 {
1060 if (t->left != NIL)
1061 delete_tree(t->left);
1062 if (t->right != NIL)
1063 delete_tree(t->right);
1064 pool.deallocate(t);
1065 }
1066
1067// ----------------------------------------------------------------------------------------
1068

Callers

nothing calls this directly

Calls 1

deallocateMethod · 0.45

Tested by

no test coverage detected