Home
last modified time | relevance | path

Searched refs:cbegin (Results 1 – 25 of 273) sorted by relevance

1234567891011

/external/libcxx/test/std/containers/sequences/list/list.modifiers/
Derase_iter_iter.pass.cpp24 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/libcxx/test/std/containers/sequences/vector.bool/
Derase_iter_iter.pass.cpp25 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/vector/vector.modifiers/
Derase_iter_iter.pass.cpp27 std::vector<int>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main()
29 assert(distance(l1.cbegin(), l1.cend()) == 3); in main()
36 std::vector<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin())); in main()
38 assert(distance(l1.cbegin(), l1.cend()) == 2); in main()
46 std::vector<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin(), 2)); in main()
48 assert(distance(l1.cbegin(), l1.cend()) == 1); in main()
56 std::vector<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin(), 3)); in main()
58 assert(distance(l1.cbegin(), l1.cend()) == 0); in main()
79 std::vector<int, min_allocator<int>>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main()
81 assert(distance(l1.cbegin(), l1.cend()) == 3); in main()
[all …]
/external/libcxx/test/std/containers/associative/set/
Derase_iter_iter.pass.cpp40 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()
Derase_iter.pass.cpp48 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/multiset/
Derase_iter_iter.pass.cpp40 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()
Derase_iter.pass.cpp48 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/iterators/iterator.range/
Dbegin-end.pass.cpp53 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/libcxx/test/std/containers/unord/unord.multiset/
Dlocal_iterators.pass.cpp162 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 …]
Dlocal_iterators.fail.cpp163 I i = c.cbegin(b); in main()
168 i = c.cbegin(b); in main()
176 i = c.cbegin(b); in main()
184 i = c.cbegin(b); in main()
190 i = c.cbegin(b); in main()
196 i = c.cbegin(b); in main()
201 i = c.cbegin(b); in main()
221 I i = c.cbegin(b); in main()
226 i = c.cbegin(b); in main()
234 i = c.cbegin(b); in main()
[all …]
/external/libcxx/test/std/containers/sequences/array/
Diterators.pass.cpp32 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()
/external/libcxx/test/std/containers/associative/map/map.modifiers/
Derase_iter_iter.pass.cpp40 I i = m.erase(m.cbegin(), m.cbegin()); in main()
60 i = m.erase(m.cbegin(), next(m.cbegin(), 2)); in main()
76 i = m.erase(next(m.cbegin(), 2), next(m.cbegin(), 6)); in main()
84 i = m.erase(m.cbegin(), m.cend()); in main()
107 I i = m.erase(m.cbegin(), m.cbegin()); in main()
127 i = m.erase(m.cbegin(), next(m.cbegin(), 2)); in main()
143 i = m.erase(next(m.cbegin(), 2), next(m.cbegin(), 6)); in main()
151 i = m.erase(m.cbegin(), m.cend()); in main()
Derase_iter.pass.cpp48 I i = m.erase(next(m.cbegin(), 3)); in main()
66 i = m.erase(next(m.cbegin(), 0)); in main()
82 i = m.erase(next(m.cbegin(), 5)); in main()
96 i = m.erase(next(m.cbegin(), 1)); in main()
108 i = m.erase(next(m.cbegin(), 2)); in main()
118 i = m.erase(next(m.cbegin(), 2)); in main()
126 i = m.erase(next(m.cbegin(), 0)); in main()
132 i = m.erase(m.cbegin()); in main()
155 I i = m.erase(next(m.cbegin(), 3)); in main()
173 i = m.erase(next(m.cbegin(), 0)); in main()
[all …]
/external/libcxx/test/std/containers/associative/multimap/multimap.modifiers/
Derase_iter_iter.pass.cpp40 I i = m.erase(m.cbegin(), m.cbegin()); in main()
60 i = m.erase(m.cbegin(), next(m.cbegin(), 2)); in main()
76 i = m.erase(next(m.cbegin(), 2), next(m.cbegin(), 6)); in main()
84 i = m.erase(m.cbegin(), m.cend()); in main()
107 I i = m.erase(m.cbegin(), m.cbegin()); in main()
127 i = m.erase(m.cbegin(), next(m.cbegin(), 2)); in main()
143 i = m.erase(next(m.cbegin(), 2), next(m.cbegin(), 6)); in main()
151 i = m.erase(m.cbegin(), m.cend()); in main()
Derase_iter.pass.cpp49 I i = m.erase(next(m.cbegin(), 3)); in main()
69 i = m.erase(next(m.cbegin(), 0)); in main()
87 i = m.erase(next(m.cbegin(), 5)); in main()
103 i = m.erase(next(m.cbegin(), 1)); in main()
117 i = m.erase(next(m.cbegin(), 2)); in main()
129 i = m.erase(next(m.cbegin(), 2)); in main()
139 i = m.erase(next(m.cbegin(), 0)); in main()
147 i = m.erase(next(m.cbegin(), 1)); in main()
153 i = m.erase(m.cbegin()); in main()
177 I i = m.erase(next(m.cbegin(), 3)); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.set/
Dlocal_iterators.pass.cpp134 I i = c.cbegin(b); in main()
139 i = c.cbegin(b); in main()
145 i = c.cbegin(b); in main()
151 i = c.cbegin(b); in main()
157 i = c.cbegin(b); in main()
178 I 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()
201 i = c.cbegin(b); in main()
[all …]
Dlocal_iterators.fail.cpp161 I i = c.cbegin(b); in main()
166 i = c.cbegin(b); in main()
174 i = c.cbegin(b); in main()
182 i = c.cbegin(b); in main()
188 i = c.cbegin(b); in main()
194 i = c.cbegin(b); in main()
199 i = c.cbegin(b); in main()
219 I i = c.cbegin(b); in main()
224 i = c.cbegin(b); in main()
232 i = c.cbegin(b); in main()
[all …]
/external/libcxx/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/
Dbegin_end.pass.cpp45 assert ( data == &*dyn.cbegin ()); in dyn_test_const()
52 assert (ds == std::distance ( dyn.cbegin(), dyn.cend())); in dyn_test_const()
56 assert ( dyn.begin () == dyn.cbegin ()); in dyn_test_const()
57 assert ( &*dyn.begin () == &*dyn.cbegin ()); in dyn_test_const()
68 assert ( data == &*dyn.cbegin ()); in dyn_test()
75 assert (ds == std::distance ( dyn.cbegin(), dyn.cend())); in dyn_test()
79 assert ( dyn.begin () == dyn.cbegin ()); in dyn_test()
80 assert ( &*dyn.begin () == &*dyn.cbegin ()); in dyn_test()
/external/libcxx/test/std/containers/unord/unord.multimap/
Dlocal_iterators.pass.cpp175 I i = c.cbegin(b); in main()
180 i = c.cbegin(b); in main()
190 i = c.cbegin(b); in main()
200 i = c.cbegin(b); in main()
207 i = c.cbegin(b); in main()
214 i = c.cbegin(b); in main()
219 i = c.cbegin(b); in main()
239 I i = c.cbegin(b); in main()
244 i = c.cbegin(b); in main()
254 i = c.cbegin(b); in main()
[all …]
Dlocal_iterators.fail.cpp176 I i = c.cbegin(b); in main()
181 i = c.cbegin(b); in main()
191 i = c.cbegin(b); in main()
201 i = c.cbegin(b); in main()
208 i = c.cbegin(b); in main()
215 i = c.cbegin(b); in main()
220 i = c.cbegin(b); in main()
240 I i = c.cbegin(b); in main()
245 i = c.cbegin(b); in main()
255 i = c.cbegin(b); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.map/
Dlocal_iterators.pass.cpp143 I i = c.cbegin(b); in main()
148 i = c.cbegin(b); in main()
155 i = c.cbegin(b); in main()
162 i = c.cbegin(b); in main()
169 i = c.cbegin(b); in main()
191 I i = c.cbegin(b); in main()
196 i = c.cbegin(b); in main()
203 i = c.cbegin(b); in main()
210 i = c.cbegin(b); in main()
217 i = c.cbegin(b); in main()
[all …]
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/
Diter_iter_initializer_list.pass.cpp24 s.replace(s.cbegin() + 3, s.cbegin() + 6, {'a', 'b', 'c'}); in main()
31 s.replace(s.cbegin() + 3, s.cbegin() + 6, {'a', 'b', 'c'}); in main()
/external/libcxx/test/libcxx/strings/basic.string/string.modifiers/
Derase_iter_iter_db4.pass.cpp29 std::string::iterator i = l1.erase(l1.cbegin()+1, l1.cbegin()); in main()
36 S::iterator i = l1.erase(l1.cbegin()+1, l1.cbegin()); in main()
Derase_iter_iter_db3.pass.cpp30 std::string::iterator i = l1.erase(l2.cbegin(), l2.cbegin()+1); in main()
38 S::iterator i = l1.erase(l2.cbegin(), l2.cbegin()+1); in main()
Derase_iter_iter_db2.pass.cpp30 std::string::iterator i = l1.erase(l1.cbegin(), l2.cbegin()+1); in main()
38 S::iterator i = l1.erase(l1.cbegin(), l2.cbegin()+1); in main()

1234567891011