[#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 consecutive duplicate elements, keeping the first of each group. [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 consecutive elements that compare equal under `binaryPredicate`. [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..._]# == Parameters [cols="1,4"] |=== | Name| Description | *binaryPredicate* | predicate comparing consecutive elements |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#