Remove Duplicates
Next, we'll study ways to make sure each element in our range is unique.
We'll cover the following...
With the algorithms std::unique
and std::unique_copy
, We have opportunities to remove adjacent duplicates. This can be done with and without a binary predicate.