BloombergLP::bdlcc::TimeQueue::removeAll

Remove all the items from this queue.

Synopsis

Declared in <bdlcc_timequeue.h>

void
removeAll(bsl::vector<TimeQueueItem<DATA>>* removedItems = 0);

Description

Optionally specify a removedItems vector in which to load the removed items. The resultant items in the buffer are ordered by increasing time interval; items of equivalent time interval have arbitrary ordering. Note that the allocator of the removedItems vector is used to supply memory.

Parameters

NameDescription
removedItemsif non-null, receives the removed items