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