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

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

#ifdef MAIN
#define binsert2_test main
#endif
#endif
int binsert2_test(int, char**)
{
  cout<<"Results of binsert2_test:"<<endl;
#ifndef ACORN_CFRONT
char* array [] = { "laurie", "jennifer", "leisa" };
#else
static char* array [] = { "laurie", "jennifer", "leisa" };
#endif

  vector<char*> names;
#ifndef ACORN_CFRONT
  copy(array, array + 3, back_inserter(names));
#else
  copy(array, array + 3, back_inserter(names, (char**)0));
#endif

#ifndef ACORN_CFRONT
  vector<char*>::iterator i;
#else
  char** i;
#endif

  for(i = names.begin(); i != names.end(); i++)
    cout << *i << endl;
  return 0;
}
