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);

Same as the preceding overload, with the specified key.

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

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

key

key that must also match

Created with MrDocs