6#if defined (STLPORT) && defined (_STLP_DEBUG) && defined (_STLP_DEBUG_MODE_THROWS)
7# define _STLP_DO_CHECK_BAD_PREDICATE
14#if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
30#if defined (_STLP_DO_CHECK_BAD_PREDICATE)
52 return strcmp(a_, b_) < 0 ? 1 : 0;
63 int numbers[6] = { 5, 2, 4, 3, 1, 6 };
65 partial_sort((
int*)numbers, (
int*)numbers + 3, (
int*)numbers + 6);
80 int numbers[10] ={ 8, 8, 5, 3, 7, 6, 5, 3, 2, 4 };
82 vector <int>
v1(numbers, numbers+10);
99 char const*
names[] = {
"aa",
"ff",
"dd",
"ee",
"cc",
"bb" };
101 const unsigned nameSize =
sizeof(
names) /
sizeof(
names[0]);
102 vector <char const*>
v1(nameSize);
103 for(
size_t i = 0;
i <
v1.size();
i++)
125 int numbers[6] = { 5, 2, 4, 3, 1, 6 };
137 int numbers[10] ={ 3, 0, 4, 3, 2, 8, 2, 7, 7, 5 };
142 vector <int>
v1(numbers, numbers+10);
155 char const*
names[] = {
"aa",
"ff",
"dd",
"ee",
"cc",
"bb" };
157 const unsigned nameSize =
sizeof(
names) /
sizeof(
names[0]);
158 vector <char const*>
v1(nameSize);
159 for(
size_t i = 0;
i <
v1.size();
i++)
161 vector <char const*>
result(3);
173#if defined (_STLP_DO_CHECK_BAD_PREDICATE)
176 int numbers[] = { 0, 0, 1, 0, 0, 1, 0, 0 };
177 const size_t s =
sizeof(numbers) /
sizeof(numbers[0]);
202 int numbers[6] = { 1, 2, 3, 4, 5, 6 };
220 vector <int>
v2(
v1.size());
240 vector <int>
v2(
v1.size());
_STLP_MOVE_TO_STD_NAMESPACE void partial_sort(_RandomAccessIter __first, _RandomAccessIter __middle, _RandomAccessIter __last)
_STLP_MOVE_TO_STD_NAMESPACE _RandomAccessIter partial_sort_copy(_InputIter __first, _InputIter __last, _RandomAccessIter __result_first, _RandomAccessIter __result_last)
_STLP_MOVE_TO_STD_NAMESPACE _OutputIterator partial_sum(_InputIterator __first, _InputIterator __last, _OutputIterator __result)
int strcmp(const char *String1, const char *String2)
CPPUNIT_TEST_SUITE(PartialTest)
static bool str_compare(const char *a_, const char *b_)
void bad_predicate_detected()
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)
#define CPPUNIT_ASSERT(X)
GLfloat GLfloat GLfloat v2
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
void __iota(_It __first, _It __last, _Tp __val)