BloombergLP::bslstl::HashTable_Util::destroyBucketArray

Destroy and deallocate a bucket array.

Synopsis

Declared in <bslstl_hashtable.h>

template<class ALLOCATOR>
static
void
destroyBucketArray(
    bslalg::HashTableBucket* data,
    std::size_t bucketArraySize,
    ALLOCATOR const& allocator);

Description

Destroy the specified data array of the specified length bucketArraySize, that was allocated by the specified allocator.

Parameters

NameDescription
databucket array to destroy
bucketArraySizenumber of buckets in the array
allocatorallocator that owns the array