STL generic algorithms -- Removal Algorithms Remove Algorithm examples Original list: 1 2 4 3 1 4 2 After removing 2's: 1 4 3 1 4 List after removal, before erase: 1 4 3 1 4 4 2 List after erase: 1 4 3 1 4 List after removing even values: 1 3 1 Origianal List: 1 3 3 2 2 4 Set after unique_copy: 1 2 3 4 List after calling unique: 1 3 2 4 2 4 List after erase: 1 3 2 4 End of removal algorithms sample program