[#BloombergLP-bslstl-HashTable_Util-destroyBucketArray]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable_Util.adoc[HashTable&lowbar;Util]::destroyBucketArray
:relfileprefix: ../../../
:mrdocs:

Destroy and deallocate a bucket array&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;hashtable&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOCATOR&gt;
static
void
destroyBucketArray(
    xref:BloombergLP/bslalg/HashTableBucket.adoc[bslalg::HashTableBucket]* data,
    std::size&lowbar;t bucketArraySize,
    ALLOCATOR const& allocator);
----

== Description

Destroy the specified `data` array of the specified length `bucketArraySize`, that was allocated by the specified `allocator`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *data*
| bucket array to destroy
| *bucketArraySize*
| number of buckets in the array
| *allocator*
| allocator that owns the array
|===


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