[#BloombergLP-bdlcc-TimeQueue-091-remove-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/TimeQueue-091.adoc[TimeQueue&lt;function&lt;void()&gt;&gt;]::remove
:relfileprefix: ../../../
:mrdocs:

`remove` overloads

== Synopses

Declared in `&lt;bdlcc&lowbar;timequeue&period;h&gt;`

Remove from this queue the item having the specified `handle`, and optionally load into the optionally specified `item` the time and data values of the recently removed item&period; Optionally use the specified `key` to uniquely identify the item&period; If specified, load into the optionally specified `newMinTime`, the resulting lowest time value remaining in the queue&period; Return 0 on success, and a non&hyphen;zero value if no item with the `handle` exists in the queue&period; Note that if `DATA` follows the `bdema` allocator model, the allocator of the `item` instance is used to supply memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlcc/TimeQueue-091/remove-0af.adoc[remove](
    xref:BloombergLP/bdlcc/TimeQueue-09c/Handle.adoc[Handle] handle,
    int* newLength = 0,
    xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval]* newMinTime = 0,
    xref:BloombergLP/bdlcc/TimeQueueItem.adoc[TimeQueueItem&lt;function&lt;void()&gt;&gt;]* item = 0);
----

[.small]#xref:BloombergLP/bdlcc/TimeQueue-091/remove-0af.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, with the specified `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlcc/TimeQueue-091/remove-0aa.adoc[remove](
    xref:BloombergLP/bdlcc/TimeQueue-09c/Handle.adoc[Handle] handle,
    xref:BloombergLP/bdlcc/TimeQueue-091/Key.adoc[Key] const& key,
    int* newLength = 0,
    xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval]* newMinTime = 0,
    xref:BloombergLP/bdlcc/TimeQueueItem.adoc[TimeQueueItem&lt;function&lt;void()&gt;&gt;]* item = 0);
----

[.small]#xref:BloombergLP/bdlcc/TimeQueue-091/remove-0aa.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
