[#BloombergLP-bslalg-ArrayDestructionPrimitives-destroy-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/ArrayDestructionPrimitives.adoc[ArrayDestructionPrimitives]::destroy
:relfileprefix: ../../../
:mrdocs:

Destroy each `TARGET&lowbar;TYPE` in `&lsqb;begin, end)&rsqb;` using the destructor&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TARGET&lowbar;TYPE&gt;
static
void
destroy(
    TARGET&lowbar;TYPE* begin,
    TARGET&lowbar;TYPE* end,
    xref:bsl/false_type.adoc[bsl::false&lowbar;type] traits);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *begin*
| beginning of the range of elements to destroy
| *end*
| end of the range of elements to destroy (one past the last)
| *traits*
| unused trait tag for overload resolution
|===


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