/ndk/tests/device/test-stlport/unit/ |
D | mvctor_test.cpp | 31 vector<int> const ref_vec(10, 0); in move_construct_test() 32 vector<vector<int> > v_v_ints(1, ref_vec); in move_construct_test() 65 vector<string> vec_strs(1, ref_str); in move_construct_test() 96 vector<int> elem1(10, 0), elem2(10, 0); in move_construct_test() 107 vector<bool> bit_vec(5, true); in move_construct_test() 109 vector<vector<bool> > v_v_bits(1, bit_vec); in move_construct_test() 178 deque<vector<int> > vect_deque; in deque_test() 179 vector<int*> bufs; in deque_test() 180 vect_deque.assign(3, vector<int>(10)); in deque_test() 189 vector<vector<int> > vect_vect(2, vector<int>(10)); in deque_test() [all …]
|
D | uninitialized_test.cpp | 92 vector<NotTrivialCopyStruct> src(10); in copy_test() 93 vector<NotTrivialCopyStruct> dst(10); in copy_test() 95 vector<NotTrivialCopyStruct>::const_iterator it(dst.begin()), end(dst.end()); in copy_test() 129 vector<NotTrivialCopyStruct> src(10); in copy_test() 146 vector<NotTrivialCopyStruct> dst(10); in copy_test() 148 vector<NotTrivialCopyStruct>::iterator it(dst.begin()), end(dst.end()); in copy_test() 165 vector<int> src; in copy_test() 172 vector<unsigned int> dst(src.begin(), src.end()); in copy_test() 173 vector<unsigned int>::const_iterator it(dst.begin()); in copy_test() 180 vector<char> src; in copy_test() [all …]
|
D | iter_test.cpp | 45 vector<const char*> v; // Vector of character strings. in iter1() 48 typedef vector<const char*> vec; in iter1() 65 typedef vector<const char*> Vec; in iter3() 86 vector<int> v; // Empty vector of integers. in iter4() 91 vector<int>::iterator i = v.end(); in iter4() 113 vector<int> v1(6); in iterswp1() 126 vector<bool> boolVector; in iterswp2() 131 vector<bool>::iterator i1 = boolVector.begin(); in iterswp2() 132 vector<bool>::iterator i2 = boolVector.begin(); in iterswp2() 146 vector<int> vvref(10, 10); in iterswp3() [all …]
|
D | vector_test.cpp | 71 vector<int> v1; // Empty vector of integers. in vec_test_1() 85 vector<vector<int> > vect(10); in vec_test_1() 86 vector<vector<int> >::iterator it(vect.begin()), end(vect.end()); in vec_test_1() 98 vector<double> v1; // Empty vector of doubles. in vec_test_2() 101 vector<double> v2; // Another empty vector of doubles. in vec_test_2() 132 typedef vector<char> vec_type; in vec_test_3() 156 vector<int> v(4); in vec_test_4() 181 vector<int> v(array, array + 4); in vec_test_5() 195 vector<int> v(array, array + 6); in vec_test_6() 196 vector<int>::iterator vit; in vec_test_6() [all …]
|
/ndk/tests/device/test-gnustl-full/unit/ |
D | mvctor_test.cpp | 31 vector<int> const ref_vec(10, 0); in move_construct_test() 32 vector<vector<int> > v_v_ints(1, ref_vec); in move_construct_test() 65 vector<string> vec_strs(1, ref_str); in move_construct_test() 96 vector<int> elem1(10, 0), elem2(10, 0); in move_construct_test() 107 vector<bool> bit_vec(5, true); in move_construct_test() 109 vector<vector<bool> > v_v_bits(1, bit_vec); in move_construct_test() 178 deque<vector<int> > vect_deque; in deque_test() 179 vector<int*> bufs; in deque_test() 180 vect_deque.assign(3, vector<int>(10)); in deque_test() 189 vector<vector<int> > vect_vect(2, vector<int>(10)); in deque_test() [all …]
|
D | uninitialized_test.cpp | 92 vector<NotTrivialCopyStruct> src(10); in copy_test() 93 vector<NotTrivialCopyStruct> dst(10); in copy_test() 95 vector<NotTrivialCopyStruct>::const_iterator it(dst.begin()), end(dst.end()); in copy_test() 129 vector<NotTrivialCopyStruct> src(10); in copy_test() 146 vector<NotTrivialCopyStruct> dst(10); in copy_test() 148 vector<NotTrivialCopyStruct>::iterator it(dst.begin()), end(dst.end()); in copy_test() 165 vector<int> src; in copy_test() 172 vector<unsigned int> dst(src.begin(), src.end()); in copy_test() 173 vector<unsigned int>::const_iterator it(dst.begin()); in copy_test() 180 vector<char> src; in copy_test() [all …]
|
D | iter_test.cpp | 45 vector<const char*> v; // Vector of character strings. in iter1() 48 typedef vector<const char*> vec; in iter1() 65 typedef vector<const char*> Vec; in iter3() 86 vector<int> v; // Empty vector of integers. in iter4() 91 vector<int>::iterator i = v.end(); in iter4() 113 vector<int> v1(6); in iterswp1() 126 vector<bool> boolVector; in iterswp2() 131 vector<bool>::iterator i1 = boolVector.begin(); in iterswp2() 132 vector<bool>::iterator i2 = boolVector.begin(); in iterswp2() 146 vector<int> vvref(10, 10); in iterswp3() [all …]
|
D | vector_test.cpp | 71 vector<int> v1; // Empty vector of integers. in vec_test_1() 85 vector<vector<int> > vect(10); in vec_test_1() 86 vector<vector<int> >::iterator it(vect.begin()), end(vect.end()); in vec_test_1() 98 vector<double> v1; // Empty vector of doubles. in vec_test_2() 101 vector<double> v2; // Another empty vector of doubles. in vec_test_2() 132 typedef vector<char> vec_type; in vec_test_3() 156 vector<int> v(4); in vec_test_4() 181 vector<int> v(array, array + 4); in vec_test_5() 195 vector<int> v(array, array + 6); in vec_test_6() 196 vector<int>::iterator vit; in vec_test_6() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector/vector.cons/ |
D | construct_iter_iter.pass.cpp | 38 test<std::vector<int> >(input_iterator<const int*>(a), input_iterator<const int*>(an)); in main() 39 test<std::vector<int> >(forward_iterator<const int*>(a), forward_iterator<const int*>(an)); in main() 40 …test<std::vector<int> >(bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(… in main() 41 …test<std::vector<int> >(random_access_iterator<const int*>(a), random_access_iterator<const int*>(… in main() 42 test<std::vector<int> >(a, an); in main() 44 …test<std::vector<int, stack_allocator<int, 63> > >(input_iterator<const int*>(a), input_iterator<c… in main() 45 …test<std::vector<int, stack_allocator<int, 18> > >(forward_iterator<const int*>(a), forward_iterat… in main() 46 …test<std::vector<int, stack_allocator<int, 18> > >(bidirectional_iterator<const int*>(a), bidirect… in main() 47 …test<std::vector<int, stack_allocator<int, 18> > >(random_access_iterator<const int*>(a), random_a… in main() 48 test<std::vector<int, stack_allocator<int, 18> > >(a, an); in main() [all …]
|
D | move.pass.cpp | 25 std::vector<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 26 std::vector<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 36 std::vector<MoveOnly, test_allocator<MoveOnly> > l2 = std::move(l); in main() 43 std::vector<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main() 44 std::vector<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main() 54 std::vector<MoveOnly, other_allocator<MoveOnly> > l2 = std::move(l); in main() 62 std::vector<int> c1(a1, a1+sizeof(a1)/sizeof(a1[0])); in main() 64 std::vector<int>::const_iterator i = c1.begin(); in main() 65 std::vector<int> c2 = std::move(c1); in main() 67 std::vector<int>::iterator j = c2.erase(i); in main() [all …]
|
D | construct_default.pass.cpp | 55 test0<std::vector<int> >(); in main() 56 test0<std::vector<NotConstructible> >(); in main() 57 test1<std::vector<int, test_allocator<int> > >(test_allocator<int>(3)); in main() 58 test1<std::vector<NotConstructible, test_allocator<NotConstructible> > > in main() 62 std::vector<int, stack_allocator<int, 10> > v; in main() 67 test0<std::vector<int, min_allocator<int>> >(); in main() 68 test0<std::vector<NotConstructible, min_allocator<NotConstructible>> >(); in main() 69 test1<std::vector<int, min_allocator<int> > >(min_allocator<int>{}); in main() 70 test1<std::vector<NotConstructible, min_allocator<NotConstructible> > > in main() 74 std::vector<int, min_allocator<int> > v; in main()
|
D | construct_iter_iter_alloc.pass.cpp | 52 test<std::vector<int> >(input_iterator<const int*>(a), input_iterator<const int*>(an), alloc); in main() 53 … test<std::vector<int> >(forward_iterator<const int*>(a), forward_iterator<const int*>(an), alloc); in main() 54 …test<std::vector<int> >(bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(… in main() 55 …test<std::vector<int> >(random_access_iterator<const int*>(a), random_access_iterator<const int*>(… in main() 56 test<std::vector<int> >(a, an, alloc); in main() 63 …test<std::vector<int, min_allocator<int>> >(input_iterator<const int*>(a), input_iterator<const in… in main() 64 …test<std::vector<int, min_allocator<int>> >(forward_iterator<const int*>(a), forward_iterator<cons… in main() 65 …test<std::vector<int, min_allocator<int>> >(bidirectional_iterator<const int*>(a), bidirectional_i… in main() 66 …test<std::vector<int, min_allocator<int>> >(random_access_iterator<const int*>(a), random_access_i… in main() 67 test<std::vector<int, min_allocator<int>> >(a, an, alloc); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector/vector.special/ |
D | swap.pass.cpp | 26 std::vector<int> c1(a1, a1+sizeof(a1)/sizeof(a1[0])); in main() 27 std::vector<int> c2(a2, a2+sizeof(a2)/sizeof(a2[0])); in main() 31 assert(c1 == std::vector<int>(a2, a2+sizeof(a2)/sizeof(a2[0]))); in main() 32 assert(c2 == std::vector<int>(a1, a1+sizeof(a1)/sizeof(a1[0]))); in main() 39 std::vector<int> c1(a1, a1); in main() 40 std::vector<int> c2(a2, a2+sizeof(a2)/sizeof(a2[0])); in main() 44 assert(c1 == std::vector<int>(a2, a2+sizeof(a2)/sizeof(a2[0]))); in main() 53 std::vector<int> c1(a1, a1+sizeof(a1)/sizeof(a1[0])); in main() 54 std::vector<int> c2(a2, a2); in main() 60 assert(c2 == std::vector<int>(a1, a1+sizeof(a1)/sizeof(a1[0]))); in main() [all …]
|
D | db_swap_1.pass.cpp | 30 std::vector<int> c1(a1, a1+sizeof(a1)/sizeof(a1[0])); in main() 31 std::vector<int> c2(a2, a2+sizeof(a2)/sizeof(a2[0])); in main() 32 std::vector<int>::iterator i1 = c1.begin(); in main() 33 std::vector<int>::iterator i2 = c2.begin(); in main() 44 std::vector<int, min_allocator<int>> c1(a1, a1+sizeof(a1)/sizeof(a1[0])); in main() 45 std::vector<int, min_allocator<int>> c2(a2, a2+sizeof(a2)/sizeof(a2[0])); in main() 46 std::vector<int, min_allocator<int>>::iterator i1 = c1.begin(); in main() 47 std::vector<int, min_allocator<int>>::iterator i2 = c2.begin(); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/vector/vector.modifiers/ |
D | erase_iter_iter.pass.cpp | 24 std::vector<int> l1(a1, a1+3); in main() 26 std::vector<int>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 33 std::vector<int> l1(a1, a1+3); in main() 35 std::vector<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin())); in main() 39 assert(l1 == std::vector<int>(a1+1, a1+3)); in main() 43 std::vector<int> l1(a1, a1+3); in main() 45 std::vector<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin(), 2)); in main() 49 assert(l1 == std::vector<int>(a1+2, a1+3)); in main() 53 std::vector<int> l1(a1, a1+3); in main() 55 std::vector<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin(), 3)); in main() [all …]
|
D | insert_iter_size_value.pass.cpp | 27 std::vector<int> v(100); in main() 28 std::vector<int>::iterator i = v.insert(v.cbegin() + 10, 5, 1); in main() 41 std::vector<int, stack_allocator<int, 300> > v(100); in main() 42 std::vector<int, stack_allocator<int, 300> >::iterator i = v.insert(v.cbegin() + 10, 5, 1); in main() 56 std::vector<int> c1(100); in main() 57 std::vector<int> c2; in main() 58 std::vector<int>::iterator i = c1.insert(c2.cbegin() + 10, 5, 1); in main() 64 std::vector<int, min_allocator<int>> v(100); in main() 65 std::vector<int, min_allocator<int>>::iterator i = v.insert(v.cbegin() + 10, 5, 1); in main() 78 std::vector<int, min_allocator<int>> v(100); in main() [all …]
|
/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() 25 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 31 std::vector<bool> l1(a1, a1+3); in main() 32 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin())); in main() 36 assert(l1 == std::vector<bool>(a1+1, a1+3)); in main() 39 std::vector<bool> l1(a1, a1+3); in main() 40 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin(), 2)); in main() 44 assert(l1 == std::vector<bool>(a1+2, a1+3)); in main() 47 std::vector<bool> l1(a1, a1+3); in main() 48 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin(), 3)); in main() [all …]
|
D | swap.pass.cpp | 23 std::vector<bool> v1(100); in main() 24 std::vector<bool> v2(200); in main() 33 std::vector<bool, A> v1(100, true, A(1)); in main() 34 std::vector<bool, A> v2(200, false, A(2)); in main() 45 std::vector<bool, A> v1(100, true, A(1)); in main() 46 std::vector<bool, A> v2(200, false, A(2)); in main() 56 std::vector<bool> v(2); in main() 57 std::vector<bool>::reference r1 = v[0]; in main() 58 std::vector<bool>::reference r2 = v[1]; in main() 67 std::vector<bool, min_allocator<bool>> v1(100); in main() [all …]
|
D | move_alloc.pass.cpp | 23 std::vector<bool, test_allocator<bool> > l(test_allocator<bool>(5)); in main() 24 std::vector<bool, test_allocator<bool> > lo(test_allocator<bool>(5)); in main() 30 std::vector<bool, test_allocator<bool> > l2(std::move(l), test_allocator<bool>(6)); in main() 36 std::vector<bool, test_allocator<bool> > l(test_allocator<bool>(5)); in main() 37 std::vector<bool, test_allocator<bool> > lo(test_allocator<bool>(5)); in main() 43 std::vector<bool, test_allocator<bool> > l2(std::move(l), test_allocator<bool>(5)); in main() 49 std::vector<bool, other_allocator<bool> > l(other_allocator<bool>(5)); in main() 50 std::vector<bool, other_allocator<bool> > lo(other_allocator<bool>(5)); in main() 56 std::vector<bool, other_allocator<bool> > l2(std::move(l), other_allocator<bool>(4)); in main() 63 std::vector<bool, min_allocator<bool> > l(min_allocator<bool>{}); in main() [all …]
|
D | assign_move.pass.cpp | 23 std::vector<bool, test_allocator<bool> > l(test_allocator<bool>(5)); in main() 24 std::vector<bool, test_allocator<bool> > lo(test_allocator<bool>(5)); in main() 30 std::vector<bool, test_allocator<bool> > l2(test_allocator<bool>(5)); in main() 37 std::vector<bool, test_allocator<bool> > l(test_allocator<bool>(5)); in main() 38 std::vector<bool, test_allocator<bool> > lo(test_allocator<bool>(5)); in main() 44 std::vector<bool, test_allocator<bool> > l2(test_allocator<bool>(6)); in main() 51 std::vector<bool, other_allocator<bool> > l(other_allocator<bool>(5)); in main() 52 std::vector<bool, other_allocator<bool> > lo(other_allocator<bool>(5)); in main() 58 std::vector<bool, other_allocator<bool> > l2(other_allocator<bool>(6)); in main() 66 std::vector<bool, min_allocator<bool> > l(min_allocator<bool>{}); in main() [all …]
|
D | construct_iter_iter.pass.cpp | 36 test<std::vector<bool> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an)); in main() 37 test<std::vector<bool> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an)); in main() 38 …test<std::vector<bool> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool… in main() 39 …test<std::vector<bool> >(random_access_iterator<const bool*>(a), random_access_iterator<const bool… in main() 40 test<std::vector<bool> >(a, an); in main() 42 …test<std::vector<bool, min_allocator<bool>> >(input_iterator<const bool*>(a), input_iterator<const… in main() 43 …test<std::vector<bool, min_allocator<bool>> >(forward_iterator<const bool*>(a), forward_iterator<c… in main() 44 …test<std::vector<bool, min_allocator<bool>> >(bidirectional_iterator<const bool*>(a), bidirectiona… in main() 45 …test<std::vector<bool, min_allocator<bool>> >(random_access_iterator<const bool*>(a), random_acces… in main() 46 test<std::vector<bool, min_allocator<bool>> >(a, an); in main()
|
D | construct_iter_iter_alloc.pass.cpp | 39 … test<std::vector<bool> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an), alloc); in main() 40 …test<std::vector<bool> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), allo… in main() 41 …test<std::vector<bool> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool… in main() 42 …test<std::vector<bool> >(random_access_iterator<const bool*>(a), random_access_iterator<const bool… in main() 43 test<std::vector<bool> >(a, an, alloc); in main() 48 …test<std::vector<bool, min_allocator<bool>> >(input_iterator<const bool*>(a), input_iterator<const… in main() 49 …test<std::vector<bool, min_allocator<bool>> >(forward_iterator<const bool*>(a), forward_iterator<c… in main() 50 …test<std::vector<bool, min_allocator<bool>> >(bidirectional_iterator<const bool*>(a), bidirectiona… in main() 51 …test<std::vector<bool, min_allocator<bool>> >(random_access_iterator<const bool*>(a), random_acces… in main() 52 test<std::vector<bool, min_allocator<bool>> >(a, an, alloc); in main()
|
D | move.pass.cpp | 23 std::vector<bool, test_allocator<bool> > l(test_allocator<bool>(5)); in main() 24 std::vector<bool, test_allocator<bool> > lo(test_allocator<bool>(5)); in main() 30 std::vector<bool, test_allocator<bool> > l2 = std::move(l); in main() 36 std::vector<bool, other_allocator<bool> > l(other_allocator<bool>(5)); in main() 37 std::vector<bool, other_allocator<bool> > lo(other_allocator<bool>(5)); in main() 43 std::vector<bool, other_allocator<bool> > l2 = std::move(l); in main() 50 std::vector<bool, min_allocator<bool> > l(min_allocator<bool>{}); in main() 51 std::vector<bool, min_allocator<bool> > lo(min_allocator<bool>{}); in main() 57 std::vector<bool, min_allocator<bool> > l2 = std::move(l); in main()
|
D | copy.pass.cpp | 36 test(std::vector<bool>(a, an)); in main() 39 std::vector<bool, test_allocator<bool> > v(3, 2, test_allocator<bool>(5)); in main() 40 std::vector<bool, test_allocator<bool> > v2 = v; in main() 46 std::vector<bool, other_allocator<bool> > v(3, 2, other_allocator<bool>(5)); in main() 47 std::vector<bool, other_allocator<bool> > v2 = v; in main() 56 test(std::vector<bool, min_allocator<bool>>(a, an)); in main() 59 std::vector<bool, min_allocator<bool> > v(3, 2, min_allocator<bool>()); in main() 60 std::vector<bool, min_allocator<bool> > v2 = v; in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ |
D | vector | 2 //===------------------------------ vector --------------------------------===// 15 vector synopsis 21 class vector 37 vector() 39 explicit vector(const allocator_type&); 40 explicit vector(size_type n); 41 explicit vector(size_type n, const allocator_type&); // C++14 42 vector(size_type n, const value_type& value, const allocator_type& = allocator_type()); 44 vector(InputIterator first, InputIterator last, const allocator_type& = allocator_type()); 45 vector(const vector& x); [all …]
|