[#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&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;algorithm&period;h&gt;`

[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`&period; Return the number of elements erased&period;
| xref:BloombergLP/bslstl/AlgorithmUtil/copyN.adoc[`copyN`] 
| Copy a counted range of elements to an output iterator&period;
|===



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