[#BloombergLP-bslalg-RbTreeUtilTreeProctor-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/RbTreeUtilTreeProctor.adoc[RbTreeUtilTreeProctor]::RbTreeUtilTreeProctor
:relfileprefix: ../../../
:mrdocs:

Create a proctor that deletes every node in `tree` on destruction&period;

== Synopsis

Declared in `&lt;bslalg&lowbar;rbtreeutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
RbTreeUtilTreeProctor(
    xref:BloombergLP/bslalg/RbTreeAnchor.adoc[RbTreeAnchor]* tree,
    DELETER* deleter);
----

== Description

Create a proctor object that, unless `release` is called, will, on destruction, invoke the specified `deleter` on each node in `tree`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tree*
| tree whose nodes are managed by this proctor
| *deleter*
| deleter invoked on each node unless `release` is called
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
