[#BloombergLP-bslma-DeallocatorProctor-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/DeallocatorProctor.adoc[DeallocatorProctor]::DeallocatorProctor
:relfileprefix: ../../../
:mrdocs:

Create a deallocator proctor that conditionally manages memory&period;

== Synopsis

Declared in `&lt;bslma&lowbar;deallocatorproctor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
DeallocatorProctor(
    void* memory,
    ALLOCATOR* allocator);
----

== Description

Create a deallocator proctor that conditionally manages the specified `memory` (if non&hyphen;zero), and that uses the specified `allocator` to deallocate the block of memory managed by this proctor (if not released &hyphen;&hyphen; see `release`) upon destruction&period; The behavior is undefined unless `allocator` is non&hyphen;zero and supplied `memory`&period; Note that `allocator` must remain valid throughout the lifetime of this proctor&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *memory*
| Memory block to manage, or 0 for none&period;
| *allocator*
| Allocator (or pool) used to deallocate managed memory&period;
|===


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