/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
D | UTypes.pass.cpp | 45 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() 49 MoveOnly in test_default_constructible_extension_sfinae() 54 MoveOnly, NoDefault in test_default_constructible_extension_sfinae() 58 typedef std::tuple<MoveOnly, MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() 62 MoveOnly, MoveOnly in test_default_constructible_extension_sfinae() 67 MoveOnly, MoveOnly, NoDefault in test_default_constructible_extension_sfinae() 72 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() 73 typedef std::tuple<MoveOnly, Tuple, MoveOnly, MoveOnly> NestedTuple; in test_default_constructible_extension_sfinae() 77 MoveOnly, MoveOnly, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae() 82 MoveOnly, Tuple, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae() [all …]
|
D | alloc_UTypes.pass.cpp | 36 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() 40 std::allocator_arg_t, A1<int>, MoveOnly in test_default_constructible_extension_sfinae() 45 std::allocator_arg_t, A1<int>, MoveOnly, NoDefault in test_default_constructible_extension_sfinae() 49 typedef std::tuple<MoveOnly, MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() 53 std::allocator_arg_t, A1<int>, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae() 58 std::allocator_arg_t, A1<int>, MoveOnly, MoveOnly, NoDefault in test_default_constructible_extension_sfinae() 63 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae() 64 typedef std::tuple<MoveOnly, Tuple, MoveOnly, MoveOnly> NestedTuple; in test_default_constructible_extension_sfinae() 68 std::allocator_arg_t, A1<int>, MoveOnly, MoveOnly, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae() 73 std::allocator_arg_t, A1<int>, MoveOnly, Tuple, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae() [all …]
|
/external/libcxx/test/std/containers/sequences/list/list.cons/ |
D | move_alloc.pass.cpp | 24 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 25 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 31 … std::list<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(6)); in main() 34 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main() 37 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 38 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 44 … std::list<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(5)); in main() 47 assert(l2.get_allocator() == test_allocator<MoveOnly>(5)); in main() 50 std::list<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main() 51 std::list<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main() [all …]
|
D | assign_move.pass.cpp | 24 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 25 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 31 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); in main() 38 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 39 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 45 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(6)); in main() 49 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main() 52 std::list<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main() 53 std::list<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main() 59 std::list<MoveOnly, other_allocator<MoveOnly> > l2(other_allocator<MoveOnly>(6)); in main() [all …]
|
D | move.pass.cpp | 24 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 25 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 31 std::list<MoveOnly, test_allocator<MoveOnly> > l2 = std::move(l); in main() 37 std::list<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main() 38 std::list<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main() 44 std::list<MoveOnly, other_allocator<MoveOnly> > l2 = std::move(l); in main() 51 std::list<MoveOnly, min_allocator<MoveOnly> > l(min_allocator<MoveOnly>{}); in main() 52 std::list<MoveOnly, min_allocator<MoveOnly> > lo(min_allocator<MoveOnly>{}); in main() 58 std::list<MoveOnly, min_allocator<MoveOnly> > l2 = std::move(l); in main()
|
/external/libcxx/test/std/containers/sequences/vector/vector.cons/ |
D | move_alloc.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), test_allocator<MoveOnly>(6)); in main() 39 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main() 43 std::vector<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 44 std::vector<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 54 … std::vector<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(5)); in main() 57 assert(l2.get_allocator() == test_allocator<MoveOnly>(5)); in main() 61 std::vector<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main() 62 std::vector<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main() [all …]
|
D | assign_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() 34 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); in main() 42 std::vector<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main() 43 std::vector<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main() 53 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(6)); in main() 57 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main() 61 std::vector<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main() 62 std::vector<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main() 72 std::vector<MoveOnly, other_allocator<MoveOnly> > l2(other_allocator<MoveOnly>(6)); in main() [all …]
|
/external/llvm/unittests/ADT/ |
D | OptionalTest.cpp | 218 struct MoveOnly { struct 223 explicit MoveOnly(int val) : val(val) { in MoveOnly() argument 225 MoveOnly(MoveOnly&& other) { in MoveOnly() function 229 MoveOnly &operator=(MoveOnly&& other) { in operator =() argument 234 ~MoveOnly() { in ~MoveOnly() argument 244 unsigned MoveOnly::MoveConstructions = 0; 245 unsigned MoveOnly::Destructions = 0; 246 unsigned MoveOnly::MoveAssignments = 0; 249 MoveOnly::ResetCounts(); in TEST_F() 250 Optional<MoveOnly> O; in TEST_F() [all …]
|
/external/libcxx/test/std/containers/sequences/vector/vector.modifiers/ |
D | push_back_rvalue.pass.cpp | 25 std::vector<MoveOnly> c; in main() 26 c.push_back(MoveOnly(0)); in main() 30 assert(c[j] == MoveOnly(j)); in main() 31 c.push_back(MoveOnly(1)); in main() 35 assert(c[j] == MoveOnly(j)); in main() 36 c.push_back(MoveOnly(2)); in main() 40 assert(c[j] == MoveOnly(j)); in main() 41 c.push_back(MoveOnly(3)); in main() 45 assert(c[j] == MoveOnly(j)); in main() 46 c.push_back(MoveOnly(4)); in main() [all …]
|
D | insert_iter_rvalue.pass.cpp | 29 std::vector<MoveOnly> v(100); in main() 30 std::vector<MoveOnly>::iterator i = v.insert(v.cbegin() + 10, MoveOnly(3)); in main() 36 assert(v[j] == MoveOnly()); in main() 37 assert(v[j] == MoveOnly(3)); in main() 39 assert(v[j] == MoveOnly()); in main() 42 std::vector<MoveOnly, stack_allocator<MoveOnly, 300> > v(100); in main() 43 …std::vector<MoveOnly, stack_allocator<MoveOnly, 300> >::iterator i = v.insert(v.cbegin() + 10, Mov… in main() 49 assert(v[j] == MoveOnly()); in main() 50 assert(v[j] == MoveOnly(3)); in main() 52 assert(v[j] == MoveOnly()); in main() [all …]
|
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/ |
D | move_noexcept.pass.cpp | 43 typedef std::unordered_multimap<MoveOnly, MoveOnly> C; in main() 47 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 48 … std::equal_to<MoveOnly>, test_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 52 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 53 … std::equal_to<MoveOnly>, other_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 57 typedef std::unordered_multimap<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main() 61 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 62 some_comp<MoveOnly>> C; in main()
|
D | dtor_noexcept.pass.cpp | 44 typedef std::unordered_multimap<MoveOnly, MoveOnly> C; in main() 48 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 49 … std::equal_to<MoveOnly>, test_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 53 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 54 … std::equal_to<MoveOnly>, other_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 58 typedef std::unordered_multimap<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main() 62 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 63 some_comp<MoveOnly>> C; in main()
|
D | default_noexcept.pass.cpp | 47 typedef std::unordered_multimap<MoveOnly, MoveOnly> C; in main() 51 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 52 … std::equal_to<MoveOnly>, test_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 56 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 57 … std::equal_to<MoveOnly>, other_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 61 typedef std::unordered_multimap<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main() 65 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 66 some_comp<MoveOnly>> C; in main()
|
D | move_assign_noexcept.pass.cpp | 46 typedef std::unordered_multimap<MoveOnly, MoveOnly> C; in main() 50 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 51 … std::equal_to<MoveOnly>, test_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 55 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 56 … std::equal_to<MoveOnly>, other_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 60 typedef std::unordered_multimap<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main() 64 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 65 some_comp<MoveOnly>> C; in main()
|
/external/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/ |
D | move_noexcept.pass.cpp | 43 typedef std::unordered_map<MoveOnly, MoveOnly> C; in main() 47 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 48 … std::equal_to<MoveOnly>, test_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 52 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 53 … std::equal_to<MoveOnly>, other_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 57 typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main() 61 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 62 some_comp<MoveOnly>> C; in main()
|
D | default_noexcept.pass.cpp | 47 typedef std::unordered_map<MoveOnly, MoveOnly> C; in main() 51 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 52 … std::equal_to<MoveOnly>, test_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 56 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 57 … std::equal_to<MoveOnly>, other_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 61 typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main() 65 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 66 some_comp<MoveOnly>> C; in main()
|
D | move_assign_noexcept.pass.cpp | 46 typedef std::unordered_map<MoveOnly, MoveOnly> C; in main() 50 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 51 … std::equal_to<MoveOnly>, test_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 55 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 56 … std::equal_to<MoveOnly>, other_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 60 typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main() 64 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 65 some_comp<MoveOnly>> C; in main()
|
D | dtor_noexcept.pass.cpp | 44 typedef std::unordered_map<MoveOnly, MoveOnly> C; in main() 48 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 49 … std::equal_to<MoveOnly>, test_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 53 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 54 … std::equal_to<MoveOnly>, other_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 58 typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main() 62 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 63 some_comp<MoveOnly>> C; in main()
|
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/ |
D | swap_noexcept.pass.cpp | 45 typedef std::unordered_multimap<MoveOnly, MoveOnly> C; in main() 50 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 51 … std::equal_to<MoveOnly>, test_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 56 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 57 … std::equal_to<MoveOnly>, other_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 62 typedef std::unordered_multimap<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main() 67 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 68 some_comp<MoveOnly>> C; in main()
|
/external/libcxx/test/std/containers/unord/unord.map/unord.map.swap/ |
D | swap_noexcept.pass.cpp | 45 typedef std::unordered_map<MoveOnly, MoveOnly> C; in main() 50 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 51 … std::equal_to<MoveOnly>, test_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 56 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 57 … std::equal_to<MoveOnly>, other_allocator<std::pair<const MoveOnly, MoveOnly>>> C; in main() 62 typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main() 67 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main() 68 some_comp<MoveOnly>> C; in main()
|
/external/libcxx/test/std/containers/sequences/deque/deque.cons/ |
D | move_alloc.pass.cpp | 27 typedef test_allocator<MoveOnly> A; in main() 28 std::deque<MoveOnly, A> c1(A(1)); in main() 30 c1.push_back(MoveOnly(*p)); in main() 31 std::deque<MoveOnly, A> c2(A(1)); in main() 33 c2.push_back(MoveOnly(*p)); in main() 34 std::deque<MoveOnly, A> c3(std::move(c1), A(3)); in main() 42 typedef test_allocator<MoveOnly> A; in main() 43 std::deque<MoveOnly, A> c1(A(1)); in main() 45 c1.push_back(MoveOnly(*p)); in main() 46 std::deque<MoveOnly, A> c2(A(1)); in main() [all …]
|
D | move_assign.pass.cpp | 27 typedef test_allocator<MoveOnly> A; in main() 28 std::deque<MoveOnly, A> c1(A(5)); in main() 30 c1.push_back(MoveOnly(*p)); in main() 31 std::deque<MoveOnly, A> c2(A(5)); in main() 33 c2.push_back(MoveOnly(*p)); in main() 34 std::deque<MoveOnly, A> c3(A(5)); in main() 43 typedef test_allocator<MoveOnly> A; in main() 44 std::deque<MoveOnly, A> c1(A(5)); in main() 46 c1.push_back(MoveOnly(*p)); in main() 47 std::deque<MoveOnly, A> c2(A(5)); in main() [all …]
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.swap/ |
D | member_swap.pass.cpp | 32 typedef std::tuple<MoveOnly> T; in main() 33 T t0(MoveOnly(0)); in main() 34 T t1(MoveOnly(1)); in main() 40 typedef std::tuple<MoveOnly, MoveOnly> T; in main() 41 T t0(MoveOnly(0), MoveOnly(1)); in main() 42 T t1(MoveOnly(2), MoveOnly(3)); in main() 50 typedef std::tuple<MoveOnly, MoveOnly, MoveOnly> T; in main() 51 T t0(MoveOnly(0), MoveOnly(1), MoveOnly(2)); in main() 52 T t1(MoveOnly(3), MoveOnly(4), MoveOnly(5)); in main()
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.special/ |
D | non_member_swap.pass.cpp | 33 typedef std::tuple<MoveOnly> T; in main() 34 T t0(MoveOnly(0)); in main() 35 T t1(MoveOnly(1)); in main() 41 typedef std::tuple<MoveOnly, MoveOnly> T; in main() 42 T t0(MoveOnly(0), MoveOnly(1)); in main() 43 T t1(MoveOnly(2), MoveOnly(3)); in main() 51 typedef std::tuple<MoveOnly, MoveOnly, MoveOnly> T; in main() 52 T t0(MoveOnly(0), MoveOnly(1), MoveOnly(2)); in main() 53 T t1(MoveOnly(3), MoveOnly(4), MoveOnly(5)); in main()
|
/external/libcxx/test/support/ |
D | MoveOnly.h | 18 class MoveOnly 20 MoveOnly(const MoveOnly&); 21 MoveOnly& operator=(const MoveOnly&); 25 MoveOnly(int data = 1) : data_(data) {} in data_() 26 MoveOnly(MoveOnly&& x) in MoveOnly() function 28 MoveOnly& operator=(MoveOnly&& x) 33 bool operator==(const MoveOnly& x) const {return data_ == x.data_;} 34 bool operator< (const MoveOnly& x) const {return data_ < x.data_;} 40 struct hash<MoveOnly> 41 : public std::unary_function<MoveOnly, std::size_t> [all …]
|