Return the number of elements currently in this queue.

Synopsis

Declared in <bdlcc_boundedqueue.h>

std::size_t
numElements() const;

Description

Note that numElements() == capacity() is not a valid replacement for isFull (see {Exception Safety} for details).

Return Value

the number of elements currently in this queue

Created with MrDocs