[#bsl-set-0d-max_size] = xref:bsl.adoc[bsl]::xref:bsl/set-0d.adoc[set]::max_size :relfileprefix: ../../ :mrdocs: Return a theoretical upper bound on this set's size. == Synopsis Declared in `<bslstl_set.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/set-0d/size_type.adoc[set<KEY, COMPARATOR, ALLOCATOR>::size_type] max_size() const noexcept; ---- == Description 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]#