[#BloombergLP-bdlcc-BoundedQueue-numElements] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/BoundedQueue.adoc[BoundedQueue]::numElements :relfileprefix: ../../../ :mrdocs: Returns the number of elements currently in this queue. Note that `numElements() == capacity()` is not a valid replacement for `isFull` (see {Exception Safety} for details). == Synopsis Declared in `<bdlcc_boundedqueue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t numElements() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#