[#BloombergLP-bslalg-AutoArrayDestructor-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/AutoArrayDestructor.adoc[AutoArrayDestructor]::AutoArrayDestructor
:relfileprefix: ../../../
:mrdocs:

Create an array exception guard object for the sequence of elements of the parameterized `OBJECT&lowbar;TYPE` delimited by the range specified by `&lsqb; begin, end )&rsqb;`&period; The behavior is undefined unless `begin &lt;&equals; end` and each element in the range `&lsqb; begin, end )&rsqb;` has been initialized&period;

== Synopsis

Declared in `&lt;bslalg&lowbar;autoarraydestructor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
AutoArrayDestructor(
    OBJECT&lowbar;TYPE* begin,
    OBJECT&lowbar;TYPE* end,
    ALLOCATOR allocator = ALLOCATOR());
----


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