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

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

#ifdef MAIN
#define revbit1_test main
#endif
#endif
int revbit1_test(int, char**)
{
  cout<<"Results of revbit1_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
  reverse_bidirectional_iterator<list<int>::iterator, int,
    list<int>::reference, list<int>::difference_type> r(v.end());
#else
  reverse_bidirectional_iterator<list_iterator<int>, int, int&> r(v.end());
#endif

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