Home
last modified time | relevance | path

Searched refs:MoveOnly (Results 1 – 25 of 423) sorted by relevance

12345678910>>...17

/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
DUTypes.pass.cpp47 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae()
51 MoveOnly in test_default_constructible_extension_sfinae()
56 MoveOnly, NoDefault in test_default_constructible_extension_sfinae()
60 typedef std::tuple<MoveOnly, MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae()
64 MoveOnly, MoveOnly in test_default_constructible_extension_sfinae()
69 MoveOnly, MoveOnly, NoDefault in test_default_constructible_extension_sfinae()
74 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae()
75 typedef std::tuple<MoveOnly, Tuple, MoveOnly, MoveOnly> NestedTuple; in test_default_constructible_extension_sfinae()
79 MoveOnly, MoveOnly, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae()
84 MoveOnly, Tuple, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae()
[all …]
/external/libcxx/test/std/containers/sequences/list/list.cons/
Dmove_alloc.pass.cpp25 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main()
26 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main()
32 … std::list<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(6)); in main()
35 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); 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(std::move(l), test_allocator<MoveOnly>(5)); in main()
48 assert(l2.get_allocator() == test_allocator<MoveOnly>(5)); in main()
51 std::list<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main()
52 std::list<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main()
[all …]
Dassign_move.pass.cpp25 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main()
26 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main()
32 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); in main()
39 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main()
40 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main()
46 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(6)); in main()
50 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
53 std::list<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main()
54 std::list<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main()
60 std::list<MoveOnly, other_allocator<MoveOnly> > l2(other_allocator<MoveOnly>(6)); in main()
[all …]
Dmove.pass.cpp25 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main()
26 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main()
32 std::list<MoveOnly, test_allocator<MoveOnly> > l2 = std::move(l); in main()
38 std::list<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main()
39 std::list<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main()
45 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/llvm-project/libcxx/test/std/containers/sequences/list/list.cons/
Dmove_alloc.pass.cpp25 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main()
26 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main()
32 … std::list<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(6)); in main()
35 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); 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(std::move(l), test_allocator<MoveOnly>(5)); in main()
48 assert(l2.get_allocator() == test_allocator<MoveOnly>(5)); in main()
51 std::list<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main()
52 std::list<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main()
[all …]
Dassign_move.pass.cpp25 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main()
26 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main()
32 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); in main()
39 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main()
40 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main()
46 std::list<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(6)); in main()
50 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
53 std::list<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main()
54 std::list<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main()
60 std::list<MoveOnly, other_allocator<MoveOnly> > l2(other_allocator<MoveOnly>(6)); in main()
[all …]
Dmove.pass.cpp25 std::list<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main()
26 std::list<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main()
32 std::list<MoveOnly, test_allocator<MoveOnly> > l2 = std::move(l); in main()
38 std::list<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main()
39 std::list<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main()
45 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/llvm-project/libcxx/test/std/containers/unord/unord.map/unord.map.swap/
Dswap_noexcept.pass.cpp124 typedef std::pair<const MoveOnly, MoveOnly> MapType; in main()
126 typedef std::unordered_map<MoveOnly, MoveOnly> C; in main()
131 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
132 std::equal_to<MoveOnly>, test_allocator<MapType>> C; in main()
136 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
137 std::equal_to<MoveOnly>, other_allocator<MapType>> C; in main()
142 typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main()
146 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
147 some_comp<MoveOnly>> C; in main()
153 …typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>, some_comp <MoveOnly>, some_all… in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/
Dswap_noexcept.pass.cpp124 typedef std::pair<const MoveOnly, MoveOnly> V; in main()
126 typedef std::unordered_multimap<MoveOnly, MoveOnly> C; in main()
131 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
132 std::equal_to<MoveOnly>, test_allocator<V>> C; in main()
136 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
137 std::equal_to<MoveOnly>, other_allocator<V>> C; in main()
142 typedef std::unordered_multimap<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main()
146 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
147 some_comp<MoveOnly>> C; in main()
153 …typedef std::unordered_multimap<MoveOnly, MoveOnly, some_hash<MoveOnly>, some_comp <MoveOnly>, som… in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.map/unord.map.swap/
Dswap_noexcept.pass.cpp125 typedef std::pair<const MoveOnly, MoveOnly> MapType; in main()
127 typedef std::unordered_map<MoveOnly, MoveOnly> C; in main()
132 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
133 std::equal_to<MoveOnly>, test_allocator<MapType>> C; in main()
137 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
138 std::equal_to<MoveOnly>, other_allocator<MapType>> C; in main()
143 typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main()
147 typedef std::unordered_map<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
148 some_comp<MoveOnly>> C; in main()
154 …typedef std::unordered_map<MoveOnly, MoveOnly, some_hash<MoveOnly>, some_comp <MoveOnly>, some_all… in main()
[all …]
/external/llvm-project/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/
Dswap_noexcept.pass.cpp123 typedef std::pair<const MoveOnly, MoveOnly> V; in main()
125 typedef std::unordered_multimap<MoveOnly, MoveOnly> C; in main()
130 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
131 std::equal_to<MoveOnly>, test_allocator<V>> C; in main()
135 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
136 std::equal_to<MoveOnly>, other_allocator<V>> C; in main()
141 typedef std::unordered_multimap<MoveOnly, MoveOnly, some_hash<MoveOnly>> C; in main()
145 typedef std::unordered_multimap<MoveOnly, MoveOnly, std::hash<MoveOnly>, in main()
146 some_comp<MoveOnly>> C; in main()
152 …typedef std::unordered_multimap<MoveOnly, MoveOnly, some_hash<MoveOnly>, some_comp <MoveOnly>, som… in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
DUTypes.pass.cpp46 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae()
50 MoveOnly in test_default_constructible_extension_sfinae()
55 MoveOnly, NoDefault in test_default_constructible_extension_sfinae()
59 typedef std::tuple<MoveOnly, MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae()
63 MoveOnly, MoveOnly in test_default_constructible_extension_sfinae()
68 MoveOnly, MoveOnly, NoDefault in test_default_constructible_extension_sfinae()
73 typedef std::tuple<MoveOnly, NoDefault> Tuple; in test_default_constructible_extension_sfinae()
74 typedef std::tuple<MoveOnly, Tuple, MoveOnly, MoveOnly> NestedTuple; in test_default_constructible_extension_sfinae()
78 MoveOnly, MoveOnly, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae()
83 MoveOnly, Tuple, MoveOnly, MoveOnly in test_default_constructible_extension_sfinae()
[all …]
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/
Dswap_noexcept.pass.cpp125 typedef std::unordered_set<MoveOnly> C; in main()
130 typedef std::unordered_set<MoveOnly, std::hash<MoveOnly>, in main()
131 std::equal_to<MoveOnly>, test_allocator<MoveOnly>> C; in main()
135 typedef std::unordered_set<MoveOnly, std::hash<MoveOnly>, in main()
136 std::equal_to<MoveOnly>, other_allocator<MoveOnly>> C; in main()
141 typedef std::unordered_set<MoveOnly, some_hash<MoveOnly>> C; in main()
145 typedef std::unordered_set<MoveOnly, std::hash<MoveOnly>, in main()
146 some_comp<MoveOnly>> C; in main()
152 …typedef std::unordered_set<MoveOnly, some_hash<MoveOnly>, some_comp <MoveOnly>, some_alloc <MoveOn… in main()
156 …typedef std::unordered_set<MoveOnly, some_hash<MoveOnly>, some_comp <MoveOnly>, some_alloc2<MoveOn… in main()
[all …]
/external/llvm-project/libcxx/test/std/containers/unord/unord.set/unord.set.swap/
Dswap_noexcept.pass.cpp124 typedef std::unordered_set<MoveOnly> C; in main()
129 typedef std::unordered_set<MoveOnly, std::hash<MoveOnly>, in main()
130 std::equal_to<MoveOnly>, test_allocator<MoveOnly>> C; in main()
134 typedef std::unordered_set<MoveOnly, std::hash<MoveOnly>, in main()
135 std::equal_to<MoveOnly>, other_allocator<MoveOnly>> C; in main()
140 typedef std::unordered_set<MoveOnly, some_hash<MoveOnly>> C; in main()
144 typedef std::unordered_set<MoveOnly, std::hash<MoveOnly>, in main()
145 some_comp<MoveOnly>> C; in main()
151 …typedef std::unordered_set<MoveOnly, some_hash<MoveOnly>, some_comp <MoveOnly>, some_alloc <MoveOn… in main()
155 …typedef std::unordered_set<MoveOnly, some_hash<MoveOnly>, some_comp <MoveOnly>, some_alloc2<MoveOn… in main()
[all …]
/external/llvm-project/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/
Dswap_noexcept.pass.cpp124 typedef std::unordered_multiset<MoveOnly> C; in main()
129 typedef std::unordered_multiset<MoveOnly, std::hash<MoveOnly>, in main()
130 std::equal_to<MoveOnly>, test_allocator<MoveOnly>> C; in main()
134 typedef std::unordered_multiset<MoveOnly, std::hash<MoveOnly>, in main()
135 std::equal_to<MoveOnly>, other_allocator<MoveOnly>> C; in main()
140 typedef std::unordered_multiset<MoveOnly, some_hash<MoveOnly>> C; in main()
144 typedef std::unordered_multiset<MoveOnly, std::hash<MoveOnly>, in main()
145 some_comp<MoveOnly>> C; in main()
151 …typedef std::unordered_multiset<MoveOnly, some_hash<MoveOnly>, some_comp <MoveOnly>, some_alloc <M… in main()
155 …typedef std::unordered_multiset<MoveOnly, some_hash<MoveOnly>, some_comp <MoveOnly>, some_alloc2<M… in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/
Dswap_noexcept.pass.cpp125 typedef std::unordered_multiset<MoveOnly> C; in main()
130 typedef std::unordered_multiset<MoveOnly, std::hash<MoveOnly>, in main()
131 std::equal_to<MoveOnly>, test_allocator<MoveOnly>> C; in main()
135 typedef std::unordered_multiset<MoveOnly, std::hash<MoveOnly>, in main()
136 std::equal_to<MoveOnly>, other_allocator<MoveOnly>> C; in main()
141 typedef std::unordered_multiset<MoveOnly, some_hash<MoveOnly>> C; in main()
145 typedef std::unordered_multiset<MoveOnly, std::hash<MoveOnly>, in main()
146 some_comp<MoveOnly>> C; in main()
152 …typedef std::unordered_multiset<MoveOnly, some_hash<MoveOnly>, some_comp <MoveOnly>, some_alloc <M… in main()
156 …typedef std::unordered_multiset<MoveOnly, some_hash<MoveOnly>, some_comp <MoveOnly>, some_alloc2<M… in main()
[all …]
/external/llvm-project/libcxx/test/std/containers/sequences/vector/vector.cons/
Dmove_alloc.pass.cpp26 std::vector<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main()
27 std::vector<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main()
37 … std::vector<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(6)); in main()
40 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
44 std::vector<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main()
45 std::vector<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main()
55 … std::vector<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(5)); in main()
58 assert(l2.get_allocator() == test_allocator<MoveOnly>(5)); in main()
62 std::vector<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main()
63 std::vector<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main()
[all …]
Dassign_move.pass.cpp26 std::vector<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main()
27 std::vector<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main()
35 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); 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(test_allocator<MoveOnly>(6)); in main()
58 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
62 std::vector<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main()
63 std::vector<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main()
73 std::vector<MoveOnly, other_allocator<MoveOnly> > l2(other_allocator<MoveOnly>(6)); in main()
[all …]
/external/libcxx/test/std/containers/sequences/vector/vector.cons/
Dmove_alloc.pass.cpp26 std::vector<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main()
27 std::vector<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main()
37 … std::vector<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(6)); in main()
40 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
44 std::vector<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main()
45 std::vector<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main()
55 … std::vector<MoveOnly, test_allocator<MoveOnly> > l2(std::move(l), test_allocator<MoveOnly>(5)); in main()
58 assert(l2.get_allocator() == test_allocator<MoveOnly>(5)); in main()
62 std::vector<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main()
63 std::vector<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main()
[all …]
Dassign_move.pass.cpp26 std::vector<MoveOnly, test_allocator<MoveOnly> > l(test_allocator<MoveOnly>(5)); in main()
27 std::vector<MoveOnly, test_allocator<MoveOnly> > lo(test_allocator<MoveOnly>(5)); in main()
35 std::vector<MoveOnly, test_allocator<MoveOnly> > l2(test_allocator<MoveOnly>(5)); 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(test_allocator<MoveOnly>(6)); in main()
58 assert(l2.get_allocator() == test_allocator<MoveOnly>(6)); in main()
62 std::vector<MoveOnly, other_allocator<MoveOnly> > l(other_allocator<MoveOnly>(5)); in main()
63 std::vector<MoveOnly, other_allocator<MoveOnly> > lo(other_allocator<MoveOnly>(5)); in main()
73 std::vector<MoveOnly, other_allocator<MoveOnly> > l2(other_allocator<MoveOnly>(6)); in main()
[all …]
/external/llvm/unittests/ADT/
DOptionalTest.cpp218 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/support/
DMoveOnly.h20 class MoveOnly
22 MoveOnly(const MoveOnly&);
23 MoveOnly& operator=(const MoveOnly&);
27 MoveOnly(int data = 1) : data_(data) {} in data_()
28 MoveOnly(MoveOnly&& x) in MoveOnly() function
30 MoveOnly& operator=(MoveOnly&& x)
35 bool operator==(const MoveOnly& x) const {return data_ == x.data_;}
36 bool operator< (const MoveOnly& x) const {return data_ < x.data_;}
37 MoveOnly operator+(const MoveOnly& x) const { return MoveOnly{data_ + x.data_}; }
38 MoveOnly operator*(const MoveOnly& x) const { return MoveOnly{data_ * x.data_}; }
[all …]
/external/llvm-project/libcxx/test/support/
DMoveOnly.h19 class MoveOnly
21 MoveOnly(const MoveOnly&);
22 MoveOnly& operator=(const MoveOnly&);
26 constexpr MoveOnly(int data = 1) : data_(data) {} in data_()
27 TEST_CONSTEXPR_CXX14 MoveOnly(MoveOnly&& x) in MoveOnly() function
29 TEST_CONSTEXPR_CXX14 MoveOnly& operator=(MoveOnly&& x)
34 constexpr bool operator==(const MoveOnly& x) const {return data_ == x.data_;}
35 constexpr bool operator< (const MoveOnly& x) const {return data_ < x.data_;}
36 TEST_CONSTEXPR_CXX14 MoveOnly operator+(const MoveOnly& x) const
37 { return MoveOnly{data_ + x.data_}; }
[all …]
/external/libcxx/test/std/containers/sequences/vector/vector.modifiers/
Dpush_back_rvalue.pass.cpp27 std::vector<MoveOnly> c; in main()
28 c.push_back(MoveOnly(0)); in main()
32 assert(c[j] == MoveOnly(j)); in main()
33 c.push_back(MoveOnly(1)); in main()
37 assert(c[j] == MoveOnly(j)); in main()
38 c.push_back(MoveOnly(2)); in main()
42 assert(c[j] == MoveOnly(j)); in main()
43 c.push_back(MoveOnly(3)); in main()
47 assert(c[j] == MoveOnly(j)); in main()
48 c.push_back(MoveOnly(4)); in main()
[all …]
/external/llvm-project/libcxx/test/std/containers/sequences/vector/vector.modifiers/
Dpush_back_rvalue.pass.cpp27 std::vector<MoveOnly> c; in main()
28 c.push_back(MoveOnly(0)); in main()
32 assert(c[j] == MoveOnly(j)); in main()
33 c.push_back(MoveOnly(1)); in main()
37 assert(c[j] == MoveOnly(j)); in main()
38 c.push_back(MoveOnly(2)); in main()
42 assert(c[j] == MoveOnly(j)); in main()
43 c.push_back(MoveOnly(3)); in main()
47 assert(c[j] == MoveOnly(j)); in main()
48 c.push_back(MoveOnly(4)); in main()
[all …]

12345678910>>...17