[#bsl-unordered_set-0d2d-max_size] = xref:bsl.adoc[bsl]::xref:bsl/unordered_set-0d2d.adoc[unordered_set]::max_size :relfileprefix: ../../ :mrdocs: Return a theoretical upper bound on this set's size. == Synopsis Declared in `<bslstl_unorderedset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/unordered_set-0d2d/size_type.adoc[unordered_set<KEY, HASH, EQUAL, ALLOCATOR>::size_type] max_size() const noexcept; ---- == Description Return a theoretical upper bound on the largest number of elements that this set could possibly hold. Note that there is no guarantee that the set can successfully grow to the returned size, or even close to that size without running out of resources. == Return Value theoretical maximum number of elements [.small]#Created with https://www.mrdocs.com[MrDocs]#