[#bsl-list-054-unique-04] = xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::unique :relfileprefix: ../../ :mrdocs: 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. == Synopsis Declared in `<bslstl_list.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class EQ_PREDICATE> void unique(EQ_PREDICATE binaryPredicate); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#