[#BloombergLP-bslalg-RbTreeUtil-deleteTree] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/RbTreeUtil.adoc[RbTreeUtil]::deleteTree :relfileprefix: ../../../ :mrdocs: Call `nodeFactory‐>deleteNode` on each node in `tree` and reset `tree` to an empty state. `FACTORY` shall be a class providing a method that can be called as if it has the following signature: ` void deleteNode(RbTreeNode *); ` The behavior is undefined unless `tree` is a valid binary tree, and `nodeFactory‐>deleteNode` does not throw. == Synopsis Declared in `<bslalg_rbtreeutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class FACTORY> static void deleteTree( xref:BloombergLP/bslalg/RbTreeAnchor.adoc[RbTreeAnchor]* tree, FACTORY* nodeFactory); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#