/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/iterators/predef.iterators/insert.iterators/insert.iter.ops/insert.iter.op=/ |
D | lv_value.pass.cpp | 27 typename C::value_type x3, const C& c2) in test() argument 33 assert(c1 == c2); in test() 54 C c2 = c1; in main() local 55 insert3at(c2, c2.begin(), 'a', 'b', 'c'); in main() 56 test(c1, 0, 'a', 'b', 'c', c2); in main() 57 c2 = c1; in main() 58 insert3at(c2, c2.begin()+1, 'a', 'b', 'c'); in main() 59 test(c1, 1, 'a', 'b', 'c', c2); in main() 60 c2 = c1; in main() 61 insert3at(c2, c2.begin()+2, 'a', 'b', 'c'); in main() [all …]
|
D | rv_value.pass.cpp | 29 typename C::value_type x3, const C& c2) in test() argument 35 assert(c1 == c2); in test() 66 C c2; in main() local 68 c2.push_back(Ptr(x+i)); in main() 69 insert3at(c2, c2.begin(), Ptr(x+3), Ptr(x+4), Ptr(x+5)); in main() 70 test(std::move(c1), 0, Ptr(x+3), Ptr(x+4), Ptr(x+5), c2); in main() 74 c2.clear(); in main() 76 c2.push_back(Ptr(x+i)); in main() 77 insert3at(c2, c2.begin()+1, Ptr(x+3), Ptr(x+4), Ptr(x+5)); in main() 78 test(std::move(c1), 1, Ptr(x+3), Ptr(x+4), Ptr(x+5), c2); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/forwardlist/forwardlist.spec/ |
D | non_member_swap.pass.cpp | 30 C c2(std::begin(t2), std::end(t2), A(2)); in main() local 31 swap(c1, c2); in main() 39 assert(distance(c2.begin(), c2.end()) == 6); in main() 40 assert(*next(c2.begin(), 0) == 0); in main() 41 assert(*next(c2.begin(), 1) == 1); in main() 42 assert(*next(c2.begin(), 2) == 2); in main() 43 assert(*next(c2.begin(), 3) == 3); in main() 44 assert(*next(c2.begin(), 4) == 4); in main() 45 assert(*next(c2.begin(), 5) == 5); in main() 46 assert(c2.get_allocator() == A(2)); in main() [all …]
|
D | member_swap.pass.cpp | 29 C c2(std::begin(t2), std::end(t2), A(2)); in main() local 30 c1.swap(c2); 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() 42 assert(*next(c2.begin(), 3) == 3); in main() 43 assert(*next(c2.begin(), 4) == 4); in main() 44 assert(*next(c2.begin(), 5) == 5); in main() 45 assert(c2.get_allocator() == A(2)); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.set/unord.set.swap/ |
D | swap_non_member.pass.cpp | 35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() local 36 c2.max_load_factor(2); in main() 37 swap(c1, c2); in main() 48 assert(c2.bucket_count() == 0); in main() 49 assert(c2.size() == 0); in main() 50 assert(c2.hash_function() == Hash(1)); in main() 51 assert(c2.key_eq() == Compare(1)); in main() 52 assert(c2.get_allocator() == Alloc(2)); in main() 53 assert(std::distance(c2.begin(), c2.end()) == c2.size()); in main() 54 assert(std::distance(c2.cbegin(), c2.cend()) == c2.size()); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.multiset/unord.multiset.swap/ |
D | swap_non_member.pass.cpp | 35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() local 36 c2.max_load_factor(2); in main() 37 swap(c1, c2); in main() 48 assert(c2.bucket_count() == 0); in main() 49 assert(c2.size() == 0); in main() 50 assert(c2.hash_function() == Hash(1)); in main() 51 assert(c2.key_eq() == Compare(1)); in main() 52 assert(c2.get_allocator() == Alloc(2)); in main() 53 assert(std::distance(c2.begin(), c2.end()) == c2.size()); in main() 54 assert(std::distance(c2.cbegin(), c2.cend()) == c2.size()); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.set/ |
D | swap_member.pass.cpp | 35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() local 36 c2.max_load_factor(2); in main() 37 c1.swap(c2); in main() 48 assert(c2.bucket_count() == 0); in main() 49 assert(c2.size() == 0); in main() 50 assert(c2.hash_function() == Hash(1)); in main() 51 assert(c2.key_eq() == Compare(1)); in main() 52 assert(c2.get_allocator() == Alloc(2)); in main() 53 assert(std::distance(c2.begin(), c2.end()) == c2.size()); in main() 54 assert(std::distance(c2.cbegin(), c2.cend()) == c2.size()); in main() [all …]
|
D | eq.pass.cpp | 44 const C c2; in main() local 45 assert(!(c1 == c2)); in main() 46 assert( (c1 != c2)); in main() 63 const C c2 = c1; in main() local 64 assert( (c1 == c2)); in main() 65 assert(!(c1 != c2)); in main() 82 C c2 = c1; in main() local 83 c2.rehash(30); in main() 84 assert( (c1 == c2)); in main() 85 assert(!(c1 != c2)); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.multiset/ |
D | swap_member.pass.cpp | 35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() local 36 c2.max_load_factor(2); in main() 37 c1.swap(c2); in main() 48 assert(c2.bucket_count() == 0); in main() 49 assert(c2.size() == 0); in main() 50 assert(c2.hash_function() == Hash(1)); in main() 51 assert(c2.key_eq() == Compare(1)); in main() 52 assert(c2.get_allocator() == Alloc(2)); in main() 53 assert(std::distance(c2.begin(), c2.end()) == c2.size()); in main() 54 assert(std::distance(c2.cbegin(), c2.cend()) == c2.size()); in main() [all …]
|
D | eq.pass.cpp | 47 const C c2; in main() local 48 assert(!(c1 == c2)); in main() 49 assert( (c1 != c2)); in main() 69 const C c2 = c1; in main() local 70 assert( (c1 == c2)); in main() 71 assert(!(c1 != c2)); in main() 91 C c2 = c1; in main() local 92 c2.rehash(30); in main() 93 assert( (c1 == c2)); in main() 94 assert(!(c1 != c2)); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.map/ |
D | swap_member.pass.cpp | 36 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() local 37 c2.max_load_factor(2); in main() 38 c1.swap(c2); in main() 49 assert(c2.bucket_count() == 0); in main() 50 assert(c2.size() == 0); in main() 51 assert(c2.hash_function() == Hash(1)); in main() 52 assert(c2.key_eq() == Compare(1)); in main() 53 assert(c2.get_allocator() == Alloc(2)); in main() 54 assert(std::distance(c2.begin(), c2.end()) == c2.size()); in main() 55 assert(std::distance(c2.cbegin(), c2.cend()) == c2.size()); in main() [all …]
|
D | eq.pass.cpp | 45 const C c2; in main() local 46 assert(!(c1 == c2)); in main() 47 assert( (c1 != c2)); in main() 64 const C c2 = c1; in main() local 65 assert( (c1 == c2)); in main() 66 assert(!(c1 != c2)); in main() 83 C c2 = c1; in main() local 84 c2.rehash(30); in main() 85 assert( (c1 == c2)); in main() 86 assert(!(c1 != c2)); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.map/unord.map.swap/ |
D | swap_non_member.pass.cpp | 36 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() local 37 c2.max_load_factor(2); in main() 38 swap(c1, c2); in main() 49 assert(c2.bucket_count() == 0); in main() 50 assert(c2.size() == 0); in main() 51 assert(c2.hash_function() == Hash(1)); in main() 52 assert(c2.key_eq() == Compare(1)); in main() 53 assert(c2.get_allocator() == Alloc(2)); in main() 54 assert(std::distance(c2.begin(), c2.end()) == c2.size()); in main() 55 assert(std::distance(c2.cbegin(), c2.cend()) == c2.size()); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.multimap/unord.multimap.swap/ |
D | swap_non_member.pass.cpp | 36 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() local 37 c2.max_load_factor(2); in main() 38 swap(c1, c2); in main() 49 assert(c2.bucket_count() == 0); in main() 50 assert(c2.size() == 0); in main() 51 assert(c2.hash_function() == Hash(1)); in main() 52 assert(c2.key_eq() == Compare(1)); in main() 53 assert(c2.get_allocator() == Alloc(2)); in main() 54 assert(std::distance(c2.begin(), c2.end()) == c2.size()); in main() 55 assert(std::distance(c2.cbegin(), c2.cend()) == c2.size()); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/unord/unord.multimap/ |
D | swap_member.pass.cpp | 37 C c2(0, Hash(2), Compare(2), Alloc(2)); in main() local 38 c2.max_load_factor(2); in main() 39 c1.swap(c2); in main() 50 assert(c2.bucket_count() == 0); in main() 51 assert(c2.size() == 0); in main() 52 assert(c2.hash_function() == Hash(1)); in main() 53 assert(c2.key_eq() == Compare(1)); in main() 54 assert(c2.get_allocator() == Alloc(2)); in main() 55 assert(std::distance(c2.begin(), c2.end()) == c2.size()); in main() 56 assert(std::distance(c2.cbegin(), c2.cend()) == c2.size()); in main() [all …]
|
D | eq.pass.cpp | 48 const C c2; in main() local 49 assert(!(c1 == c2)); in main() 50 assert( (c1 != c2)); in main() 70 const C c2 = c1; in main() local 71 assert( (c1 == c2)); in main() 72 assert(!(c1 != c2)); in main() 92 C c2 = c1; in main() local 93 c2.rehash(30); in main() 94 assert( (c1 == c2)); in main() 95 assert(!(c1 != c2)); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector/vector.special/ |
D | swap.pass.cpp | 27 std::vector<int> c2(a2, a2+sizeof(a2)/sizeof(a2[0])); in main() local 29 assert(is_contiguous_container_asan_correct(c2)); in main() 30 swap(c1, c2); in main() 32 assert(c2 == std::vector<int>(a1, a1+sizeof(a1)/sizeof(a1[0]))); in main() 34 assert(is_contiguous_container_asan_correct(c2)); in main() 40 std::vector<int> c2(a2, a2+sizeof(a2)/sizeof(a2[0])); in main() local 42 assert(is_contiguous_container_asan_correct(c2)); in main() 43 swap(c1, c2); in main() 45 assert(c2.empty()); in main() 46 assert(distance(c2.begin(), c2.end()) == 0); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/list/list.special/ |
D | swap.pass.cpp | 26 std::list<int> c2(a2, a2+sizeof(a2)/sizeof(a2[0])); in main() local 27 swap(c1, c2); in main() 29 assert(c2 == std::list<int>(a1, a1+sizeof(a1)/sizeof(a1[0]))); in main() 35 std::list<int> c2(a2, a2+sizeof(a2)/sizeof(a2[0])); in main() local 36 swap(c1, c2); in main() 38 assert(c2.empty()); in main() 39 assert(distance(c2.begin(), c2.end()) == 0); in main() 45 std::list<int> c2(a2, a2); in main() local 46 swap(c1, c2); in main() 49 assert(c2 == std::list<int>(a1, a1+sizeof(a1)/sizeof(a1[0]))); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/deque/deque.special/ |
D | move.pass.cpp | 54 C c2 = make<C>(N); in testN() local 55 assert(std::move(c1.cbegin(), c1.cend(), c2.begin()) == c2.end()); in testN() 56 assert(c1 == c2); in testN() 57 assert(std::move(c2.cbegin(), c2.cend(), c1.begin()) == c1.end()); in testN() 58 assert(c1 == c2); in testN() 59 assert(std::move(c1.cbegin(), c1.cend(), RAI(c2.begin())) == RAI(c2.end())); in testN() 60 assert(c1 == c2); in testN() 61 assert(std::move(c2.cbegin(), c2.cend(), RAI(c1.begin())) == RAI(c1.end())); in testN() 62 assert(c1 == c2); in testN() 63 assert(std::move(RACI(c1.cbegin()), RACI(c1.cend()), c2.begin()) == c2.end()); in testN() [all …]
|
D | move_backward.pass.cpp | 54 C c2 = make<C>(N); in testN() local 55 assert(std::move_backward(c1.cbegin(), c1.cend(), c2.end()) == c2.begin()); in testN() 56 assert(c1 == c2); in testN() 57 assert(std::move_backward(c2.cbegin(), c2.cend(), c1.end()) == c1.begin()); in testN() 58 assert(c1 == c2); in testN() 59 assert(std::move_backward(c1.cbegin(), c1.cend(), RAI(c2.end())) == RAI(c2.begin())); in testN() 60 assert(c1 == c2); in testN() 61 assert(std::move_backward(c2.cbegin(), c2.cend(), RAI(c1.end())) == RAI(c1.begin())); in testN() 62 assert(c1 == c2); in testN() 63 assert(std::move_backward(RACI(c1.cbegin()), RACI(c1.cend()), c2.end()) == c2.begin()); in testN() [all …]
|
D | copy.pass.cpp | 55 C c2 = make<C>(N); in testN() local 56 assert(std::copy(c1.cbegin(), c1.cend(), c2.begin()) == c2.end()); in testN() 57 assert(c1 == c2); in testN() 58 assert(std::copy(c2.cbegin(), c2.cend(), c1.begin()) == c1.end()); in testN() 59 assert(c1 == c2); in testN() 60 assert(std::copy(c1.cbegin(), c1.cend(), RAI(c2.begin())) == RAI(c2.end())); in testN() 61 assert(c1 == c2); in testN() 62 assert(std::copy(c2.cbegin(), c2.cend(), RAI(c1.begin())) == RAI(c1.end())); in testN() 63 assert(c1 == c2); in testN() 64 assert(std::copy(RACI(c1.cbegin()), RACI(c1.cend()), c2.begin()) == c2.end()); in testN() [all …]
|
D | copy_backward.pass.cpp | 54 C c2 = make<C>(N); in testN() local 55 assert(std::copy_backward(c1.cbegin(), c1.cend(), c2.end()) == c2.begin()); in testN() 56 assert(c1 == c2); in testN() 57 assert(std::copy_backward(c2.cbegin(), c2.cend(), c1.end()) == c1.begin()); in testN() 58 assert(c1 == c2); in testN() 59 assert(std::copy_backward(c1.cbegin(), c1.cend(), RAI(c2.end())) == RAI(c2.begin())); in testN() 60 assert(c1 == c2); in testN() 61 assert(std::copy_backward(c2.cbegin(), c2.cend(), RAI(c1.end())) == RAI(c1.begin())); in testN() 62 assert(c1 == c2); in testN() 63 assert(std::copy_backward(RACI(c1.cbegin()), RACI(c1.cend()), c2.end()) == c2.begin()); in testN() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/array/array.special/ |
D | swap.pass.cpp | 23 C c2 = {4, 5, 6.5}; in main() local 24 swap(c1, c2); in main() 29 assert(c2.size() == 3); in main() 30 assert(c2[0] == 1); in main() 31 assert(c2[1] == 2); in main() 32 assert(c2[2] == 3.5); in main() 38 C c2 = {}; in main() local 39 swap(c1, c2); in main() 41 assert(c2.size() == 0); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/array/array.swap/ |
D | swap.pass.cpp | 23 C c2 = {4, 5, 6.5}; in main() local 24 c1.swap(c2); in main() 29 assert(c2.size() == 3); in main() 30 assert(c2[0] == 1); in main() 31 assert(c2[1] == 2); in main() 32 assert(c2[2] == 3.5); in main() 38 C c2 = {}; in main() local 39 c1.swap(c2); in main() 41 assert(c2.size() == 0); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/forwardlist/forwardlist.ops/ |
D | remove_if.pass.cpp | 33 C c2(std::begin(t2), std::end(t2)); in main() local 35 assert(c1 == c2); in main() 42 C c2; in main() local 44 assert(c1 == c2); in main() 52 C c2(std::begin(t2), std::end(t2)); in main() local 54 assert(c1 == c2); in main() 60 C c2; in main() local 62 assert(c1 == c2); in main() 70 C c2(std::begin(t2), std::end(t2)); in main() local 72 assert(c1 == c2); in main() [all …]
|