BloombergLP::bdlcc::TimeQueue::update

update overloads

Synopses

Declared in <bdlcc_timequeue.h>

Update the time of the item having the specified handle to newTime.

int
update(
    Handle handle,
    bsls::TimeInterval const& newTime,
    int* isNewTop = 0);
» more...

Same as the preceding overload, with the specified key.

int
update(
    Handle handle,
    Key const& key,
    bsls::TimeInterval const& newTime,
    int* isNewTop = 0);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
handlehandle of the item to update
newTimenew time value for the item
isNewTopif non-null, set if the item is now the lowest
keykey that must also match