[#BloombergLP-bslstl-AlgorithmUtil] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::AlgorithmUtil :relfileprefix: ../../ :mrdocs: Provide a namespace for implementing helper routines for algorithm implementations. == Synopsis Declared in `<bslstl_algorithm.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct AlgorithmUtil; ---- == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/AlgorithmUtil/containerEraseIf.adoc[`containerEraseIf`] | Erase all the elements in the specified container `container` that satisfy the specified predicate `predicate`. Return the number of elements erased. | xref:BloombergLP/bslstl/AlgorithmUtil/copyN.adoc[`copyN`] | Copy the specified `count` elements from the specified `first` to the specified `result`. Return an iterator pointing past the last copied element in the output range. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#