[#BloombergLP-bslstl-AlgorithmUtil-containerEraseIf] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/AlgorithmUtil.adoc[AlgorithmUtil]::containerEraseIf :relfileprefix: ../../../ :mrdocs: Erase all the elements in the specified container `container` that satisfy the specified predicate `predicate`. Return the number of elements erased. == Synopsis Declared in `<bslstl_algorithm.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class CONTAINER, class PREDICATE> static CONTAINER::size_type containerEraseIf( CONTAINER& container, PREDICATE predicate); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#