[#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. == Synopsis Declared in `<bslma_deallocatebytesproctor.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void reset( xref:BloombergLP/bslma/DeallocateBytesProctor.adoc[PtrType] p, std::size_t nbytes, std::size_t alignment = k_MAX_ALIGNMENT); ---- == Description Release the managed memory and reset this proctor to manage the specified `nbytes` bytes at the specified `p` address. Optionally specify the `alignment` used to allocate `p`. If `p` is null, then the proctor is disengaged (manages no memory). 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. Note that the previously managed block is not deallocated. == 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]#