// STLport regression testsuite component. // To compile as a separate example, please #define MAIN. #include #include #include #include #include #ifdef MAIN #define eqlrnge2_test main #endif #if !defined (STLPORT) || defined(__STL_USE_NAMESPACES) using namespace std; #endif int eqlrnge2_test(int, char**) { cout<<"Results of eqlrnge2_test:"< iter(cout); cout << "Within the collection:\n\t"; copy(chars, chars + count, iter); pair range = equal_range((char*)chars, (char*)chars + count, 'q', less()); cout << "\nq can be inserted from before index " <<(range.first - chars) << " to before index " <<(range.second - chars) << endl; return 0; }