BloombergLP::bslalg::HashTableAnchor::HashTableAnchor

Create a HashTableAnchor with the specified attributes.

Synopsis

Declared in <bslalg_hashtableanchor.h>

HashTableAnchor(
    HashTableBucket* bucketArrayAddress,
    std::size_t bucketArraySize,
    BidirectionalLink* listRootAddress);

Description

Create a bslalg::HashTableAnchor object having the specified bucketArrayAddress, bucketArraySize, and listRootAddress attributes. The behavior is undefined unless bucketArrayAddress refers to a contiguous sequence of valid bslalg::HashTableBucket objects of at least bucketArraySize or unless both bucketArrayAddress and bucketArraySize are 0.

Parameters

NameDescription
bucketArrayAddressaddress of the contiguous bucket array, or 0
bucketArraySizenumber of buckets in the array, or 0
listRootAddresshead of the element list, or 0