Home
last modified time | relevance | path

Searched defs:MoveOnly (Results 1 – 25 of 100) sorted by relevance

1234

/aosp_15_r20/external/llvm/unittests/ADT/
H A DOptionalTest.cpp218 struct MoveOnly { struct
219 static unsigned MoveConstructions;
220 static unsigned Destructions;
221 static unsigned MoveAssignments;
222 int val;
223 explicit MoveOnly(int val) : val(val) { in MoveOnly() argument
225 MoveOnly(MoveOnly&& other) { in MoveOnly() function
229 MoveOnly &operator=(MoveOnly&& other) { in operator =()
234 ~MoveOnly() { in ~MoveOnly()
237 static void ResetCounts() { in ResetCounts()
H A DStringMapTest.cpp292 struct MoveOnly { struct
293 int i;
294 MoveOnly(int i) : i(i) {} in MoveOnly() argument
295 MoveOnly(const Immovable&) : i(0) {} in MoveOnly() argument
296 MoveOnly(MoveOnly &&RHS) : i(RHS.i) {} in MoveOnly() argument
297 MoveOnly &operator=(MoveOnly &&RHS) { in operator =()
307 TEST_F(StringMapTest, MoveOnly) { in TEST_F() argument
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/optional/test/
Doptional_test_make_optional.cpp35 struct MoveOnly struct
38 explicit MoveOnly(int i) : value(i) {} in MoveOnly() argument
39 MoveOnly(MoveOnly && r) : value(r.value) { r.value = 0; } in MoveOnly() function
40 MoveOnly& operator=(MoveOnly && r) { value = r.value; r.value = 0; return *this; } in operator =() argument
Doptional_test_map.cpp35 struct MoveOnly struct
38 explicit MoveOnly(int i) : value(i) {} in MoveOnly() function
39 MoveOnly(MoveOnly && r) : value(r.value) { r.value = 0; } in MoveOnly() function
40 MoveOnly& operator=(MoveOnly && r) { value = r.value; r.value = 0; return *this; } in operator =() argument
Doptional_test_flat_map.cpp212 struct MoveOnly struct
215 explicit MoveOnly(int i) : value(i) {} in MoveOnly() argument
216 MoveOnly(MoveOnly && r) : value(r.value) { r.value = 0; } in MoveOnly() function
217 MoveOnly& operator=(MoveOnly && r) { value = r.value; r.value = 0; return *this; } in operator =() argument
Doptional_test_value_access.cpp179 struct MoveOnly struct
181 explicit MoveOnly(int){} in MoveOnly() argument
182 MoveOnly(MoveOnly &&){} in MoveOnly() argument
Doptional_test_old_impl.cpp180 struct MoveOnly struct
182 explicit MoveOnly(int){} in MoveOnly() function
183 MoveOnly(MoveOnly &&){} in MoveOnly() function
Doptional_test_fail_copying_a_moveable_type.cpp14 class MoveOnly class
18 MoveOnly(int v) : val(v) {} in MoveOnly() function in MoveOnly
19 MoveOnly(MoveOnly&& rhs) : val(rhs.val) { rhs.val = 0; } in MoveOnly() function in MoveOnly
/aosp_15_r20/external/pigweed/pw_containers/pw_containers_private/
H A Dtest_helpers.h33 struct MoveOnly { struct
34 explicit MoveOnly(int val) : value(val) {} in MoveOnly() argument
38 MoveOnly(MoveOnly&& other) { in MoveOnly() argument
43 static constexpr int kDeleted = -1138;
45 int value;
/aosp_15_r20/external/libcxx/test/std/utilities/utility/utility.swap/
H A Dswap.pass.cpp30 struct MoveOnly { struct
31 MoveOnly() {} in MoveOnly() argument
32 MoveOnly(MoveOnly&&) {} in MoveOnly() argument
33 MoveOnly& operator=(MoveOnly&&) noexcept { return *this; } in operator =() argument
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/utilities/utility/utility.swap/
H A Dswap.pass.cpp30 struct MoveOnly { struct
31 MoveOnly() {} in MoveOnly() function
32 MoveOnly(MoveOnly&&) {} in MoveOnly() function
33 MoveOnly& operator=(MoveOnly&&) noexcept { return *this; } in operator =() argument
/aosp_15_r20/external/libcxx/test/std/thread/thread.mutex/thread.once/thread.once.callonce/
H A Dcall_once.pass.cpp140 class MoveOnly class
145 MoveOnly(const MoveOnly&) in MoveOnly() argument
152 MoveOnly() {} in MoveOnly() function in MoveOnly
153 MoveOnly(MoveOnly&&) {} in MoveOnly() argument
155 void operator()(MoveOnly&&) in operator ()() argument
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/thread/thread.mutex/thread.once/thread.once.callonce/
H A Dcall_once.pass.cpp140 class MoveOnly class
145 MoveOnly(const MoveOnly&) in MoveOnly() function in MoveOnly
152 MoveOnly() {} in MoveOnly() function in MoveOnly
153 MoveOnly(MoveOnly&&) {} in MoveOnly() argument
155 void operator()(MoveOnly&&) in operator ()() argument
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/thread/test/threads/thread/constr/
DFrvalueArgs_pass.cpp28 class MoveOnly class
32 MoveOnly() in MoveOnly() function in MoveOnly
35 MoveOnly(BOOST_THREAD_RV_REF(MoveOnly)) in MoveOnly() function in MoveOnly
38 void operator()(BOOST_THREAD_RV_REF(MoveOnly)) in operator ()()
DFrvalue_pass.cpp29 class MoveOnly class
33 MoveOnly() in MoveOnly() function in MoveOnly
36 MoveOnly(BOOST_THREAD_RV_REF(MoveOnly)) in MoveOnly() function in MoveOnly
/aosp_15_r20/external/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/
H A DF.pass.cpp89 class MoveOnly class
93 MoveOnly() {} in MoveOnly() function in MoveOnly
94 MoveOnly(MoveOnly&&) {} in MoveOnly() function in MoveOnly
96 void operator()(MoveOnly&&) in operator ()() argument
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/
H A DF.pass.cpp94 class MoveOnly class
98 MoveOnly() {} in MoveOnly() function in MoveOnly
99 MoveOnly(MoveOnly&&) {} in MoveOnly() function in MoveOnly
101 void operator()(MoveOnly&&) in operator ()() argument
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/thread/test/sync/futures/async/
Dasync_executor_pass.cpp63 class MoveOnly class
71 MoveOnly() in MoveOnly() function in MoveOnly
75 MoveOnly( BOOST_THREAD_RV_REF(MoveOnly)) in MoveOnly() function in MoveOnly
79 MoveOnly& operator=(BOOST_THREAD_RV_REF(MoveOnly)) in operator =()
/aosp_15_r20/external/pigweed/pw_containers/
H A Dto_array_test.cc42 struct MoveOnly { struct
43 MoveOnly(char ch) : value(ch) {} in MoveOnly() function
51 char value;
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/thread/test/sync/mutual_exclusion/once/call_once/
Dcall_once_pass.cpp170 class MoveOnly class
176 MoveOnly() in MoveOnly() function in MoveOnly
179 MoveOnly(BOOST_THREAD_RV_REF(MoveOnly)) in MoveOnly() function in MoveOnly
182 void operator()(BOOST_THREAD_RV_REF(MoveOnly)) in operator ()()
/aosp_15_r20/external/libcxx/test/std/utilities/function.objects/refwrap/
H A Dtype_properties.pass.cpp27 class MoveOnly class
34 MoveOnly(int data = 1) : data_(data) {} in MoveOnly() function in MoveOnly
35 MoveOnly(MoveOnly&& x) in MoveOnly() function in MoveOnly
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/utilities/function.objects/refwrap/
H A Dtype_properties.pass.cpp23 class MoveOnly class
30 MoveOnly(int data = 1) : data_(data) {} in MoveOnly() function in MoveOnly
31 MoveOnly(MoveOnly&& x) in MoveOnly() function in MoveOnly
/aosp_15_r20/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
H A DUTypes.fail.cpp27 class MoveOnly class
34 explicit MoveOnly(int data = 1) : data_(data) {} in MoveOnly() function in MoveOnly
35 MoveOnly(MoveOnly&& x) in MoveOnly() function in MoveOnly
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
H A DUTypes.compile.fail.cpp26 class MoveOnly class
33 explicit MoveOnly(int data = 1) : data_(data) {} in MoveOnly() function in MoveOnly
34 MoveOnly(MoveOnly&& x) in MoveOnly() function in MoveOnly
/aosp_15_r20/external/openscreen/third_party/abseil/src/absl/memory/
H A Dmemory_test.cc112 struct MoveOnly { struct
114 explicit MoveOnly(int i1) : ip1{new int{i1}} {} in MoveOnly() function
115 MoveOnly(int i1, int i2) : ip1{new int{i1}}, ip2{new int{i2}} {} in MoveOnly() argument
116 std::unique_ptr<int> ip1;
117 std::unique_ptr<int> ip2;

1234