/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector.bool/ |
D | erase_iter_iter.pass.cpp | 24 std::vector<bool> l1(a1, a1+3); in main() local 25 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 26 assert(l1.size() == 3); in main() 27 assert(distance(l1.cbegin(), l1.cend()) == 3); in main() 28 assert(i == l1.begin()); in main() 31 std::vector<bool> l1(a1, a1+3); in main() local 32 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin())); in main() 33 assert(l1.size() == 2); in main() 34 assert(distance(l1.cbegin(), l1.cend()) == 2); in main() 35 assert(i == l1.begin()); in main() [all …]
|
D | erase_iter.pass.cpp | 24 std::vector<bool> l1(a1, a1+3); in main() local 25 std::vector<bool>::const_iterator i = l1.begin(); in main() 27 std::vector<bool>::iterator j = l1.erase(i); in main() 28 assert(l1.size() == 2); in main() 29 assert(distance(l1.begin(), l1.end()) == 2); in main() 31 assert(*l1.begin() == 1); in main() 32 assert(*next(l1.begin()) == true); in main() 33 j = l1.erase(j); in main() 34 assert(j == l1.end()); in main() 35 assert(l1.size() == 1); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/list/list.modifiers/ |
D | erase_iter_iter.pass.cpp | 23 std::list<int> l1(a1, a1+3); in main() local 24 std::list<int>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 25 assert(l1.size() == 3); in main() 26 assert(distance(l1.cbegin(), l1.cend()) == 3); in main() 27 assert(i == l1.begin()); in main() 30 std::list<int> l1(a1, a1+3); in main() local 31 std::list<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin())); in main() 32 assert(l1.size() == 2); in main() 33 assert(distance(l1.cbegin(), l1.cend()) == 2); in main() 34 assert(i == l1.begin()); in main() [all …]
|
D | erase_iter.pass.cpp | 23 std::list<int> l1(a1, a1+3); in main() local 24 std::list<int>::const_iterator i = l1.begin(); in main() 26 std::list<int>::iterator j = l1.erase(i); in main() 27 assert(l1.size() == 2); in main() 28 assert(distance(l1.begin(), l1.end()) == 2); in main() 30 assert(*l1.begin() == 1); in main() 31 assert(*next(l1.begin()) == 3); in main() 32 j = l1.erase(j); in main() 33 assert(j == l1.end()); in main() 34 assert(l1.size() == 1); in main() [all …]
|
D | insert_iter_rvalue.pass.cpp | 28 std::list<MoveOnly> l1; in main() local 29 l1.insert(l1.cend(), MoveOnly(1)); in main() 30 assert(l1.size() == 1); in main() 31 assert(l1.front() == MoveOnly(1)); in main() 32 l1.insert(l1.cbegin(), MoveOnly(2)); in main() 33 assert(l1.size() == 2); in main() 34 assert(l1.front() == MoveOnly(2)); in main() 35 assert(l1.back() == MoveOnly(1)); in main() 49 std::list<MoveOnly, min_allocator<MoveOnly>> l1; in main() local 50 l1.insert(l1.cend(), MoveOnly(1)); in main() [all …]
|
D | push_back_rvalue.pass.cpp | 24 std::list<MoveOnly> l1; in main() local 25 l1.push_back(MoveOnly(1)); in main() 26 assert(l1.size() == 1); in main() 27 assert(l1.front() == MoveOnly(1)); in main() 28 l1.push_back(MoveOnly(2)); in main() 29 assert(l1.size() == 2); in main() 30 assert(l1.front() == MoveOnly(1)); in main() 31 assert(l1.back() == MoveOnly(2)); in main() 35 std::list<MoveOnly, min_allocator<MoveOnly>> l1; in main() local 36 l1.push_back(MoveOnly(1)); in main() [all …]
|
D | push_front_rvalue.pass.cpp | 24 std::list<MoveOnly> l1; in main() local 25 l1.push_front(MoveOnly(1)); in main() 26 assert(l1.size() == 1); in main() 27 assert(l1.front() == MoveOnly(1)); in main() 28 l1.push_front(MoveOnly(2)); in main() 29 assert(l1.size() == 2); in main() 30 assert(l1.front() == MoveOnly(2)); in main() 31 assert(l1.back() == MoveOnly(1)); in main() 35 std::list<MoveOnly, min_allocator<MoveOnly>> l1; in main() local 36 l1.push_front(MoveOnly(1)); in main() [all …]
|
D | insert_iter_iter_iter.pass.cpp | 47 std::list<int> l1; in main() local 48 std::list<int>::iterator i = l1.insert(l1.begin(), a1, a1+3); in main() 49 assert(i == l1.begin()); in main() 50 assert(l1.size() == 3); in main() 51 assert(distance(l1.begin(), l1.end()) == 3); in main() 52 i = l1.begin(); in main() 59 i = l1.insert(i, a2, a2+3); in main() 61 assert(l1.size() == 6); in main() 62 assert(distance(l1.begin(), l1.end()) == 6); in main() 63 i = l1.begin(); in main() [all …]
|
D | insert_iter_value.pass.cpp | 47 std::list<int> l1(a1, a1+3); in main() local 48 std::list<int>::iterator i = l1.insert(next(l1.cbegin()), 4); in main() 49 assert(i == next(l1.begin())); in main() 50 assert(l1.size() == 4); in main() 51 assert(distance(l1.begin(), l1.end()) == 4); in main() 52 assert(l1 == std::list<int>(a2, a2+4)); in main() 57 i = l1.insert(i, 5); in main() 65 assert(l1 == std::list<int>(a2, a2+4)); in main() 80 std::list<int, min_allocator<int>> l1(a1, a1+3); in main() local 81 std::list<int, min_allocator<int>>::iterator i = l1.insert(next(l1.cbegin()), 4); in main() [all …]
|
D | insert_iter_size_value.pass.cpp | 47 std::list<int> l1(a1, a1+3); in main() local 48 std::list<int>::iterator i = l1.insert(next(l1.cbegin()), 5, 4); in main() 49 assert(i == next(l1.begin())); in main() 50 assert(l1 == std::list<int>(a2, a2+8)); in main() 55 i = l1.insert(i, 5, 5); in main() 63 assert(l1 == std::list<int>(a2, a2+8)); in main() 77 std::list<int, min_allocator<int>> l1(a1, a1+3); in main() local 78 std::list<int, min_allocator<int>>::iterator i = l1.insert(next(l1.cbegin()), 5, 4); in main() 79 assert(i == next(l1.begin())); in main() 80 assert((l1 == std::list<int, min_allocator<int>>(a2, a2+8))); in main() [all …]
|
D | erase_iter_iter_db4.pass.cpp | 29 std::list<int> l1(a1, a1+3); in main() local 30 std::list<int>::iterator i = l1.erase(next(l1.cbegin()), l1.cbegin()); in main() 36 std::list<int, min_allocator<int>> l1(a1, a1+3); in main() local 37 std::list<int, min_allocator<int>>::iterator i = l1.erase(next(l1.cbegin()), l1.cbegin()); in main()
|
D | erase_iter_db1.pass.cpp | 29 std::list<int> l1(a1, a1+3); in main() local 30 std::list<int>::const_iterator i = l1.end(); in main() 31 l1.erase(i); in main() 37 std::list<int, min_allocator<int>> l1(a1, a1+3); in main() local 38 std::list<int, min_allocator<int>>::const_iterator i = l1.end(); in main() 39 l1.erase(i); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector/vector.modifiers/ |
D | erase_iter.pass.cpp | 24 std::vector<int> l1(a1, a1+3); in main() local 25 std::vector<int>::const_iterator i = l1.begin(); in main() 26 assert(is_contiguous_container_asan_correct(l1)); in main() 28 std::vector<int>::iterator j = l1.erase(i); in main() 29 assert(l1.size() == 2); in main() 30 assert(distance(l1.begin(), l1.end()) == 2); in main() 32 assert(*l1.begin() == 1); in main() 33 assert(*next(l1.begin()) == 3); in main() 34 assert(is_contiguous_container_asan_correct(l1)); in main() 35 j = l1.erase(j); in main() [all …]
|
D | erase_iter_iter.pass.cpp | 24 std::vector<int> l1(a1, a1+3); in main() local 25 assert(is_contiguous_container_asan_correct(l1)); in main() 26 std::vector<int>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 27 assert(l1.size() == 3); in main() 28 assert(distance(l1.cbegin(), l1.cend()) == 3); in main() 29 assert(i == l1.begin()); in main() 30 assert(is_contiguous_container_asan_correct(l1)); in main() 33 std::vector<int> l1(a1, a1+3); in main() local 34 assert(is_contiguous_container_asan_correct(l1)); in main() 35 std::vector<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin())); in main() [all …]
|
D | erase_iter_iter_db4.pass.cpp | 29 std::vector<int> l1(a1, a1+3); in main() local 30 std::vector<int>::iterator i = l1.erase(l1.cbegin()+1, l1.cbegin()); in main() 36 std::vector<int, min_allocator<int>> l1(a1, a1+3); in main() local 37 std::vector<int, min_allocator<int>>::iterator i = l1.erase(l1.cbegin()+1, l1.cbegin()); in main()
|
D | erase_iter_db1.pass.cpp | 29 std::vector<int> l1(a1, a1+3); in main() local 30 std::vector<int>::const_iterator i = l1.end(); in main() 31 l1.erase(i); in main() 37 std::vector<int, min_allocator<int>> l1(a1, a1+3); in main() local 38 std::vector<int, min_allocator<int>>::const_iterator i = l1.end(); in main() 39 l1.erase(i); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/list/list.ops/ |
D | splice_pos_list_iter.pass.cpp | 28 std::list<int> l1; in main() local 30 l1.splice(l1.end(), l2, l2.begin()); in main() 31 assert(l1.size() == 1); in main() 32 assert(distance(l1.begin(), l1.end()) == 1); in main() 35 std::list<int>::const_iterator i = l1.begin(); in main() 39 std::list<int> l1; in main() local 41 l1.splice(l1.end(), l2, l2.begin()); in main() 42 assert(l1.size() == 1); in main() 43 assert(distance(l1.begin(), l1.end()) == 1); in main() 46 std::list<int>::const_iterator i = l1.begin(); in main() [all …]
|
D | splice_pos_list_iter_iter.pass.cpp | 28 std::list<int> l1(a1, a1+3); in main() local 29 l1.splice(l1.begin(), l1, next(l1.begin()), next(l1.begin())); in main() 30 assert(l1.size() == 3); in main() 31 assert(distance(l1.begin(), l1.end()) == 3); in main() 32 std::list<int>::const_iterator i = l1.begin(); in main() 40 std::list<int> l1(a1, a1+3); in main() local 41 l1.splice(l1.begin(), l1, next(l1.begin()), next(l1.begin(), 2)); in main() 42 assert(l1.size() == 3); in main() 43 assert(distance(l1.begin(), l1.end()) == 3); in main() 44 std::list<int>::const_iterator i = l1.begin(); in main() [all …]
|
D | splice_pos_list.pass.cpp | 28 std::list<int> l1; in main() local 30 l1.splice(l1.end(), l2); in main() 31 assert(l1.size() == 0); in main() 32 assert(distance(l1.begin(), l1.end()) == 0); in main() 37 std::list<int> l1; in main() local 39 l1.splice(l1.end(), l2); in main() 40 assert(l1.size() == 1); in main() 41 assert(distance(l1.begin(), l1.end()) == 1); in main() 44 std::list<int>::const_iterator i = l1.begin(); in main() 48 std::list<int> l1; in main() local [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.lock.algorithm/ |
D | try_lock.pass.cpp | 76 L0 l1; in main() local 77 assert(std::try_lock(l0, l1) == -1); in main() 79 assert(l1.locked()); in main() 83 L1 l1; in main() local 84 assert(std::try_lock(l0, l1) == 1); in main() 86 assert(!l1.locked()); in main() 90 L0 l1; in main() local 91 assert(std::try_lock(l0, l1) == 0); in main() 93 assert(!l1.locked()); in main() 97 L2 l1; in main() local [all …]
|
D | lock.pass.cpp | 91 L0 l1; in main() local 92 std::lock(l0, l1); in main() 94 assert(l1.locked()); in main() 98 L1 l1; in main() local 99 std::lock(l0, l1); in main() 101 assert(l1.locked()); in main() 105 L0 l1; in main() local 106 std::lock(l0, l1); in main() 108 assert(l1.locked()); in main() 112 L2 l1; in main() local [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.modifiers/string_erase/ |
D | erase_iter_iter_db4.pass.cpp | 28 std::string l1("123"); in main() local 29 std::string::iterator i = l1.erase(l1.cbegin()+1, l1.cbegin()); in main() 35 S l1("123"); in main() local 36 S::iterator i = l1.erase(l1.cbegin()+1, l1.cbegin()); in main()
|
D | erase_iter_db1.pass.cpp | 28 std::string l1("123"); in main() local 29 std::string::const_iterator i = l1.end(); in main() 30 l1.erase(i); in main() 36 S l1("123"); in main() local 37 S::const_iterator i = l1.end(); in main() 38 l1.erase(i); in main()
|
D | erase_iter_iter_db1.pass.cpp | 28 std::string l1("123"); in main() local 30 std::string::iterator i = l1.erase(l2.cbegin(), l1.cbegin()+1); in main() 36 S l1("123"); in main() local 38 S::iterator i = l1.erase(l2.cbegin(), l1.cbegin()+1); in main()
|
D | erase_iter_iter_db2.pass.cpp | 28 std::string l1("123"); in main() local 30 std::string::iterator i = l1.erase(l1.cbegin(), l2.cbegin()+1); in main() 36 S l1("123"); in main() local 38 S::iterator i = l1.erase(l1.cbegin(), l2.cbegin()+1); in main()
|