Click here to Skip to main content
Click here to Skip to main content

How to Delete Duplicate entries from STL containers?

, 17 Apr 2009 CPOL
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 STL Table of Contents to view the list of available articles in this section.
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141220.1 | Last Updated 17 Apr 2009
Article Copyright 2009 by Jijo.Raj
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid