[#bsl-list-054-unique-0d] = xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::unique :relfileprefix: ../../ :mrdocs: `unique` overloads == Synopses Declared in `<bslstl_list.h>` Erase from this list all but the first element of every consecutive group of elements that have the same value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/list-054/unique-0b.adoc[unique](); ---- [.small]#xref:bsl/list-054/unique-0b.adoc[_» more..._]# Erase from this list all but the first element of every consecutive group of elements for which the specified `binaryPredicate` returns `true` for any two consecutive elements in the group. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class EQ_PREDICATE> void xref:bsl/list-054/unique-04.adoc[unique](EQ_PREDICATE binaryPredicate); ---- [.small]#xref:bsl/list-054/unique-04.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#