[#BloombergLP-bdlcc-TimeQueue-091-add-0f7] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/TimeQueue-091.adoc[TimeQueue<function<void()>>]::add :relfileprefix: ../../../ :mrdocs: 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. == Synopsis Declared in `<bdlcc_timequeue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlcc/TimeQueue-091/Handle.adoc[Handle] add( xref:BloombergLP/bdlcc/TimeQueueItem.adoc[TimeQueueItem<function<void()>>] const& item, int* isNewTop = 0, int* newLength = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#