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

`unique` overloads

== Synopses

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

Erase consecutive duplicate elements using `operator&equals;&equals;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/slist/unique-0b.adoc[unique]();
----

[.small]#xref:bsl/slist/unique-0b.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class &lowbar;BinaryPredicate&gt;
void
xref:bsl/slist/unique-0f.adoc[unique](&lowbar;BinaryPredicate &lowbar;&lowbar;pred);
----

[.small]#xref:bsl/slist/unique-0f.adoc[_» more&period;&period;&period;_]#


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