BloombergLP::bdlcc::TimeQueue::add

Same as the preceding overload, with the specified key.

Synopsis

Declared in <bdlcc_timequeue.h>

TimeQueue<DATA>::Handle
add(
    bsls::TimeInterval const& time,
    DATA const& data,
    Key const& key,
    int* isNewTop = 0,
    int* newLength = 0);

Return Value

handle for the item, or -1 if the queue is full

Parameters

NameDescription
timescheduled time for the item
datadata associated with the item
keykey used to uniquely identify the item
isNewTopoptional flag set if the item is the new lowest
newLengthoptional location for the new queue length