[#BloombergLP-bdlcc-SingleProducerSingleConsumerBoundedQueue-capacity] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/SingleProducerSingleConsumerBoundedQueue.adoc[SingleProducerSingleConsumerBoundedQueue]::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_singleproducersingleconsumerboundedqueue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t capacity() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#