#ifndef SINGLE
//  An adapted ObjectSpace example for use with SGI STL

#include <iostream.h>
#include <algo.h>

#ifdef MAIN
#define equalto_test main
#endif
#endif
int equalto_test(int, char**)
{
  cout<<"Results of equalto_test:"<<endl;
#ifndef ACORN_CFRONT
int input1 [4] = { 1, 7, 2, 2 };
int input2 [4] = { 1, 6, 2, 3 };
#else
static int input1 [4] = { 1, 7, 2, 2 };
static int input2 [4] = { 1, 6, 2, 3 };
#endif

  int output [4];
  transform(input1, input1 + 4, input2, output, equal_to<int>());
  for(int i = 0; i < 4; i++)
    cout << output[i] << endl;
  return 0;
}
