[#BloombergLP-bdlcc-TimeQueue-09c-add-0b3] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/TimeQueue-09c.adoc[TimeQueue]::add :relfileprefix: ../../../ :mrdocs: `add` overloads == Synopses Declared in `<bdlcc_timequeue.h>` Add the value of the specified `item` to this queue. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlcc/TimeQueue-09c/Handle.adoc[TimeQueue<DATA>::Handle] xref:BloombergLP/bdlcc/TimeQueue-09c/add-0bc.adoc[add]( xref:BloombergLP/bdlcc/TimeQueueItem.adoc[TimeQueueItem<DATA>] const& item, int* isNewTop = 0, int* newLength = 0); ---- [.small]#xref:BloombergLP/bdlcc/TimeQueue-09c/add-0bc.adoc[_» more..._]# Add an item with the specified time and associated data. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlcc/TimeQueue-09c/Handle.adoc[TimeQueue<DATA>::Handle] xref:BloombergLP/bdlcc/TimeQueue-09c/add-02.adoc[add]( xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& time, DATA const& data, int* isNewTop = 0, int* newLength = 0); ---- [.small]#xref:BloombergLP/bdlcc/TimeQueue-09c/add-02.adoc[_» more..._]# Same as the preceding overload, with the specified `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlcc/TimeQueue-09c/Handle.adoc[TimeQueue<DATA>::Handle] xref:BloombergLP/bdlcc/TimeQueue-09c/add-06.adoc[add]( xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& time, DATA const& data, xref:BloombergLP/bdlcc/TimeQueue-09c/Key.adoc[Key] const& key, int* isNewTop = 0, int* newLength = 0); ---- [.small]#xref:BloombergLP/bdlcc/TimeQueue-09c/add-06.adoc[_» more..._]# == Return Value handle for the item, or ‐1 if the queue is full == Parameters [cols="1,4"] |=== | Name| Description | *item* | item whose time, data, and key are added | *isNewTop* | optional flag set if the item is the new lowest | *newLength* | optional location for the new queue length | *time* | scheduled time for the item | *data* | data associated with the item | *key* | key used to uniquely identify the item |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#