[#BloombergLP-bslstl-HashTable_NodeProctor-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable_NodeProctor.adoc[HashTable&lowbar;NodeProctor]::HashTable&lowbar;NodeProctor
:relfileprefix: ../../../
:mrdocs:

Create a proctor that conditionally manages `node`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
HashTable&lowbar;NodeProctor(
    FACTORY* factory,
    xref:BloombergLP/bslalg/BidirectionalLink.adoc[bslalg::BidirectionalLink]* node);
----

== Description

Create a new node&hyphen;proctor that conditionally manages the specified `node` (if non&hyphen;zero), and that uses the specified `factory` to destroy the node (unless released) upon its destruction&period; The behavior is undefined unless `node` was created by the `factory`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *factory*
| factory used to destroy the managed node
| *node*
| node to manage, or null
|===


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