Return the number of elements in the queue with the specified id.
Declared in <bdlmt_multiqueuethreadpool.h>
int
numElements(int id) const;
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.
number of elements in the queue, or -1 if id is invalid
| Name | Description |
|---|---|
| id | queue identifier |