[#bsl-erase_if-0b] = xref:bsl.adoc[bsl]::erase_if :relfileprefix: ../ :mrdocs: Erase all the elements in the specified deque `deq` that satisfy the specified predicate `predicate`. Return the number of elements erased. == Synopsis Declared in `<bslstl_deque.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE_TYPE, class ALLOCATOR, class PREDICATE> deque<VALUE_TYPE, ALLOCATOR>::size_type erase_if( xref:bsl/deque-0c.adoc[deque<VALUE_TYPE, ALLOCATOR>]& deq, PREDICATE predicate); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#