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.

Synopsis

Declared in <bslstl_hashtable.h>

struct HashTable_Util;

Static Member Functions

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().

Created with MrDocs