Set the bucket array address and size attributes of this object.

Synopsis

Declared in <bslalg_hashtableanchor.h>

void
setBucketArrayAddressAndSize(
    HashTableBucket* bucketArrayAddress,
    std::size_t bucketArraySize);

Description

Set the bucket array address and bucket array size attributes of this object to the specified bucketArrayAddress and bucketArraySize values. 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

Name

Description

bucketArrayAddress

address of the contiguous bucket array, or 0

bucketArraySize

number of buckets in the array, or 0

Created with MrDocs