unique « STL Algorithms Modifying sequence operations « C++ Tutorial






24.25.unique
24.25.1.Use std::unique to eliminate duplicate values
24.25.2.Use unique to remove consecutive duplicates
24.25.3.Combine unique and erase to remove elements if there was a previous greater element