Initialize anchor with a newly allocated bucket array.
Synopsis
Declared in <bslstl_hashtable.h>
template<class ALLOCATOR>
static
void
initAnchor(
bslalg::HashTableAnchor* anchor,
std::size_t bucketArraySize,
ALLOCATOR const& allocator);
Description
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().
Parameters
Name |
Description |
anchor |
hash‐table anchor to initialize |
bucketArraySize |
number of buckets to allocate |
allocator |
allocator used to supply memory |
Created with MrDocs