Erase all but the first of each run of consecutive elements for which pred is true, and return how many were erased. If pred throws, the elements already found are erased and the exception propagates.
Declared in <cptr/list.hpp>
template<class Pred = std::equal_to<>>
size_type
unique(Pred pred = Pred());