Home
last modified time | relevance | path

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

1234

/external/libcxx/test/std/utilities/utility/utility.swap/
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
/external/llvm-project/clang/test/SemaCXX/
Dcoroutine-rvo.cpp41 struct MoveOnly { struct
42 MoveOnly() {}; in MoveOnly() argument
44 MoveOnly(MoveOnly&&) noexcept {}; in MoveOnly() function
45 ~MoveOnly() {}; in ~MoveOnly() argument
/external/llvm-project/libcxx/test/std/utilities/utility/utility.swap/
Dswap.pass.cpp29 struct MoveOnly { struct
30 MoveOnly() {} in MoveOnly() argument
31 MoveOnly(MoveOnly&&) {} in MoveOnly() function
32 MoveOnly& operator=(MoveOnly&&) noexcept { return *this; } in operator =() argument
/external/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/
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
/external/libcxx/test/std/utilities/function.objects/refwrap/
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
/external/llvm/unittests/ADT/
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() function
225 MoveOnly(MoveOnly&& other) { in MoveOnly() function
229 MoveOnly &operator=(MoveOnly&& other) { in operator =()
234 ~MoveOnly() { in ~MoveOnly()
237 static void ResetCounts() { in ResetCounts()
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() function
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
/external/llvm-project/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/
DF.pass.cpp90 class MoveOnly class
94 MoveOnly() {} in MoveOnly() function in MoveOnly
95 MoveOnly(MoveOnly&&) {} in MoveOnly() function in MoveOnly
97 void operator()(MoveOnly&&) in operator ()() argument
/external/libcxx/test/std/thread/thread.mutex/thread.once/thread.once.callonce/
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() function in MoveOnly
155 void operator()(MoveOnly&&) in operator ()() argument
/external/llvm-project/libcxx/test/std/thread/thread.mutex/thread.once/thread.once.callonce/
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
/external/llvm-project/libcxx/test/std/utilities/function.objects/refwrap/
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
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
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
/external/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
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
/external/llvm-project/llvm/unittests/ADT/
DBumpPtrListTest.cpp23 struct MoveOnly { struct
24 int V;
25 explicit MoveOnly(int V) : V(V) {} in MoveOnly() argument
27 MoveOnly(MoveOnly &&X) { V = X.V; } in MoveOnly() argument
DOptionalTest.cpp246 struct MoveOnly { struct
247 static unsigned MoveConstructions;
248 static unsigned Destructions;
249 static unsigned MoveAssignments;
250 int val;
251 explicit MoveOnly(int val) : val(val) { in MoveOnly() argument
253 MoveOnly(MoveOnly&& other) { in MoveOnly() argument
257 MoveOnly &operator=(MoveOnly&& other) { in operator =()
262 ~MoveOnly() { in ~MoveOnly()
265 static void ResetCounts() { in ResetCounts()
DStringMapTest.cpp338 struct MoveOnly { struct
339 int i;
340 MoveOnly(int i) : i(i) {} in MoveOnly() argument
341 MoveOnly(const Immovable&) : i(0) {} in MoveOnly() argument
342 MoveOnly(MoveOnly &&RHS) : i(RHS.i) {} in MoveOnly() argument
343 MoveOnly &operator=(MoveOnly &&RHS) { in operator =()
353 TEST_F(StringMapTest, MoveOnly) { in TEST_F() argument
/external/pigweed/pw_polyfill/
Dtest.cc66 struct MoveOnly { struct
67 MoveOnly(char ch) : value(ch) {} in MoveOnly() function
75 char value;
/external/llvm-project/clang/test/CodeGenCXX/
Dmicrosoft-abi-throw.cpp84 struct MoveOnly { struct
99 void throwMoveOnly() { throw MoveOnly(); } in throwMoveOnly() argument
/external/pigweed/pw_containers/
Dvector_test.cc44 struct MoveOnly { struct
45 explicit MoveOnly(int val) : value(val) {} in MoveOnly() argument
49 MoveOnly(MoveOnly&& other) { in MoveOnly() function
54 static constexpr int kDeleted = -1138;
56 int value;
/external/libcxx/test/support/
DMoveOnly.h28 MoveOnly(MoveOnly&& x) in MoveOnly() function
/external/llvm-project/libcxx/test/support/
DMoveOnly.h27 TEST_CONSTEXPR_CXX14 MoveOnly(MoveOnly&& x) in MoveOnly() function
/external/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
Dmove.pass.cpp43 struct MoveOnly { struct
45 MoveOnly(int v) : value(v) {} in MoveOnly() function
/external/llvm-project/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
Dmove.pass.cpp40 struct MoveOnly { struct
42 MoveOnly(int v) : value(v) {} in MoveOnly() argument
/external/abseil-cpp/absl/memory/
Dmemory_test.cc111 struct MoveOnly { struct
113 explicit MoveOnly(int i1) : ip1{new int{i1}} {} in MoveOnly() function
114 MoveOnly(int i1, int i2) : ip1{new int{i1}}, ip2{new int{i2}} {} in MoveOnly() function
115 std::unique_ptr<int> ip1;
116 std::unique_ptr<int> ip2;
/external/webrtc/third_party/abseil-cpp/absl/memory/
Dmemory_test.cc111 struct MoveOnly { struct
113 explicit MoveOnly(int i1) : ip1{new int{i1}} {} in MoveOnly() function
114 MoveOnly(int i1, int i2) : ip1{new int{i1}}, ip2{new int{i2}} {} in MoveOnly() argument
115 std::unique_ptr<int> ip1;
116 std::unique_ptr<int> ip2;

1234