Section 23.7 Check Point Questions1 question 

23.7.1
What are the remove, remove_if, remove_copy, and remove_copy_if algorithms for? Show the output of the following code:
int main()
{
  int values[] = {1, 2, 3, 4, 5, 1, 1};
  remove(values, values + 7, 2);
  
  ostream_iterator<int> output(cout, " ");
  cout << "values: ";
  copy(values, values + 7, output);

  return 0;
}