unique « STL Algorithms Modifying sequence operations « C++






1.Use std::unique to eliminate duplicate values
2.Use unique to remove consecutive duplicates
3.Combine unique and erase to remove elements if there was a previous greater element