Erase consecutive elements that compare equal under binaryPredicate.
Declared in <bslstl_list.h>
template<class EQ_PREDICATE>
void
unique(EQ_PREDICATE binaryPredicate);
Keep the first element of every consecutive group for which binaryPredicate returns true for any two consecutive elements in the group.
| Name | Description |
|---|---|
| binaryPredicate | predicate comparing consecutive elements |