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