[#BloombergLP-bdlcc-BoundedQueue-capacity] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/BoundedQueue.adoc[BoundedQueue]::capacity :relfileprefix: ../../../ :mrdocs: Return the maximum number of elements that may be stored in this queue. Note that the value returned may be greater than that supplied at construction. == Synopsis Declared in `<bdlcc_boundedqueue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t capacity() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#