Click here to Skip to main content
15,893,923 members
Articles / Programming Languages / C#

How to Delete Duplicate entries from STL containers?

17 Apr 2009CPOL 691  
If you want to remove duplicate items, you can go for stl::set. But what to do if you want to delete duplicate data from other containers?Picture Courtesy - SquidooYou can use std::unique() algorithm to remove adjacent duplicate items. So at first, sort your data, then call std::unique(). Now
We're sorry, but the article you are trying to view was deleted at 17 Apr 2009.

Please go to the C# Table of Contents to view the list of available articles in this section.