[#BloombergLP-bslalg-AutoArrayDestructor-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/AutoArrayDestructor.adoc[AutoArrayDestructor]::AutoArrayDestructor :relfileprefix: ../../../ :mrdocs: Create a proctor for the specified range of array elements. == Synopsis Declared in `<bslalg_autoarraydestructor.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- AutoArrayDestructor( OBJECT_TYPE* begin, OBJECT_TYPE* end, ALLOCATOR allocator = ALLOCATOR()); ---- == Description Create an array exception guard object for the sequence of elements of the parameterized `OBJECT_TYPE` delimited by the range specified by `[ begin, end )]`. The behavior is undefined unless `begin <= end` and each element in the range `[ begin, end )]` has been initialized. == Parameters [cols="1,4"] |=== | Name| Description | *begin* | beginning of the range of elements to guard | *end* | end of the range of elements to guard (one past the last) | *allocator* | allocator used to destroy elements |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#