bsl::list::unique

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>

template<class EQ_PREDICATE>
void
unique(EQ_PREDICATE binaryPredicate);