Searched refs:lit (Results 1 – 8 of 8) sorted by relevance
/ndk/tests/device/test-stlport/unit/ |
D | list_test.cpp | 183 list<int>::iterator lit; in erase() local 184 lit = l.erase(l.begin()); in erase() 185 CPPUNIT_ASSERT( *lit == 1 ); in erase() 187 lit = l.erase(l.begin(), --l.end()); in erase() 188 CPPUNIT_ASSERT( *lit == 3 ); in erase() 202 list<int>::iterator lit(l.begin()); in resize() local 204 CPPUNIT_ASSERT( lit != l.end() ); in resize() 205 CPPUNIT_ASSERT( *(lit++) == 1 ); in resize() 207 CPPUNIT_ASSERT( lit == l.end() ); in resize() 210 lit = l.begin(); in resize() [all …]
|
D | unordered_test.cpp | 91 usettype::local_iterator lit, litEnd; in uset() local 93 lit = us.begin(us.bucket(i)); in uset() 96 usettype::size_type bucket_pos = us.bucket(*lit); in uset() 97 for (; lit != litEnd; ++lit) { in uset() 98 CPPUNIT_ASSERT( us.bucket(*lit) == bucket_pos ); in uset() 99 us_val.push_back(*lit); in uset() 135 usettype::local_iterator lit, litEnd; in umultiset() local 137 lit = us.begin(us.bucket(i)); in umultiset() 140 usettype::size_type bucket_pos = us.bucket(*lit); in umultiset() 141 for (; lit != litEnd; ++lit) { in umultiset() [all …]
|
D | alg_test.cpp | 140 list<int>::iterator lit = search_n(lint.begin(), lint.end(), 3, 3); in search_n_test() local 141 CPPUNIT_ASSERT( lit != lint.end() ); in search_n_test() 142 CPPUNIT_ASSERT( *(lit++) == 3 ); in search_n_test() 143 CPPUNIT_ASSERT( *(lit++) == 3 ); in search_n_test() 144 CPPUNIT_ASSERT( *lit == 3 ); in search_n_test() 173 list<int>::iterator lit = search_n(lint.begin(), lint.end(), 3, 2, greater<int>()); in search_n_test() local 174 CPPUNIT_ASSERT( lit != lint.end() ); in search_n_test() 175 CPPUNIT_ASSERT( *(lit++) > 2 ); in search_n_test() 176 CPPUNIT_ASSERT( *(lit++) > 2 ); in search_n_test() 177 CPPUNIT_ASSERT( *lit > 2 ); in search_n_test()
|
D | slist_test.cpp | 434 SlistInt::iterator lit(slint2.begin()); in allocator_with_state() local 435 advance(lit, 5); in allocator_with_state() 436 slint1.splice(slint1.begin(), slint2, slint2.begin(), lit); in allocator_with_state() 475 SlistInt::iterator lit(slint2.begin()); in allocator_with_state() local 476 advance(lit, 4); in allocator_with_state() 477 slint1.splice_after(slint1.before_begin(), slint2, slint2.before_begin(), lit); in allocator_with_state()
|
/ndk/tests/device/test-gnustl-full/unit/ |
D | list_test.cpp | 183 list<int>::iterator lit; in erase() local 184 lit = l.erase(l.begin()); in erase() 185 CPPUNIT_ASSERT( *lit == 1 ); in erase() 187 lit = l.erase(l.begin(), --l.end()); in erase() 188 CPPUNIT_ASSERT( *lit == 3 ); in erase() 202 list<int>::iterator lit(l.begin()); in resize() local 204 CPPUNIT_ASSERT( lit != l.end() ); in resize() 205 CPPUNIT_ASSERT( *(lit++) == 1 ); in resize() 207 CPPUNIT_ASSERT( lit == l.end() ); in resize() 210 lit = l.begin(); in resize() [all …]
|
D | unordered_test.cpp | 91 usettype::local_iterator lit, litEnd; in uset() local 93 lit = us.begin(us.bucket(i)); in uset() 96 usettype::size_type bucket_pos = us.bucket(*lit); in uset() 97 for (; lit != litEnd; ++lit) { in uset() 98 CPPUNIT_ASSERT( us.bucket(*lit) == bucket_pos ); in uset() 99 us_val.push_back(*lit); in uset() 135 usettype::local_iterator lit, litEnd; in umultiset() local 137 lit = us.begin(us.bucket(i)); in umultiset() 140 usettype::size_type bucket_pos = us.bucket(*lit); in umultiset() 141 for (; lit != litEnd; ++lit) { in umultiset() [all …]
|
D | alg_test.cpp | 140 list<int>::iterator lit = search_n(lint.begin(), lint.end(), 3, 3); in search_n_test() local 141 CPPUNIT_ASSERT( lit != lint.end() ); in search_n_test() 142 CPPUNIT_ASSERT( *(lit++) == 3 ); in search_n_test() 143 CPPUNIT_ASSERT( *(lit++) == 3 ); in search_n_test() 144 CPPUNIT_ASSERT( *lit == 3 ); in search_n_test() 173 list<int>::iterator lit = search_n(lint.begin(), lint.end(), 3, 2, greater<int>()); in search_n_test() local 174 CPPUNIT_ASSERT( lit != lint.end() ); in search_n_test() 175 CPPUNIT_ASSERT( *(lit++) > 2 ); in search_n_test() 176 CPPUNIT_ASSERT( *(lit++) > 2 ); in search_n_test() 177 CPPUNIT_ASSERT( *lit > 2 ); in search_n_test()
|
D | slist_test.cpp | 434 SlistInt::iterator lit(slint2.begin()); in allocator_with_state() local 435 advance(lit, 5); in allocator_with_state() 436 slint1.splice(slint1.begin(), slint2, slint2.begin(), lit); in allocator_with_state() 475 SlistInt::iterator lit(slint2.begin()); in allocator_with_state() local 476 advance(lit, 4); in allocator_with_state() 477 slint1.splice_after(slint1.before_begin(), slint2, slint2.before_begin(), lit); in allocator_with_state()
|