BloombergLP::bslstl::HashTable::maxNumBuckets

Return a theoretical upper bound on the number of buckets.

Synopsis

Declared in <bslstl_hashtable.h>

HashTable<KEY_CONFIG, HASHER, COMPARATOR, ALLOCATOR>::SizeType
maxNumBuckets() const;

Description

Return a theoretical upper bound on the largest number of buckets that this hash-table could possibly have. Note that there is no guarantee that the hash-table can successfully maintain that number of buckets, or even close to that number of buckets without running out of resources.

Return Value

theoretical upper bound on the number of buckets