[#bsl-slist-unique-0f]
= xref:bsl.adoc[bsl]::xref:bsl/slist.adoc[slist]::unique
:relfileprefix: ../../
:mrdocs:

Erase consecutive elements for which `&lowbar;&lowbar;pred` reports equivalence&period;

== Synopsis

Declared in `&lt;bslstp&lowbar;slist&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class &lowbar;BinaryPredicate&gt;
void
unique(&lowbar;BinaryPredicate &lowbar;&lowbar;pred);
----


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