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

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

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

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