[#bsl-List_NodeProctor-2constructor-05]
= xref:bsl.adoc[bsl]::xref:bsl/List_NodeProctor.adoc[List&lowbar;NodeProctor]::List&lowbar;NodeProctor
:relfileprefix: ../../
:mrdocs:

Create a node proctor that frees `nodePtr` using `listPtr` on destruction&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;list&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
List&lowbar;NodeProctor(
    xref:bsl/list-054.adoc[list&lt;VALUE, ALLOCATOR&gt;]* listPtr,
    xref:bsl/List_NodeProctor/NodePtr.adoc[NodePtr] nodePtr);
----

== Description

The behavior is undefined unless `nodePtr` was allocated by the allocator of `&ast;listPtr`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *listPtr*
| list whose allocator frees the node
| *nodePtr*
| node to free unless `release` is called
|===


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