[#BloombergLP-bdlc-FlatHashSet-capacity] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet]::capacity :relfileprefix: ../../../ :mrdocs: Return the number of elements this set could hold if the load factor were 1. == Synopsis Declared in `<bdlc_flathashset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t capacity() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#