[#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. Optionally load into the optionally specified `isNewTop` a non‐zero value if the replaces is now the lowest element in this queue, and a 0 value otherwise. If specified, load into the optionally specified `newLength`, the new number of elements in this queue. Return a value that may be used to identify the newly added item in future calls to time queue on success, and ‐1 if the maximum queue length has been reached. [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 a new item to this queue having the specified `time` value, and associated `data`. Optionally use the specified `key` to uniquely identify the item in subsequent calls to `remove` and `update`. Optionally load into the optionally specified `isNewTop` a non‐zero value if the item is now the lowest item in this queue, and a 0 value otherwise. If specified, load into the optionally specified `newLength`, the new number of items in this queue. Return a value that may be used to identify the newly added item in future calls to time queue on success, and ‐1 if the maximum queue length has been reached. [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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#