10#if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
17class SetTest :
public CPPUNIT_NS::TestCase
30#if !defined (STLPORT) || !defined (_STLP_USE_CONTAINERS_EXTENSION)
64 size_t count =
s.erase(42);
77 int array1 [] = { 1, 3, 6, 7 };
78 s.insert(array1, array1 + 4);
101 size_t nb =
s.erase(1);
125 int array1 [] = { 1, 3, 6, 7 };
126 set<int> s(array1, array1 +
sizeof(array1) /
sizeof(array1[0]));
143 pit =
s.equal_range(6);
150 pit =
s.equal_range(4);
166#ifdef _STLP_MEMBER_TEMPLATES
167 pcit =
s.equal_range(6);
176 scit =
crs.lower_bound(2);
180 scit =
crs.upper_bound(5);
184 pcit =
crs.equal_range(6);
206#if !defined (STLPORT) || defined (_STLP_USE_NAMESPACES)
219#if !defined (STLPORT) || defined (_STLP_USE_NAMESPACES)
233 for (; sit != sitEnd; ++sit, ++
i) {
243 int const& int_ref = *it++;
250 int const& int_cref = *cit++;
289 SetInt sint1(intLess, stack1);
290 for (
i = 0;
i < 5; ++
i)
294 SetInt sint2(intLess, stack2);
314 SetInt sint1(intLess, stack1);
317 SetInt sint2(intLess, stack2);
318 for (
i = 0;
i < 10; ++
i)
337 SetInt sint1(intLess, stack1);
338 for (
i = 0;
i < 10; ++
i)
342 SetInt sint2(intLess, stack2);
374 {
return lhs.
m_data < rhs; }
377 {
return lhs < rhs.
m_data; }
383 {
return (*lhs).m_data < (*rhs).m_data; }
386 {
return (*lhs).m_data < rhs; }
389 {
return lhs < (*rhs).m_data; }
394#if defined (STLPORT) && defined (_STLP_USE_CONTAINERS_EXTENSION)
399 keySet.insert(
Key(2));
400 keySet.insert(
Key(3));
401 keySet.insert(
Key(4));
412 KeySet
const& ckeySet = keySet;
422 Key key1(1), key2(2), key3(3), key4(4);
423 keySet.insert(&
key1);
424 keySet.insert(&key2);
425 keySet.insert(&key3);
426 keySet.insert(&key4);
436 KeySet
const& ckeySet = keySet;
446 keySet.insert(
Key(2));
447 keySet.insert(
Key(3));
448 keySet.insert(
Key(4));
459 KeySet
const& ckeySet = keySet;
469 Key key1(1), key2(2), key3(3), key4(4);
470 keySet.insert(&
key1);
471 keySet.insert(&key2);
472 keySet.insert(&key3);
473 keySet.insert(&key4);
483 KeySet
const& ckeySet = keySet;
492#if !defined (STLPORT) || \
493 !defined (_STLP_USE_PTR_SPECIALIZATIONS) || defined (_STLP_CLASS_PARTIAL_SPECIALIZATION)
494# if !defined (__DMC__)
pair< _T1, _T2 > _STLP_CALL make_pair(_T1 __x, _T2 __y)
set< IncompleteClass > instances
set< IncompleteClass >::iterator it
multiset< IncompleteClass >::iterator mit
multiset< IncompleteClass > minstances
void implementation_check()
CPPUNIT_TEST(reverse_iterator_test)
CPPUNIT_TEST(allocator_with_state)
CPPUNIT_TEST(implementation_check)
void allocator_with_state()
CPPUNIT_TEST(specialized_less)
CPPUNIT_TEST(template_methods)
CPPUNIT_TEST_SUITE(SetTest)
void reverse_iterator_test()
iterator insert(const value_type &__x)
_Rep_type::iterator iterator
_Rep_type::reverse_iterator reverse_iterator
_STLP_TEMPLATE_FOR_CONT_EXT iterator upper_bound(const _KT &__x)
pair< iterator, bool > insert(const value_type &__x)
_Rep_type::const_reverse_iterator const_reverse_iterator
reverse_iterator rbegin()
_STLP_TEMPLATE_FOR_CONT_EXT iterator lower_bound(const _KT &__x)
_Rep_type::const_iterator const_iterator
_Rep_type::iterator iterator
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)
#define CPPUNIT_ASSERT(X)
#define _STLP_TEMPLATE_NULL
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLsizei GLsizei GLfloat distance
GLuint64EXT GLuint GLuint GLenum GLenum GLuint GLuint GLenum GLuint GLuint key1
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()(Key const volatile *lhs, Key const volatile *rhs) const
bool operator()(Key lhs, Key rhs) const