[#BloombergLP-bslma-AutoDeallocator-setLength]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/AutoDeallocator.adoc[AutoDeallocator]::setLength
:relfileprefix: ../../../
:mrdocs:

Set the (signed) length of the managed memory&hyphen;block sequence&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setLength(int length);
----

== Description

Set the (signed) length of the sequence of memory blocks managed by this range proctor to the specified `length`&period; The behavior is undefined unless the origin of this range proctor is non&hyphen;zero&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *length*
| The signed length of the managed memory block sequence&period;
|===


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