[#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 `&lt;bdlmt&lowbar;multiqueuethreadpool&period;h&gt;`

Return an instantaneous snapshot of the total number of elements enqueued&period;


[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&period;&period;&period;_]#

Return the number of elements in the queue with the specified `id`&period;


[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&period;&period;&period;_]#

== Return Value

* instantaneous snapshot of the total number of elements enqueued
* number of elements in the queue, or &hyphen;1 if `id` is invalid

== Parameters

[cols="1,4"]
|===
| Name| Description
| *id*
| queue identifier
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
