This program illustrates the use of the STL unique_copy() algorithm (default version) to remove adjacent duplicate copies of integer values from a vector of integers, and simultaneously copy the remaining values to another vector. Press Enter to continue ... Here are the values in the source vector: 1 2 2 3 3 6 5 2 6 9 12 2 2 2 9 10 11 12 Press Enter to continue ... Here are the values in the destination vector: 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 Press Enter to continue ... Now we remove all adjacent duplicate copies of the values 2 and 3 from the source vector and copy the remaining values to the destination vector, starting at the third value in that destination vector. Press Enter to continue ... Here are the (unchanged) source vector values: 1 2 2 3 3 6 5 2 6 9 12 2 2 2 9 10 11 12 Press Enter to continue ... And here are the destination vector values: 21 22 1 2 3 6 5 2 6 9 12 2 9 10 11 12 37 38 Press Enter to continue ... The iterator returned by the call to unique_copy() is pointing to the value 37. Press Enter to continue ...