[#BloombergLP-bdlcc-TimeQueue-09c-remove-08]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/TimeQueue-09c.adoc[TimeQueue]::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`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlcc/TimeQueue-09c/remove-06.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;DATA&gt;]* item = 0);
----

[.small]#xref:BloombergLP/bdlcc/TimeQueue-09c/remove-06.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-09c/remove-07.adoc[remove](
    xref:BloombergLP/bdlcc/TimeQueue-09c/Handle.adoc[Handle] handle,
    xref:BloombergLP/bdlcc/TimeQueue-09c/Key.adoc[Key] const& key,
    int* newLength = 0,
    xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval]* newMinTime = 0,
    xref:BloombergLP/bdlcc/TimeQueueItem.adoc[TimeQueueItem&lt;DATA&gt;]* item = 0);
----

[.small]#xref:BloombergLP/bdlcc/TimeQueue-09c/remove-07.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *handle*
| handle of the item to remove
| *newLength*
| if non&hyphen;null, receives the new queue length
| *newMinTime*
| if non&hyphen;null, receives the new minimum time
| *item*
| if non&hyphen;null, receives the removed item
| *key*
| key that must also match
|===


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