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

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

#ifdef MAIN
#define revbit2_test main
#endif
#endif
int revbit2_test(int, char**)
{
  cout<<"Results of revbit2_test:"<<endl;
#ifndef ACORN_CFRONT
int array [] = { 1, 5, 2, 3 };
#else
static int array [] = { 1, 5, 2, 3 };
#endif

  list<int> v(array, array + 4);

#ifndef ACORN_CFRONT
  list<int>::reverse_iterator r;
#else
  reverse_bidirectional_iterator<list_iterator<int>, int, int&> r;
#endif

  for(r = v.rbegin(); r != v.rend(); r++)
    cout << *r << endl;
  return 0;
}
