[#BloombergLP-bdlcc-TimeQueue-091-removeIf] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/TimeQueue-091.adoc[TimeQueue<function<void()>>]::removeIf :relfileprefix: ../../../ :mrdocs: Remove all the items from this queue for which `predicate` returns `true`. Optionally specify `newLength`, in which to load the number of items remaining in this queue. Optionally specify `newMinTime`, in which to load the lowest remaining time value in this queue. Optionally specify a vector of `removedItems` in which to load the removed items. == Synopsis Declared in `<bdlcc_timequeue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void removeIf( xref:bsl/function-0a.adoc[bsl::function<bool(xref:bsl/function-0a.adoc[function<void()>] const&)>] const& predicate, int* newLength = 0, xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval]* newMinTime = 0, xref:bsl/vector-00d.adoc[bsl::vector<TimeQueueItem<function<void()>>>]* removedItems = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#