5#if defined (STLPORT) && defined (_STLP_DEBUG) && defined (_STLP_DEBUG_MODE_THROWS)
6# define _STLP_DO_CHECK_BAD_PREDICATE
12#if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
28#if defined (_STLP_DO_CHECK_BAD_PREDICATE)
44 return strcmp(a_, b_) < 0 ? 1 : 0;
56 int numbers[6] = { 1, 50, -10, 11, 42, 19 };
66 char const* letters[6] = {
"bb",
"aa",
"ll",
"dd",
"qq",
"cc" };
115 int numbers[6] = { 1, 50, -10, 11, 42, 19 };
117 sort(numbers, numbers + 6);
129 int numbers[] = { 1, 50, -10, 11, 42, 19 };
131 int count =
sizeof(numbers) /
sizeof(numbers[0]);
145 vector<bool> boolVector;
147 boolVector.push_back(
true );
148 boolVector.push_back(
false );
150 sort( boolVector.begin(), boolVector.end() );
183 bool copy_constructor_called =
false;
190 copy_constructor_called =
false;
195#if defined (_STLP_DO_CHECK_BAD_PREDICATE)
198 int numbers[] = { 0, 0, 1, 0, 0, 1, 0, 0 };
_STLP_MOVE_TO_STD_NAMESPACE void sort(_RandomAccessIter __first, _RandomAccessIter __last)
_STLP_MOVE_TO_STD_NAMESPACE void stable_sort(_RandomAccessIter __first, _RandomAccessIter __last)
int strcmp(const char *String1, const char *String2)
void bad_predicate_detected()
CPPUNIT_TEST_SUITE(SortTest)
static bool string_less(const char *a_, const char *b_)
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)
#define CPPUNIT_ASSERT(X)
static HINSTANCE instance
GLuint GLuint GLsizei count
GLboolean GLboolean GLboolean b
bool operator<(const Data &other) const
Data(int index, int value)
bool operator==(const Data &other) const
SortTestAux(SortTestAux const &other)
SortTestAux & operator=(SortTestAux const &)