[#BloombergLP-bdlcc-ObjectPool-AutoCleanup-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/ObjectPool.adoc[ObjectPool]::xref:BloombergLP/bdlcc/ObjectPool.adoc[AutoCleanup]::AutoCleanup
:relfileprefix: ../../../../
:mrdocs:

Create a proctor for the specified list of object nodes&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;objectpool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
AutoCleanup(
    xref:BloombergLP/bdlcc/ObjectPool/AutoCleanup/BlockNode.adoc[BlockNode]* block,
    xref:BloombergLP/bdlcc/ObjectPool/AutoCleanup/ObjectNode.adoc[ObjectNode]* head,
    xref:BloombergLP/bdlma/InfrequentDeleteBlockList.adoc[bdlma::InfrequentDeleteBlockList]* allocator,
    int numNodes = 0);
----


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