This utility struct provide utilities for initializing and destroying bucket lists in anchors that are managed by a HashTable. They cannot migrate down to bslalg::HashTableImpUtil as they rely on the standard library bslma_allocatortraits for their implementation.
Declared in <bslstl_hashtable.h>
struct HashTable_Util;
| Name | Description |
|---|---|
assertNotNullPointer | assertNotNullPointer overloads |
destroyBucketArray | Destroy the specified data array of the specified length bucketArraySize, that was allocated by the specified allocator. |
initAnchor | Load into the specified anchor a (contiguous) array of buckets of the specified bucketArraySize using memory supplied by the specified allocator. The behavior is undefined unless 0 < bucketArraySize and 0 == anchor->bucketArraySize(). Note that this operation has no effect on anchor->listRootAddress(). |