/external/libcxx/test/std/containers/sequences/vector.bool/ |
D | erase_iter_iter.pass.cpp | 25 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 27 assert(distance(l1.cbegin(), l1.cend()) == 3); in main() 32 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin())); in main() 34 assert(distance(l1.cbegin(), l1.cend()) == 2); in main() 40 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin(), 2)); in main() 42 assert(distance(l1.cbegin(), l1.cend()) == 1); in main() 48 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin(), 3)); in main() 50 assert(distance(l1.cbegin(), l1.cend()) == 0); in main() 56 std::vector<bool, min_allocator<bool>>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 58 assert(distance(l1.cbegin(), l1.cend()) == 3); in main() [all …]
|
/external/libcxx/test/std/containers/sequences/list/list.modifiers/ |
D | erase_iter_iter.pass.cpp | 24 std::list<int>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 26 assert(distance(l1.cbegin(), l1.cend()) == 3); in main() 31 std::list<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin())); in main() 33 assert(distance(l1.cbegin(), l1.cend()) == 2); in main() 39 std::list<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin(), 2)); in main() 41 assert(distance(l1.cbegin(), l1.cend()) == 1); in main() 47 std::list<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin(), 3)); in main() 49 assert(distance(l1.cbegin(), l1.cend()) == 0); in main() 55 std::list<int, min_allocator<int>>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 57 assert(distance(l1.cbegin(), l1.cend()) == 3); in main() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/sequences/vector.bool/ |
D | erase_iter_iter.pass.cpp | 26 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in tests() 28 assert(std::distance(l1.cbegin(), l1.cend()) == 3); in tests() 33 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), std::next(l1.cbegin())); in tests() 35 assert(std::distance(l1.cbegin(), l1.cend()) == 2); in tests() 41 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), std::next(l1.cbegin(), 2)); in tests() 43 assert(std::distance(l1.cbegin(), l1.cend()) == 1); in tests() 49 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), std::next(l1.cbegin(), 3)); in tests() 51 assert(std::distance(l1.cbegin(), l1.cend()) == 0); in tests() 57 std::vector<bool, min_allocator<bool>>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in tests() 59 assert(std::distance(l1.cbegin(), l1.cend()) == 3); in tests() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/sequences/list/list.modifiers/ |
D | erase_iter_iter.pass.cpp | 24 std::list<int>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 26 assert(std::distance(l1.cbegin(), l1.cend()) == 3); in main() 31 std::list<int>::iterator i = l1.erase(l1.cbegin(), std::next(l1.cbegin())); in main() 33 assert(std::distance(l1.cbegin(), l1.cend()) == 2); in main() 39 std::list<int>::iterator i = l1.erase(l1.cbegin(), std::next(l1.cbegin(), 2)); in main() 41 assert(std::distance(l1.cbegin(), l1.cend()) == 1); in main() 47 std::list<int>::iterator i = l1.erase(l1.cbegin(), std::next(l1.cbegin(), 3)); in main() 49 assert(std::distance(l1.cbegin(), l1.cend()) == 0); in main() 55 std::list<int, min_allocator<int>>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 57 assert(std::distance(l1.cbegin(), l1.cend()) == 3); in main() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/strings/basic.string/string.modifiers/ |
D | debug.erase.iter_iter.pass.cpp | 29 l1.erase(l2.cbegin(), l1.cbegin() + 1), in main() 36 TEST_LIBCPP_ASSERT_FAILURE(l1.erase(l2.cbegin(), l1.cbegin() + 1), in main() 46 …TEST_LIBCPP_ASSERT_FAILURE(l1.erase(l1.cbegin(), l2.cbegin() + 1), "Attempted to compare incompara… in main() 52 …TEST_LIBCPP_ASSERT_FAILURE(l1.erase(l1.cbegin(), l2.cbegin() + 1), "Attempted to compare incompara… in main() 62 l1.erase(l2.cbegin(), l2.cbegin() + 1), in main() 70 l1.erase(l2.cbegin(), l2.cbegin() + 1), in main() 79 TEST_LIBCPP_ASSERT_FAILURE(l1.erase(l1.cbegin() + 1, l1.cbegin()), in main() 85 TEST_LIBCPP_ASSERT_FAILURE(l1.erase(l1.cbegin() + 1, l1.cbegin()), in main()
|
/external/libcxx/test/std/containers/sequences/vector/vector.modifiers/ |
D | erase_iter_iter.pass.cpp | 42 std::vector<int>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 44 assert(distance(l1.cbegin(), l1.cend()) == 3); in main() 51 std::vector<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin())); in main() 53 assert(distance(l1.cbegin(), l1.cend()) == 2); in main() 61 std::vector<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin(), 2)); in main() 63 assert(distance(l1.cbegin(), l1.cend()) == 1); in main() 71 std::vector<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin(), 3)); in main() 73 assert(distance(l1.cbegin(), l1.cend()) == 0); in main() 94 std::vector<int, min_allocator<int>>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 96 assert(distance(l1.cbegin(), l1.cend()) == 3); in main() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/sequences/vector/vector.modifiers/ |
D | erase_iter_iter.pass.cpp | 42 std::vector<int>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in tests() 44 assert(std::distance(l1.cbegin(), l1.cend()) == 3); in tests() 51 std::vector<int>::iterator i = l1.erase(l1.cbegin(), std::next(l1.cbegin())); in tests() 53 assert(std::distance(l1.cbegin(), l1.cend()) == 2); in tests() 61 std::vector<int>::iterator i = l1.erase(l1.cbegin(), std::next(l1.cbegin(), 2)); in tests() 63 assert(std::distance(l1.cbegin(), l1.cend()) == 1); in tests() 71 std::vector<int>::iterator i = l1.erase(l1.cbegin(), std::next(l1.cbegin(), 3)); in tests() 73 assert(std::distance(l1.cbegin(), l1.cend()) == 0); in tests() 94 std::vector<int, min_allocator<int>>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in tests() 96 assert(std::distance(l1.cbegin(), l1.cend()) == 3); in tests() [all …]
|
/external/libcxx/test/std/containers/associative/multiset/ |
D | erase_iter_iter.pass.cpp | 40 I i = m.erase(next(m.cbegin(), 5), next(m.cbegin(), 5)); in main() 52 i = m.erase(next(m.cbegin(), 3), next(m.cbegin(), 4)); in main() 63 i = m.erase(next(m.cbegin(), 2), next(m.cbegin(), 5)); in main() 71 i = m.erase(next(m.cbegin(), 0), next(m.cbegin(), 2)); in main() 77 i = m.erase(m.cbegin(), m.cend()); in main() 99 I i = m.erase(next(m.cbegin(), 5), next(m.cbegin(), 5)); in main() 111 i = m.erase(next(m.cbegin(), 3), next(m.cbegin(), 4)); in main() 122 i = m.erase(next(m.cbegin(), 2), next(m.cbegin(), 5)); in main() 130 i = m.erase(next(m.cbegin(), 0), next(m.cbegin(), 2)); in main() 136 i = m.erase(m.cbegin(), m.cend()); in main()
|
D | erase_iter.pass.cpp | 48 I i = m.erase(next(m.cbegin(), 3)); in main() 59 i = m.erase(next(m.cbegin(), 0)); in main() 69 i = m.erase(next(m.cbegin(), 5)); in main() 78 i = m.erase(next(m.cbegin(), 1)); in main() 86 i = m.erase(next(m.cbegin(), 2)); in main() 93 i = m.erase(next(m.cbegin(), 2)); in main() 99 i = m.erase(next(m.cbegin(), 0)); in main() 104 i = m.erase(m.cbegin()); in main() 127 I i = m.erase(next(m.cbegin(), 3)); in main() 138 i = m.erase(next(m.cbegin(), 0)); in main() [all …]
|
/external/libcxx/test/std/containers/associative/set/ |
D | erase_iter_iter.pass.cpp | 40 I i = m.erase(next(m.cbegin(), 5), next(m.cbegin(), 5)); in main() 52 i = m.erase(next(m.cbegin(), 3), next(m.cbegin(), 4)); in main() 63 i = m.erase(next(m.cbegin(), 2), next(m.cbegin(), 5)); in main() 71 i = m.erase(next(m.cbegin(), 0), next(m.cbegin(), 2)); in main() 77 i = m.erase(m.cbegin(), m.cend()); in main() 99 I i = m.erase(next(m.cbegin(), 5), next(m.cbegin(), 5)); in main() 111 i = m.erase(next(m.cbegin(), 3), next(m.cbegin(), 4)); in main() 122 i = m.erase(next(m.cbegin(), 2), next(m.cbegin(), 5)); in main() 130 i = m.erase(next(m.cbegin(), 0), next(m.cbegin(), 2)); in main() 136 i = m.erase(m.cbegin(), m.cend()); in main()
|
D | erase_iter.pass.cpp | 48 I i = m.erase(next(m.cbegin(), 3)); in main() 59 i = m.erase(next(m.cbegin(), 0)); in main() 69 i = m.erase(next(m.cbegin(), 5)); in main() 78 i = m.erase(next(m.cbegin(), 1)); in main() 86 i = m.erase(next(m.cbegin(), 2)); in main() 93 i = m.erase(next(m.cbegin(), 2)); in main() 99 i = m.erase(next(m.cbegin(), 0)); in main() 104 i = m.erase(m.cbegin()); in main() 127 I i = m.erase(next(m.cbegin(), 3)); in main() 138 i = m.erase(next(m.cbegin(), 0)); in main() [all …]
|
/external/cronet/base/containers/ |
D | checked_iterators_unittest.cc | 50 CheckedContiguousConstIterator<int> cbegin(arr, arr, arr + 1); in TEST() local 55 EXPECT_EQ(begin, cbegin); in TEST() 56 EXPECT_EQ(cbegin, begin); in TEST() 61 EXPECT_NE(cbegin, end); in TEST() 62 EXPECT_NE(end, cbegin); in TEST() 66 EXPECT_LT(cbegin, end); in TEST() 68 EXPECT_LE(begin, cbegin); in TEST() 69 EXPECT_LE(cbegin, begin); in TEST() 71 EXPECT_LE(cbegin, end); in TEST() 75 EXPECT_GT(end, cbegin); in TEST() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/ranges/range.access/ |
D | begin.pass.cpp | 22 using RangeCBeginT = decltype(std::ranges::cbegin); 77 ASSERT_SAME_TYPE(decltype(std::ranges::cbegin(x)), int* const*); in testReturnTypes() 82 ASSERT_SAME_TYPE(decltype(std::ranges::cbegin(x)), const int(*)[2]); in testReturnTypes() 90 ASSERT_SAME_TYPE(decltype(std::ranges::cbegin(x)), short*); in testReturnTypes() 98 assert(std::ranges::cbegin(a) == a); in testArray() 102 assert(std::ranges::cbegin(b) == b); in testArray() 106 assert(std::ranges::cbegin(c) == c); in testArray() 163 assert(std::ranges::cbegin(a) == &a.x); in testBeginMember() 173 assert(std::ranges::cbegin(c) == &globalBuff[0]); in testBeginMember() 175 assert(std::ranges::cbegin(std::move(c)) == &globalBuff[0]); in testBeginMember() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/associative/multiset/ |
D | erase_iter_iter.pass.cpp | 40 I i = m.erase(std::next(m.cbegin(), 5), std::next(m.cbegin(), 5)); in main() 52 i = m.erase(std::next(m.cbegin(), 3), std::next(m.cbegin(), 4)); in main() 63 i = m.erase(std::next(m.cbegin(), 2), std::next(m.cbegin(), 5)); in main() 71 i = m.erase(std::next(m.cbegin(), 0), std::next(m.cbegin(), 2)); in main() 77 i = m.erase(m.cbegin(), m.cend()); in main() 99 I i = m.erase(std::next(m.cbegin(), 5), std::next(m.cbegin(), 5)); in main() 111 i = m.erase(std::next(m.cbegin(), 3), std::next(m.cbegin(), 4)); in main() 122 i = m.erase(std::next(m.cbegin(), 2), std::next(m.cbegin(), 5)); in main() 130 i = m.erase(std::next(m.cbegin(), 0), std::next(m.cbegin(), 2)); in main() 136 i = m.erase(m.cbegin(), m.cend()); in main()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/associative/set/ |
D | erase_iter_iter.pass.cpp | 40 I i = m.erase(std::next(m.cbegin(), 5), std::next(m.cbegin(), 5)); in main() 52 i = m.erase(std::next(m.cbegin(), 3), std::next(m.cbegin(), 4)); in main() 63 i = m.erase(std::next(m.cbegin(), 2), std::next(m.cbegin(), 5)); in main() 71 i = m.erase(std::next(m.cbegin(), 0), std::next(m.cbegin(), 2)); in main() 77 i = m.erase(m.cbegin(), m.cend()); in main() 99 I i = m.erase(std::next(m.cbegin(), 5), std::next(m.cbegin(), 5)); in main() 111 i = m.erase(std::next(m.cbegin(), 3), std::next(m.cbegin(), 4)); in main() 122 i = m.erase(std::next(m.cbegin(), 2), std::next(m.cbegin(), 5)); in main() 130 i = m.erase(std::next(m.cbegin(), 0), std::next(m.cbegin(), 2)); in main() 136 i = m.erase(m.cbegin(), m.cend()); in main()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/containers/sequences/list/list.modifiers/ |
D | debug.erase.iter_iter.pass.cpp | 26 TEST_LIBCPP_ASSERT_FAILURE(l1.erase(l2.cbegin(), std::next(l1.cbegin())), in main() 35 TEST_LIBCPP_ASSERT_FAILURE(l1.erase(l1.cbegin(), std::next(l2.cbegin())), in main() 44 TEST_LIBCPP_ASSERT_FAILURE(l1.erase(l2.cbegin(), std::next(l2.cbegin())), in main() 52 TEST_LIBCPP_ASSERT_FAILURE(l1.erase(std::next(l1.cbegin()), l1.cbegin()), in main()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/containers/unord/unord.multiset/ |
D | debug.erase.iter_iter.pass.cpp | 27 l1.erase(l2.cbegin(), std::next(l1.cbegin())), in main() 37 l1.erase(l1.cbegin(), std::next(l2.cbegin())), in main() 47 l1.erase(l2.cbegin(), std::next(l2.cbegin())), in main() 55 TEST_LIBCPP_ASSERT_FAILURE(l1.erase(std::next(l1.cbegin()), l1.cbegin()), in main()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/containers/unord/unord.set/ |
D | debug.erase.iter_iter.pass.cpp | 27 l1.erase(l2.cbegin(), std::next(l1.cbegin())), in main() 37 l1.erase(l1.cbegin(), std::next(l2.cbegin())), in main() 47 l1.erase(l2.cbegin(), std::next(l2.cbegin())), in main() 55 TEST_LIBCPP_ASSERT_FAILURE(l1.erase(std::next(l1.cbegin()), l1.cbegin()), in main()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/containers/unord/unord.multimap/unord.multimap.modifiers/ |
D | debug.erase.iter_iter.pass.cpp | 28 l1.erase(l2.cbegin(), std::next(l1.cbegin())), in main() 39 l1.erase(l1.cbegin(), std::next(l2.cbegin())), in main() 50 l1.erase(l2.cbegin(), std::next(l2.cbegin())), in main() 59 TEST_LIBCPP_ASSERT_FAILURE(l1.erase(std::next(l1.cbegin()), l1.cbegin()), in main()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/containers/unord/unord.map/unord.map.modifiers/ |
D | debug.erase.iter_iter.pass.cpp | 28 l1.erase(l2.cbegin(), std::next(l1.cbegin())), in main() 39 l1.erase(l1.cbegin(), std::next(l2.cbegin())), in main() 50 l1.erase(l2.cbegin(), std::next(l2.cbegin())), in main() 59 TEST_LIBCPP_ASSERT_FAILURE(l1.erase(std::next(l1.cbegin()), l1.cbegin()), in main()
|
/external/libcxx/test/std/iterators/iterator.range/ |
D | begin-end.pass.cpp | 53 assert ( std::cbegin(c) == c.cbegin()); in test_const_container() 54 assert ( std::cbegin(c) != c.cend()); in test_const_container() 93 assert ( std::cbegin(c) == c.cbegin()); in test_container() 94 assert ( std::cbegin(c) != c.cend()); in test_container() 132 assert ( std::cbegin(array) == array ); in test_const_array() 133 assert (*std::cbegin(array) == array[0] ); in test_const_array() 134 assert ( std::cbegin(array) != std::cend(array)); in test_const_array() 158 constexpr const int *b = std::cbegin(arrA); in main() 169 static_assert ( c.cbegin() == std::cbegin(c), ""); in main() 180 static_assert ( std::cbegin(c) != std::cend(c), ""); in main() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/iterators/iterator.requirements/iterator.cust/iterator.cust.move/ |
D | iter_move.pass.cpp | 130 assert(std::all_of(v1.cbegin(), v1.cend(), move_counter_is(reset))); in test() 131 assert(std::all_of(v2.cbegin(), v2.cend(), move_counter_is(1))); in test() 135 assert(std::all_of(v1.cbegin(), v1.cend(), move_counter_is(reset))); in test() 136 assert(std::all_of(v3.cbegin(), v3.cend(), move_counter_is(1))); in test() 140 assert(std::all_of(v3.cbegin(), v3.cend(), move_counter_is(reset))); in test() 141 assert(std::all_of(v4.cbegin(), v4.cend(), move_counter_is(2))); in test() 144 assert(std::all_of(v2.cbegin(), v2.cend(), move_counter_is(reset))); in test() 145 assert(std::all_of(v1.cbegin() + half_size, v1.cend(), move_counter_is(2))); in test() 148 assert(std::all_of(v4.cbegin(), v4.cend(), move_counter_is(reset))); in test() 149 assert(std::all_of(v1.cbegin(), v1.cbegin() + half_size, move_counter_is(3))); in test() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/unord/unord.multiset/ |
D | local_iterators.pass.cpp | 162 I i = c.cbegin(b); in main() 167 i = c.cbegin(b); in main() 175 i = c.cbegin(b); in main() 183 i = c.cbegin(b); in main() 189 i = c.cbegin(b); in main() 195 i = c.cbegin(b); in main() 200 i = c.cbegin(b); in main() 220 I i = c.cbegin(b); in main() 225 i = c.cbegin(b); in main() 233 i = c.cbegin(b); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.multiset/ |
D | local_iterators.pass.cpp | 162 I i = c.cbegin(b); in main() 167 i = c.cbegin(b); in main() 175 i = c.cbegin(b); in main() 183 i = c.cbegin(b); in main() 189 i = c.cbegin(b); in main() 195 i = c.cbegin(b); in main() 200 i = c.cbegin(b); in main() 220 I i = c.cbegin(b); in main() 225 i = c.cbegin(b); in main() 233 i = c.cbegin(b); in main() [all …]
|
/external/libcxx/test/std/containers/sequences/array/ |
D | iterators.pass.cpp | 32 j = c.cbegin(); in main() 41 j = c.cbegin(); in main() 61 assert ( c.cbegin() == std::cbegin(c)); in main() 71 assert ( std::cbegin(c) != std::cend(c)); in main() 101 assert ( c.cbegin() == std::cbegin(c)); in main() 111 assert ( std::cbegin(c) == std::cend(c)); in main() 122 static_assert ( c.cbegin() == std::cbegin(c), ""); in main() 133 static_assert ( std::cbegin(c) != std::cend(c), ""); in main() 140 static_assert ( *std::cbegin(c) == 0, "" ); in main()
|