[#BloombergLP-bslstl-HashTable-maxSize] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable.adoc[HashTable]::maxSize :relfileprefix: ../../../ :mrdocs: Return a theoretical upper bound on the number of elements. == Synopsis Declared in `<bslstl_hashtable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslstl/HashTable/SizeType.adoc[HashTable<KEY_CONFIG, HASHER, COMPARATOR, ALLOCATOR>::SizeType] maxSize() const; ---- == Description Return a theoretical upper bound on the largest number of elements that this hash‐table could possibly hold. Note that there is no guarantee that the hash‐table can successfully grow to the returned size, or even close to that size without running out of resources. == Return Value theoretical upper bound on the number of elements [.small]#Created with https://www.mrdocs.com[MrDocs]#