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

Synopsis

Declared in <bdlcc_timequeue.h>

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

Description

Update the time value of the item having the specified handle to the specified newTime and optionally load into the optionally specified isNewTop a non‐zero value if the modified item is now the lowest time value in the time queue or zero otherwise. Return 0 on success, and a non‐zero value if there is currently no item having the handle registered with this time queue.

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

handle

handle of the item to update

newTime

new time value for the item

isNewTop

if non‐null, set if the item is now the lowest

Created with MrDocs