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

Remove all the items from this queue for which `predicate` returns `true`&period; Optionally specify `newLength`, in which to load the number of items remaining in this queue&period; Optionally specify `newMinTime`, in which to load the lowest remaining time value in this queue&period; Optionally specify a vector of `removedItems` in which to load the removed items&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
removeIf(
    xref:bsl/function-0a.adoc[bsl::function&lt;bool(xref:bsl/function-0a.adoc[function&lt;void()&gt;] const&)&gt;] const& predicate,
    int* newLength = 0,
    xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval]* newMinTime = 0,
    xref:bsl/vector-00d.adoc[bsl::vector&lt;TimeQueueItem&lt;function&lt;void()&gt;&gt;&gt;]* removedItems = 0);
----


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