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

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

#ifdef MAIN
#define bnegate1_test main
#endif
#endif
int bnegate1_test(int, char**)
{
  cout<<"Results of bnegate1_test:"<<endl;
#ifndef ACORN_CFRONT
int array [4] = { 4, 9, 7, 1 };
#else
static int array [4] = { 4, 9, 7, 1 };
#endif


#ifndef ACORN_CFRONT
  sort(array, array + 4, binary_negate<greater<int> >(greater<int>()));
#else
  sort(array, array + 4, binary_negate<greater<int>, int, int>(greater<int>()));
#endif

  for(int i = 0; i < 4; i++)
    cout << array[i] << endl;
  return 0;
}
