Home
last modified time | relevance | path

Searched refs:begin (Results 1 – 25 of 713) sorted by relevance

12345678910>>...29

/ndk/sources/cxx-stl/llvm-libc++/test/containers/associative/map/map.modifiers/
Derase_key.pass.cpp41 assert(m.begin()->first == 1); in main()
42 assert(m.begin()->second == 1.5); in main()
43 assert(next(m.begin())->first == 2); in main()
44 assert(next(m.begin())->second == 2.5); in main()
45 assert(next(m.begin(), 2)->first == 3); in main()
46 assert(next(m.begin(), 2)->second == 3.5); in main()
47 assert(next(m.begin(), 3)->first == 4); in main()
48 assert(next(m.begin(), 3)->second == 4.5); in main()
49 assert(next(m.begin(), 4)->first == 5); in main()
50 assert(next(m.begin(), 4)->second == 5.5); in main()
[all …]
Derase_iter.pass.cpp40 assert(i == next(m.begin(), 3)); in main()
41 assert(m.begin()->first == 1); in main()
42 assert(m.begin()->second == 1.5); in main()
43 assert(next(m.begin())->first == 2); in main()
44 assert(next(m.begin())->second == 2.5); in main()
45 assert(next(m.begin(), 2)->first == 3); in main()
46 assert(next(m.begin(), 2)->second == 3.5); in main()
47 assert(next(m.begin(), 3)->first == 5); in main()
48 assert(next(m.begin(), 3)->second == 5.5); in main()
49 assert(next(m.begin(), 4)->first == 6); in main()
[all …]
Derase_iter_iter.pass.cpp40 assert(i == m.begin()); in main()
41 assert(m.begin()->first == 1); in main()
42 assert(m.begin()->second == 1.5); in main()
43 assert(next(m.begin())->first == 2); in main()
44 assert(next(m.begin())->second == 2.5); in main()
45 assert(next(m.begin(), 2)->first == 3); in main()
46 assert(next(m.begin(), 2)->second == 3.5); in main()
47 assert(next(m.begin(), 3)->first == 4); in main()
48 assert(next(m.begin(), 3)->second == 4.5); in main()
49 assert(next(m.begin(), 4)->first == 5); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/containers/associative/multimap/multimap.modifiers/
Derase_iter.pass.cpp41 assert(i == next(m.begin(), 3)); in main()
42 assert(m.begin()->first == 1); in main()
43 assert(m.begin()->second == 1); in main()
44 assert(next(m.begin())->first == 1); in main()
45 assert(next(m.begin())->second == 1.5); in main()
46 assert(next(m.begin(), 2)->first == 1); in main()
47 assert(next(m.begin(), 2)->second == 2); in main()
48 assert(next(m.begin(), 3)->first == 2); in main()
49 assert(next(m.begin(), 3)->second == 1.5); in main()
50 assert(next(m.begin(), 4)->first == 2); in main()
[all …]
Derase_iter_iter.pass.cpp40 assert(i == m.begin()); in main()
41 assert(m.begin()->first == 1); in main()
42 assert(m.begin()->second == 1.5); in main()
43 assert(next(m.begin())->first == 2); in main()
44 assert(next(m.begin())->second == 2.5); in main()
45 assert(next(m.begin(), 2)->first == 3); in main()
46 assert(next(m.begin(), 2)->second == 3.5); in main()
47 assert(next(m.begin(), 3)->first == 4); in main()
48 assert(next(m.begin(), 3)->second == 4.5); in main()
49 assert(next(m.begin(), 4)->first == 5); in main()
[all …]
Derase_key.pass.cpp42 assert(next(m.begin(), 0)->first == 1); in main()
43 assert(next(m.begin(), 0)->second == 1); in main()
44 assert(next(m.begin(), 1)->first == 1); in main()
45 assert(next(m.begin(), 1)->second == 1.5); in main()
46 assert(next(m.begin(), 2)->first == 1); in main()
47 assert(next(m.begin(), 2)->second == 2); in main()
48 assert(next(m.begin(), 3)->first == 3); in main()
49 assert(next(m.begin(), 3)->second == 1); in main()
50 assert(next(m.begin(), 4)->first == 3); in main()
51 assert(next(m.begin(), 4)->second == 1.5); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/containers/sequences/forwardlist/forwardlist.modifiers/
Derase_after_many.pass.cpp23 C c(std::begin(t), std::end(t)); in main()
27 assert(distance(c.begin(), c.end()) == 10); in main()
28 assert(*next(c.begin(), 0) == 0); in main()
29 assert(*next(c.begin(), 1) == 1); in main()
30 assert(*next(c.begin(), 2) == 2); in main()
31 assert(*next(c.begin(), 3) == 3); in main()
32 assert(*next(c.begin(), 4) == 4); in main()
33 assert(*next(c.begin(), 5) == 5); in main()
34 assert(*next(c.begin(), 6) == 6); in main()
35 assert(*next(c.begin(), 7) == 7); in main()
[all …]
Dresize_size.pass.cpp26 assert(distance(c.begin(), c.end()) == 0); in main()
28 assert(distance(c.begin(), c.end()) == 10); in main()
30 assert(distance(c.begin(), c.end()) == 20); in main()
32 assert(distance(c.begin(), c.end()) == 5); in main()
34 assert(distance(c.begin(), c.end()) == 0); in main()
40 C c(std::begin(t), std::end(t)); in main()
43 assert(distance(c.begin(), c.end()) == 3); in main()
44 assert(*next(c.begin(), 0) == 0); in main()
45 assert(*next(c.begin(), 1) == 1); in main()
46 assert(*next(c.begin(), 2) == 2); in main()
[all …]
Dresize_size_value.pass.cpp25 C c(std::begin(t), std::end(t)); in main()
28 assert(distance(c.begin(), c.end()) == 3); in main()
29 assert(*next(c.begin(), 0) == 0); in main()
30 assert(*next(c.begin(), 1) == 1); in main()
31 assert(*next(c.begin(), 2) == 2); in main()
34 assert(distance(c.begin(), c.end()) == 6); in main()
35 assert(*next(c.begin(), 0) == 0); in main()
36 assert(*next(c.begin(), 1) == 1); in main()
37 assert(*next(c.begin(), 2) == 2); in main()
38 assert(*next(c.begin(), 3) == 10); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/containers/associative/multiset/multiset.cons/
Dcopy.pass.cpp45 assert(distance(m.begin(), m.end()) == 9); in main()
46 assert(*next(m.begin(), 0) == 1); in main()
47 assert(*next(m.begin(), 1) == 1); in main()
48 assert(*next(m.begin(), 2) == 1); in main()
49 assert(*next(m.begin(), 3) == 2); in main()
50 assert(*next(m.begin(), 4) == 2); in main()
51 assert(*next(m.begin(), 5) == 2); in main()
52 assert(*next(m.begin(), 6) == 3); in main()
53 assert(*next(m.begin(), 7) == 3); in main()
54 assert(*next(m.begin(), 8) == 3); in main()
[all …]
Dcopy_assign.pass.cpp46 assert(distance(m.begin(), m.end()) == 9); in main()
47 assert(*next(m.begin(), 0) == 1); in main()
48 assert(*next(m.begin(), 1) == 1); in main()
49 assert(*next(m.begin(), 2) == 1); in main()
50 assert(*next(m.begin(), 3) == 2); in main()
51 assert(*next(m.begin(), 4) == 2); in main()
52 assert(*next(m.begin(), 5) == 2); in main()
53 assert(*next(m.begin(), 6) == 3); in main()
54 assert(*next(m.begin(), 7) == 3); in main()
55 assert(*next(m.begin(), 8) == 3); in main()
[all …]
Dcopy_alloc.pass.cpp44 assert(distance(m.begin(), m.end()) == 9); in main()
45 assert(*next(m.begin(), 0) == 1); in main()
46 assert(*next(m.begin(), 1) == 1); in main()
47 assert(*next(m.begin(), 2) == 1); in main()
48 assert(*next(m.begin(), 3) == 2); in main()
49 assert(*next(m.begin(), 4) == 2); in main()
50 assert(*next(m.begin(), 5) == 2); in main()
51 assert(*next(m.begin(), 6) == 3); in main()
52 assert(*next(m.begin(), 7) == 3); in main()
53 assert(*next(m.begin(), 8) == 3); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/containers/associative/set/
Derase_key.pass.cpp41 assert(*next(m.begin(), 0) == 1); in main()
42 assert(*next(m.begin(), 1) == 2); in main()
43 assert(*next(m.begin(), 2) == 3); in main()
44 assert(*next(m.begin(), 3) == 4); in main()
45 assert(*next(m.begin(), 4) == 5); in main()
46 assert(*next(m.begin(), 5) == 6); in main()
47 assert(*next(m.begin(), 6) == 7); in main()
48 assert(*next(m.begin(), 7) == 8); in main()
53 assert(*next(m.begin(), 0) == 1); in main()
54 assert(*next(m.begin(), 1) == 2); in main()
[all …]
Dequal_range.pass.cpp39 assert(r.first == next(m.begin(), 0)); in main()
40 assert(r.second == next(m.begin(), 1)); in main()
42 assert(r.first == next(m.begin(), 1)); in main()
43 assert(r.second == next(m.begin(), 2)); in main()
45 assert(r.first == next(m.begin(), 2)); in main()
46 assert(r.second == next(m.begin(), 3)); in main()
48 assert(r.first == next(m.begin(), 3)); in main()
49 assert(r.second == next(m.begin(), 4)); in main()
51 assert(r.first == next(m.begin(), 4)); in main()
52 assert(r.second == next(m.begin(), 5)); in main()
[all …]
Derase_iter.pass.cpp40 assert(i == next(m.begin(), 3)); in main()
41 assert(*next(m.begin(), 0) == 1); in main()
42 assert(*next(m.begin(), 1) == 2); in main()
43 assert(*next(m.begin(), 2) == 3); in main()
44 assert(*next(m.begin(), 3) == 5); in main()
45 assert(*next(m.begin(), 4) == 6); in main()
46 assert(*next(m.begin(), 5) == 7); in main()
47 assert(*next(m.begin(), 6) == 8); in main()
51 assert(i == m.begin()); in main()
52 assert(*next(m.begin(), 0) == 2); in main()
[all …]
Dlower_bound.pass.cpp39 assert(r == m.begin()); in main()
41 assert(r == next(m.begin())); in main()
43 assert(r == next(m.begin(), 2)); in main()
45 assert(r == next(m.begin(), 3)); in main()
47 assert(r == next(m.begin(), 4)); in main()
49 assert(r == next(m.begin(), 5)); in main()
51 assert(r == next(m.begin(), 6)); in main()
53 assert(r == next(m.begin(), 7)); in main()
55 assert(r == next(m.begin(), 0)); in main()
57 assert(r == next(m.begin(), 1)); in main()
[all …]
Dupper_bound.pass.cpp39 assert(r == next(m.begin(), 1)); in main()
41 assert(r == next(m.begin(), 2)); in main()
43 assert(r == next(m.begin(), 3)); in main()
45 assert(r == next(m.begin(), 4)); in main()
47 assert(r == next(m.begin(), 5)); in main()
49 assert(r == next(m.begin(), 6)); in main()
51 assert(r == next(m.begin(), 7)); in main()
53 assert(r == next(m.begin(), 8)); in main()
55 assert(r == next(m.begin(), 0)); in main()
57 assert(r == next(m.begin(), 1)); in main()
[all …]
Derase_iter_iter.pass.cpp40 assert(i == next(m.begin(), 5)); in main()
41 assert(*next(m.begin(), 0) == 1); in main()
42 assert(*next(m.begin(), 1) == 2); in main()
43 assert(*next(m.begin(), 2) == 3); in main()
44 assert(*next(m.begin(), 3) == 4); in main()
45 assert(*next(m.begin(), 4) == 5); in main()
46 assert(*next(m.begin(), 5) == 6); in main()
47 assert(*next(m.begin(), 6) == 7); in main()
48 assert(*next(m.begin(), 7) == 8); in main()
52 assert(i == next(m.begin(), 3)); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/containers/associative/map/map.ops/
Dequal_range.pass.cpp39 assert(r.first == next(m.begin(), 0)); in main()
40 assert(r.second == next(m.begin(), 1)); in main()
42 assert(r.first == next(m.begin(), 1)); in main()
43 assert(r.second == next(m.begin(), 2)); in main()
45 assert(r.first == next(m.begin(), 2)); in main()
46 assert(r.second == next(m.begin(), 3)); in main()
48 assert(r.first == next(m.begin(), 3)); in main()
49 assert(r.second == next(m.begin(), 4)); in main()
51 assert(r.first == next(m.begin(), 4)); in main()
52 assert(r.second == next(m.begin(), 5)); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/containers/associative/multiset/
Derase_iter.pass.cpp40 assert(i == next(m.begin(), 3)); in main()
41 assert(*next(m.begin(), 0) == 1); in main()
42 assert(*next(m.begin(), 1) == 2); in main()
43 assert(*next(m.begin(), 2) == 3); in main()
44 assert(*next(m.begin(), 3) == 5); in main()
45 assert(*next(m.begin(), 4) == 6); in main()
46 assert(*next(m.begin(), 5) == 7); in main()
47 assert(*next(m.begin(), 6) == 8); in main()
51 assert(i == m.begin()); in main()
52 assert(*next(m.begin(), 0) == 2); in main()
[all …]
Derase_iter_iter.pass.cpp40 assert(i == next(m.begin(), 5)); in main()
41 assert(*next(m.begin(), 0) == 1); in main()
42 assert(*next(m.begin(), 1) == 2); in main()
43 assert(*next(m.begin(), 2) == 3); in main()
44 assert(*next(m.begin(), 3) == 4); in main()
45 assert(*next(m.begin(), 4) == 5); in main()
46 assert(*next(m.begin(), 5) == 6); in main()
47 assert(*next(m.begin(), 6) == 7); in main()
48 assert(*next(m.begin(), 7) == 8); in main()
52 assert(i == next(m.begin(), 3)); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/containers/sequences/forwardlist/forwardlist.spec/
Dnon_member_swap.pass.cpp27 C c1(std::begin(t1), std::end(t1), A(1)); in main()
29 C c2(std::begin(t2), std::end(t2), A(2)); in main()
32 assert(distance(c1.begin(), c1.end()) == 3); in main()
33 assert(*next(c1.begin(), 0) == 10); in main()
34 assert(*next(c1.begin(), 1) == 11); in main()
35 assert(*next(c1.begin(), 2) == 12); in main()
38 assert(distance(c2.begin(), c2.end()) == 6); in main()
39 assert(*next(c2.begin(), 0) == 0); in main()
40 assert(*next(c2.begin(), 1) == 1); in main()
41 assert(*next(c2.begin(), 2) == 2); in main()
[all …]
Dmember_swap.pass.cpp26 C c1(std::begin(t1), std::end(t1), A(1)); in main()
28 C c2(std::begin(t2), std::end(t2), A(2)); in main()
31 assert(distance(c1.begin(), c1.end()) == 3); in main()
32 assert(*next(c1.begin(), 0) == 10); in main()
33 assert(*next(c1.begin(), 1) == 11); in main()
34 assert(*next(c1.begin(), 2) == 12); in main()
37 assert(distance(c2.begin(), c2.end()) == 6); in main()
38 assert(*next(c2.begin(), 0) == 0); in main()
39 assert(*next(c2.begin(), 1) == 1); in main()
40 assert(*next(c2.begin(), 2) == 2); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/re/re.traits/
Disctype.pass.cpp25 assert( t.isctype('_', t.lookup_classname(s.begin(), s.end()))); in main()
26 assert( t.isctype('a', t.lookup_classname(s.begin(), s.end()))); in main()
27 assert( t.isctype('Z', t.lookup_classname(s.begin(), s.end()))); in main()
28 assert( t.isctype('5', t.lookup_classname(s.begin(), s.end()))); in main()
29 assert(!t.isctype(' ', t.lookup_classname(s.begin(), s.end()))); in main()
30 assert(!t.isctype('-', t.lookup_classname(s.begin(), s.end()))); in main()
31 assert(!t.isctype('@', t.lookup_classname(s.begin(), s.end()))); in main()
34 assert(!t.isctype('_', t.lookup_classname(s.begin(), s.end()))); in main()
35 assert( t.isctype('a', t.lookup_classname(s.begin(), s.end()))); in main()
36 assert( t.isctype('Z', t.lookup_classname(s.begin(), s.end()))); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/containers/sequences/list/list.ops/
Dsplice_pos_list_iter.pass.cpp24 l1.splice(l1.end(), l2, l2.begin()); in main()
26 assert(distance(l1.begin(), l1.end()) == 1); in main()
28 assert(distance(l2.begin(), l2.end()) == 0); in main()
29 std::list<int>::const_iterator i = l1.begin(); in main()
35 l1.splice(l1.end(), l2, l2.begin()); in main()
37 assert(distance(l1.begin(), l1.end()) == 1); in main()
39 assert(distance(l2.begin(), l2.end()) == 1); in main()
40 std::list<int>::const_iterator i = l1.begin(); in main()
42 i = l2.begin(); in main()
48 l1.splice(l1.end(), l2, next(l2.begin())); in main()
[all …]

12345678910>>...29