[#BloombergLP-bdlmt-MultiQueueThreadPool-numElements-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultiQueueThreadPool.adoc[MultiQueueThreadPool]::numElements :relfileprefix: ../../../ :mrdocs: Return an instantaneous snapshot of the number of elements enqueued in the queue associated with the specified `id` as a non‐negative integer, or ‐1 if `id` does not specify a valid queue. == Synopsis Declared in `<bdlmt_multiqueuethreadpool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int numElements(int id) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#