/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/ |
p19.cpp | 3 struct MoveOnly { 4 MoveOnly(MoveOnly&&); 5 MoveOnly(const MoveOnly&); 9 void test_special_member_functions(MoveOnly mo, int i) {
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/meta/meta.rel/ |
is_convertible.pass.cpp | 41 class MoveOnly { 42 MoveOnly(const MoveOnly &); 43 MoveOnly& operator =(const MoveOnly&); 45 MoveOnly(MoveOnly&& x); 197 // MoveOnly 198 static_assert(( std::is_convertible<MoveOnly, MoveOnly>::value), "") [all...] |
/external/libcxx/test/containers/ |
MoveOnly.h | 18 class MoveOnly 20 MoveOnly(const MoveOnly&); 21 MoveOnly& operator=(const MoveOnly&); 25 MoveOnly(int data = 1) : data_(data) {} 26 MoveOnly(MoveOnly&& x) 28 MoveOnly& operator=(MoveOnly&& x [all...] |
/external/libcxx/test/utilities/tuple/tuple.tuple/ |
MoveOnly.h | 18 class MoveOnly 20 MoveOnly(const MoveOnly&); 21 MoveOnly& operator=(const MoveOnly&); 25 MoveOnly(int data = 1) : data_(data) {} 26 MoveOnly(MoveOnly&& x) 28 MoveOnly& operator=(MoveOnly&& x [all...] |
/external/libcxx/test/utilities/tuple/tuple.tuple/tuple.cnstr/ |
UTypes.fail.cpp | 25 class MoveOnly 27 MoveOnly(const MoveOnly&); 28 MoveOnly& operator=(const MoveOnly&); 32 explicit MoveOnly(int data = 1) : data_(data) {} 33 MoveOnly(MoveOnly&& x) 35 MoveOnly& operator=(MoveOnly&& x [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/ |
MoveOnly.h | 18 class MoveOnly 20 MoveOnly(const MoveOnly&); 21 MoveOnly& operator=(const MoveOnly&); 25 MoveOnly(int data = 1) : data_(data) {} 26 MoveOnly(MoveOnly&& x) 28 MoveOnly& operator=(MoveOnly&& x [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/tuple/tuple.tuple/ |
MoveOnly.h | 18 class MoveOnly 20 MoveOnly(const MoveOnly&); 21 MoveOnly& operator=(const MoveOnly&); 25 MoveOnly(int data = 1) : data_(data) {} 26 MoveOnly(MoveOnly&& x) 28 MoveOnly& operator=(MoveOnly&& x [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/tuple/tuple.tuple/tuple.cnstr/ |
UTypes.fail.cpp | 25 class MoveOnly 27 MoveOnly(const MoveOnly&); 28 MoveOnly& operator=(const MoveOnly&); 32 explicit MoveOnly(int data = 1) : data_(data) {} 33 MoveOnly(MoveOnly&& x) 35 MoveOnly& operator=(MoveOnly&& x [all...] |
/external/llvm/unittests/ADT/ |
OptionalTest.cpp | 172 struct MoveOnly { 177 explicit MoveOnly(int val) : val(val) { 179 MoveOnly(MoveOnly&& other) { 183 MoveOnly &operator=(MoveOnly&& other) { 188 ~MoveOnly() { 198 unsigned MoveOnly::MoveConstructions = 0; 199 unsigned MoveOnly::Destructions = 0; 200 unsigned MoveOnly::MoveAssignments = 0 [all...] |
StringMapTest.cpp | 259 struct MoveOnly { 261 MoveOnly(int i) : i(i) {} 262 MoveOnly(MoveOnly &&RHS) : i(RHS.i) {} 263 MoveOnly &operator=(MoveOnly &&RHS) { 269 MoveOnly(const MoveOnly &) LLVM_DELETED_FUNCTION; 270 MoveOnly &operator=(const MoveOnly &) LLVM_DELETED_FUNCTION [all...] |
/external/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.constr/ |
F.pass.cpp | 76 class MoveOnly 78 MoveOnly(const MoveOnly&); 80 MoveOnly() {} 81 MoveOnly(MoveOnly&&) {} 83 void operator()(MoveOnly&&) 146 std::thread t = std::thread(MoveOnly(), MoveOnly());
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.constr/ |
F.pass.cpp | 76 class MoveOnly 78 MoveOnly(const MoveOnly&); 80 MoveOnly() {} 81 MoveOnly(MoveOnly&&) {} 83 void operator()(MoveOnly&&) 146 std::thread t = std::thread(MoveOnly(), MoveOnly());
|
/external/clang/test/SemaCXX/ |
rval-references.cpp | 73 struct MoveOnly { 74 MoveOnly(); 75 MoveOnly(const MoveOnly&) = delete; // expected-note {{candidate constructor}} \ 77 MoveOnly(MoveOnly&&); // expected-note {{candidate constructor}} 78 MoveOnly(int&&); // expected-note {{candidate constructor}} 81 MoveOnly gmo; 82 MoveOnly returningNonEligible() { 84 static MoveOnly mo [all...] |
/external/libcxx/test/thread/thread.mutex/thread.once/thread.once.callonce/ |
call_once.pass.cpp | 134 class MoveOnly 136 MoveOnly(const MoveOnly&); 138 MoveOnly() {} 139 MoveOnly(MoveOnly&&) {} 141 void operator()(MoveOnly&&) 195 std::call_once(f, MoveOnly(), MoveOnly());
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/thread.mutex/thread.once/thread.once.callonce/ |
call_once.pass.cpp | 134 class MoveOnly 139 MoveOnly(const MoveOnly&) 143 MoveOnly(const MoveOnly&); 146 MoveOnly() {} 147 MoveOnly(MoveOnly&&) {} 149 void operator()(MoveOnly&&) 203 std::call_once(f, MoveOnly(), MoveOnly()) [all...] |
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/ |
p3-0x.cpp | 115 struct MoveOnly { 116 MoveOnly(MoveOnly&&); 119 void test(MoveOnly mo) { 122 MoveOnly (&&list2)[1] = {mo}; // expected-error{{no viable conversion}} 123 std::initializer_list<MoveOnly> &&list3 = {}; 124 MoveOnly (&&list4)[1] = {}; // expected-error{{uninitialized}}
|
/external/clang/test/CXX/special/class.copy/ |
implicit-move.cpp | 231 struct MoveOnly { 232 MoveOnly(MoveOnly&&); // expected-note {{user-declared move}} 233 MoveOnly &operator=(MoveOnly&&); 236 template void test(MoveOnly); // ok, moves 239 MoveOnly mo; // expected-note {{deleted copy}}
|