[#BloombergLP-bdlmt-MultiQueueThreadPool-numElements-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultiQueueThreadPool.adoc[MultiQueueThreadPool]::numElements :relfileprefix: ../../../ :mrdocs: `numElements` overloads == Synopses Declared in `<bdlmt_multiqueuethreadpool.h>` Return an instantaneous snapshot of the total number of elements enqueued. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlmt/MultiQueueThreadPool/numElements-0d.adoc[numElements]() const; ---- [.small]#xref:BloombergLP/bdlmt/MultiQueueThreadPool/numElements-0d.adoc[_» more..._]# Return the number of elements in the queue with the specified `id`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlmt/MultiQueueThreadPool/numElements-0e.adoc[numElements](int id) const; ---- [.small]#xref:BloombergLP/bdlmt/MultiQueueThreadPool/numElements-0e.adoc[_» more..._]# == Return Value * instantaneous snapshot of the total number of elements enqueued * number of elements in the queue, or ‐1 if `id` is invalid == Parameters [cols="1,4"] |=== | Name| Description | *id* | queue identifier |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#