BloombergLP::bdlcc::TimeQueue::remove

remove overloads

Synopses

Declared in <bdlcc_timequeue.h>

Remove from this queue the item having the specified handle.

int
remove(
    Handle handle,
    int* newLength = 0,
    bsls::TimeInterval* newMinTime = 0,
    TimeQueueItem<DATA>* item = 0);
» more...

Same as the preceding overload, with the specified key.

int
remove(
    Handle handle,
    Key const& key,
    int* newLength = 0,
    bsls::TimeInterval* newMinTime = 0,
    TimeQueueItem<DATA>* item = 0);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
handlehandle of the item to remove
newLengthif non-null, receives the new queue length
newMinTimeif non-null, receives the new minimum time
itemif non-null, receives the removed item
keykey that must also match