4#if defined (STLPORT) && !defined (_STLP_NO_EXTENSIONS)
11# include <unordered_set>
16#if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
19using namespace std::tr1;
31 vector<int>
const ref_vec(10, 0);
32 vector<vector<int> > v_v_ints(1, ref_vec);
34#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
35 int *pint = &(v_v_ints.front().front());
38 size_t cur_capacity = v_v_ints.capacity();
39 while (v_v_ints.capacity() <= cur_capacity) {
40 v_v_ints.push_back(ref_vec);
44#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
50 while (v_v_ints.size() < 3) {
51 v_v_ints.push_back(ref_vec);
55#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
56 pint = &v_v_ints[2].front();
58 v_v_ints.erase(v_v_ints.begin() + 1);
59#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
64 string const ref_str(
"ref string, big enough to be a dynamic one");
65 vector<string> vec_strs(1, ref_str);
67#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
68 char const* pstr = vec_strs.front().c_str();
70 cur_capacity = vec_strs.capacity();
71 while (vec_strs.capacity() <= cur_capacity) {
72 vec_strs.push_back(ref_str);
76#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
82 while (vec_strs.size() < 3) {
83 vec_strs.push_back(ref_str);
87#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
88 pstr = vec_strs[2].c_str();
90 vec_strs.erase(vec_strs.begin() + 1);
91#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
96 vector<int> elem1(10, 0), elem2(10, 0);
97#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
98 int *p1 = &elem1.front();
99 int *p2 = &elem2.front();
102#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
103 CPPUNIT_ASSERT(((p1 == &elem2.front()) && (p2 == &elem1.front())));
107 vector<bool> bit_vec(5,
true);
108 bit_vec.insert(bit_vec.end(), 5,
false);
109 vector<vector<bool> > v_v_bits(1, bit_vec);
116#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
117# if defined (_STLP_DEBUG)
118 unsigned int *punit = v_v_bits.front().begin()._M_iterator._M_p;
120 unsigned int *punit = v_v_bits.front().begin()._M_p;
124 cur_capacity = v_v_bits.capacity();
125 while (v_v_bits.capacity() <= cur_capacity) {
126 v_v_bits.push_back(bit_vec);
129#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
131# if defined (_STLP_DEBUG)
132 CPPUNIT_ASSERT( punit == v_v_bits.front().begin()._M_iterator._M_p );
177# if !defined (STLPORT) || !defined (_STLP_DEBUG) || !defined (_STLP_NO_MEMBER_TEMPLATES)
180 vect_deque.
assign(3, vector<int>(10));
188 while (nb_insert--) {
189 vector<vector<int> > vect_vect(2, vector<int>(10));
190 vect_deque.
insert(vect_deque.
begin() +
pos, vect_vect.begin(), vect_vect.end());
196# if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
197 for (
int i = 0;
i < 5; ++
i) {
207# if !defined (STLPORT) || !defined (_STLP_DEBUG) || !defined (_STLP_NO_MEMBER_TEMPLATES)
210 vect_deque.
assign(3, vector<int>(10));
218 while (nb_insert--) {
219 vector<vector<int> > vect_vect(2, vector<int>(10));
220 vect_deque.
insert(vect_deque.
begin() +
pos, vect_vect.begin(), vect_vect.end());
226# if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
227 for (
int i = 0;
i < 5; ++
i) {
238 vect_deque.
assign(20, vector<int>(10));
241 for (; vdit != vditEnd; ++vdit) {
242 bufs.push_back(&vdit->front());
249 for (; it != vect_deque.
end() && nb_incr <= 6; ++nb_incr, ++it) {}
259#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
260 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
269 for (; it != vect_deque.
end() && nb_incr <= 6; ++nb_incr, ++it) {}
275 vect_deque.
erase(vect_deque.
end() - 2);
279#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
280 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
289 for (; it != vect_deque.
end() && nb_incr < 6; ++nb_incr, ++it) {}
299#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
300 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
309 for (; it != vect_deque.
end() && nb_incr <= 6; ++nb_incr, ++it) {}
315 vect_deque.
erase(vect_deque.
end() - 5, vect_deque.
end() - 3);
319#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
320 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
330 vect_deque.
assign(20, vector<int>(10));
333 for (; vdit != vditEnd; ++vdit) {
334 bufs.push_back(&vdit->front());
339 vect_deque.
insert(vect_deque.
begin() + 2, 2, vector<int>(10));
344#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
345 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
353 vect_deque.
insert(vect_deque.
end() - 2, 2, vector<int>(10));
357#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
359 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
371#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
374 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
383 ret = vect_deque.
insert(vect_deque.
end() - 2, vector<int>(10));
386#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
389 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
402 vector<vector<int> > vect_vector;
404 vect_vector.assign(3, vector<int>(10));
411 while (nb_insert--) {
412 vector<vector<int> > vect_vect(2, vector<int>(10));
413 vect_vector.insert(vect_vector.begin() +
pos, vect_vect.begin(), vect_vect.end());
415 bufs.insert(
bufs.begin() +
pos + 1, &vect_vector[
pos + 1].front());
419#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
420 for (
int i = 0;
i < 5; ++
i) {
429 vector<vector<int> > vect_vector;
431 vect_vector.assign(3, vector<int>(10));
439 while (nb_insert--) {
440 vector<vector<int> > vect_vect(2, vector<int>(10));
441 vect_vector.insert(vect_vector.begin() +
pos, vect_vect.begin(), vect_vect.end());
443 bufs.insert(
bufs.begin() +
pos + 1, &vect_vector[
pos + 1].front());
447#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
448 for (
int i = 0;
i < 5; ++
i) {
457 vector<vector<int> > vect_vector;
458 vect_vector.assign(20, vector<int>(10));
459 vector<vector<int> >
::iterator vdit(vect_vector.begin()), vditEnd(vect_vector.end());
461 for (; vdit != vditEnd; ++vdit) {
462 bufs.push_back(&vdit->front());
467 vector<vector<int> >
::iterator it = vect_vector.end() - 5;
469 for (; it != vect_vector.end() && nb_incr <= 6; ++nb_incr, ++it) {}
475 vect_vector.erase(vect_vector.begin() + 2);
478#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
479 vector<vector<int> >
::iterator dit(vect_vector.begin()), ditEnd(vect_vector.end());
480 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
487 vector<vector<int> >
::iterator it = vect_vector.end() - 5;
489 for (; it != vect_vector.end() && nb_incr <= 6; ++nb_incr, ++it) {}
495 vect_vector.erase(vect_vector.end() - 2);
498#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
499 vector<vector<int> >
::iterator dit(vect_vector.begin()), ditEnd(vect_vector.end());
500 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
507 vector<vector<int> >
::iterator it = vect_vector.end() - 5;
509 for (; it != vect_vector.end() && nb_incr < 6; ++nb_incr, ++it) {}
515 vect_vector.erase(vect_vector.begin() + 3, vect_vector.begin() + 5);
518#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
519 vector<vector<int> >
::iterator dit(vect_vector.begin()), ditEnd(vect_vector.end());
520 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
527 vector<vector<int> >
::iterator it = vect_vector.end() - 5;
529 for (; it != vect_vector.end() && nb_incr <= 6; ++nb_incr, ++it) {}
535 vect_vector.erase(vect_vector.end() - 5, vect_vector.end() - 3);
538#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
539 vector<vector<int> >
::iterator dit(vect_vector.begin()), ditEnd(vect_vector.end());
540 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
549 vector<vector<int> > vect_vector;
550 vect_vector.assign(20, vector<int>(10));
551 vector<vector<int> >
::iterator vdit(vect_vector.begin()), vditEnd(vect_vector.end());
553 for (; vdit != vditEnd; ++vdit) {
554 bufs.push_back(&vdit->front());
559 vect_vector.insert(vect_vector.begin() + 2, 2, vector<int>(10));
560 bufs.insert(
bufs.begin() + 2, &vect_vector[2].front());
561 bufs.insert(
bufs.begin() + 3, &vect_vector[3].front());
563#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
564 vector<vector<int> >
::iterator dit(vect_vector.begin()), ditEnd(vect_vector.end());
565 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
573 vect_vector.insert(vect_vector.end() - 2, 2, vector<int>(10));
574 bufs.insert(
bufs.end() - 2, &vect_vector[20].front());
575 bufs.insert(
bufs.end() - 2, &vect_vector[21].front());
577#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
578 vector<vector<int> >
::iterator dit(vect_vector.begin()), ditEnd(vect_vector.end());
579 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
587#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
590 vect_vector.insert(vect_vector.begin() + 2, vector<int>(10));
591 bufs.insert(
bufs.begin() + 2, &vect_vector[2].front());
593#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
595 vector<vector<int> >
::iterator dit(vect_vector.begin()), ditEnd(vect_vector.end());
596 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
604#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
607 vect_vector.insert(vect_vector.end() - 2, vector<int>(10));
608 bufs.insert(
bufs.end() - 2, &vect_vector[23].front());
610#if defined (STLPORT) && !defined (_STLP_NO_MOVE_SEMANTIC)
612 vector<vector<int> >
::iterator dit(vect_vector.begin()), ditEnd(vect_vector.end());
613 for (
size_t i = 0; dit != ditEnd; ++dit, ++
i) {
621 const string long_str(
"long enough string to force dynamic allocation");
624 vector<vector<string> > vect(10, vector<string>(10, long_str));
628 vector<vector<string> >
::iterator it(vect.begin());
630 strs.push_back(it->front());
631 it->erase(it->begin());
641 for (; it != itEnd; ++it) {
648# if !defined (__DMC__)
649 vector<deque<string> > vect(10,
deque<string>(10, long_str));
652 vector<deque<string> > vect(10, deq_str);
657 vector<deque<string> >
::iterator it(vect.begin());
659 strs.push_back(it->front());
670 for (; it != itEnd; ++it) {
677 vector<list<string> > vect(10, list<string>(10, long_str));
681 vector<list<string> >
::iterator it(vect.begin());
683 strs.push_back(it->front());
694 for (; it != itEnd; ++it) {
699#if defined (STLPORT) && !defined (_STLP_NO_EXTENSIONS)
702 vector<slist<string> > vect(10,
slist<string>(10, long_str));
706 vector<slist<string> >
::iterator it(vect.begin());
708 strs.push_back(it->front());
719 for (; it != itEnd; ++it) {
728 for (
size_t i = 0;
i < 10; ++
i) {
729 ref.insert(long_str);
731 vector<multiset<string> > vect(10,
ref);
735 vector<multiset<string> >
::iterator it(vect.begin());
737 strs.push_back(*it->begin());
738 it->erase(it->begin());
748 for (; it != itEnd; ++it) {
754# if !defined (__DMC__)
758 for (
size_t i = 0;
i < 10; ++
i) {
759 ref.insert(long_str);
761 vector<unordered_multiset<string> > vect(10,
ref);
765 vector<unordered_multiset<string> >
::iterator it(vect.begin());
767 strs.push_back(*it->begin());
768 it->erase(it->begin());
778 for (; it != itEnd; ++it) {
786#if defined (__BORLANDC__)
806 Standalone standalone;
807 throw "some exception";
_STLP_MOVE_TO_STD_NAMESPACE void _STLP_CALL advance(_InputIterator &__i, _Distance __n)
void move_construct_test()
void nb_destructor_calls()
iterator erase(iterator __pos)
iterator insert(iterator __pos, const value_type &__x=_STLP_DEFAULT_CONSTRUCTED(_Tp))
void assign(size_type __n, const _Tp &__val)
#define CPPUNIT_TEST_SUITE_REGISTRATION(X)
#define CPPUNIT_ASSERT(X)
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
static struct address_cache * front
static size_t nb_dft_construct_call
static size_t nb_destruct_call