[#BloombergLP-bslma-DeallocateBytesProctor-reset]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/DeallocateBytesProctor.adoc[DeallocateBytesProctor]::reset
:relfileprefix: ../../../
:mrdocs:

Release the managed memory and reset this proctor to manage a different block&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
reset(
    xref:BloombergLP/bslma/DeallocateBytesProctor.adoc[PtrType] p,
    std::size&lowbar;t nbytes,
    std::size&lowbar;t alignment = k&lowbar;MAX&lowbar;ALIGNMENT);
----

== Description

Release the managed memory and reset this proctor to manage the specified `nbytes` bytes at the specified `p` address&period; Optionally specify the `alignment` used to allocate `p`&period; If `p` is null, then the proctor is disengaged (manages no memory)&period; The behavior is undefined unless `p` is null or was allocated with a size of `nbytes` and alignment of `alignment` from the same allocator used to construct this proctor&period; Note that the previously managed block is not deallocated&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| address of the memory block to manage, or null
| *nbytes*
| size in bytes of the block at `p`
| *alignment*
| alignment used when `p` was allocated
|===


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