6#if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
29 static bool odd(
int a_);
30 static bool div_3(
int a_);
40 int numbers[10] = { 0, 1, 4, 9, 16, 25, 36, 49, 64 };
42 int *
location =
find((
int*)numbers, (
int*)numbers + 10, 25);
46 int *out_range =
find((
int*)numbers, (
int*)numbers + 10, 128);
66 int years[] = { 1942, 1952, 1962, 1972, 1982, 1992 };
68 const unsigned yearCount =
sizeof(years) /
sizeof(years[0]);
69 int*
location =
find((
int*)years, (
int*)years + yearCount, 1972);
77 int numbers[6] = { 2, 4, 8, 15, 32, 64 };
82 int numbers_even[6] = { 2, 4, 8, 16, 32, 64 };
84 int *out_range =
find_if((
int*)numbers_even, (
int*)numbers_even + 6,
odd);
90 Key keys[10] = { {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0} };
91 Key const*
k =
find(keys + 0, keys + 10, 5);
98 typedef vector <int> IntVec;
101 v[
i] =(
i + 1) *(
i + 1);
102 IntVec::iterator iter;
109 return (a_ % 2) != 0;
114 return a_ % 3 ? 0 : 1;
119 char str[] =
"abcdefghij";
120 char *pstr = (
char*)
str;
121 const char* cpstr = (
const char*)
str;
122 size_t str_size =
sizeof(
str) /
sizeof(
char);
124 char *
d =
find(pstr, pstr + str_size,
'd');
127 const char *
e =
find(cpstr, cpstr + str_size,
'e');
130 char *
last =
find(pstr, pstr + str_size,
'x');
133 const char *clast =
find(cpstr, cpstr + str_size,
'x');
_STLP_MOVE_TO_STD_NAMESPACE _InputIter find_if(_InputIter __first, _InputIter __last, _Predicate __pred)
CPPUNIT_TEST_SUITE(FindTest)
static bool div_3(int a_)
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)
#define CPPUNIT_ASSERT(X)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
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
bool operator==(int d) const