Remove Duplicates

Next, we'll study ways to make sure each element in our range is unique.

With the algorithms std::unique and std::unique_copy you have more opportunities to remove adjacent duplicates. This can be done with and without a binary predicate.

Removes adjacent duplicates:

Get hands-on with 1400+ tech skills courses.