/external/tensorflow/tensorflow/core/lib/gtl/ |
H A D | inlined_vector_test.cc | 249 struct MoveOnly { struct in namespace:tensorflow 250 MoveOnly() {} function in struct:tensorflow::MoveOnly 251 MoveOnly(MoveOnly&&) = default; 252 MoveOnly& operator=(MoveOnly&&) = default; 266 TEST(InlinedVectorTest, MoveOnly) { 267 gtl::InlinedVector<MoveOnly, 2> v; 268 v.push_back(MoveOnly{}); 269 v.push_back(MoveOnly{}); [all...] |
/external/llvm/unittests/ADT/ |
H A D | OptionalTest.cpp | 218 struct MoveOnly { struct in namespace:__anon14934 223 explicit MoveOnly(int val) : val(val) { function in struct:__anon14934::MoveOnly 225 MoveOnly(MoveOnly&& other) { function in struct:__anon14934::MoveOnly 229 MoveOnly &operator=(MoveOnly&& other) { 234 ~MoveOnly() { 244 unsigned MoveOnly::MoveConstructions = 0; 245 unsigned MoveOnly::Destructions = 0; 246 unsigned MoveOnly [all...] |
H A D | StringMapTest.cpp | 292 struct MoveOnly { struct in namespace:__anon14950 294 MoveOnly(int i) : i(i) {} function in struct:__anon14950::MoveOnly 295 MoveOnly(const Immovable&) : i(0) {} function in struct:__anon14950::MoveOnly 296 MoveOnly(MoveOnly &&RHS) : i(RHS.i) {} function in struct:__anon14950::MoveOnly 297 MoveOnly &operator=(MoveOnly &&RHS) { 303 MoveOnly(const MoveOnly &) = delete; 304 MoveOnly [all...] |
/external/libcxx/test/std/thread/thread.mutex/thread.once/thread.once.callonce/ |
H A D | call_once.pass.cpp | 140 class MoveOnly class 145 MoveOnly(const MoveOnly&) argument 149 MoveOnly(const MoveOnly&); 152 MoveOnly() {} function in class:MoveOnly 153 MoveOnly(MoveOnly&&) {} function in class:MoveOnly 155 void operator()(MoveOnly&&) 239 std::call_once(f, MoveOnly(), MoveOnl [all...] |
/external/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/ |
H A D | F.pass.cpp | 89 class MoveOnly class 91 MoveOnly(const MoveOnly&); 93 MoveOnly() {} function in class:MoveOnly 94 MoveOnly(MoveOnly&&) {} function in class:MoveOnly 96 void operator()(MoveOnly&&) 194 std::thread t = std::thread(MoveOnly(), MoveOnly());
|
/external/libcxx/test/std/utilities/function.objects/refwrap/ |
H A D | type_properties.pass.cpp | 27 class MoveOnly class 29 MoveOnly(const MoveOnly&); 30 MoveOnly& operator=(const MoveOnly&); 34 MoveOnly(int data = 1) : data_(data) {} function in class:MoveOnly 35 MoveOnly(MoveOnly&& x) function in class:MoveOnly 37 MoveOnly& operator=(MoveOnly [all...] |
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
H A D | UTypes.fail.cpp | 27 class MoveOnly class 29 MoveOnly(const MoveOnly&); 30 MoveOnly& operator=(const MoveOnly&); 34 explicit MoveOnly(int data = 1) : data_(data) {} function in class:MoveOnly 35 MoveOnly(MoveOnly&& x) function in class:MoveOnly 37 MoveOnly& operator=(MoveOnly [all...] |
/external/libcxx/test/std/utilities/utility/utility.swap/ |
H A D | swap.pass.cpp | 30 struct MoveOnly { struct 31 MoveOnly() {} function in struct:MoveOnly 32 MoveOnly(MoveOnly&&) {} function in struct:MoveOnly 33 MoveOnly& operator=(MoveOnly&&) noexcept { return *this; } 89 static_assert(can_swap<MoveOnly&>(), ""); 96 MoveOnly m;
|
/external/libcxx/test/std/utilities/variant/variant.variant/variant.assign/ |
H A D | copy.pass.cpp | 49 struct MoveOnly { struct 50 MoveOnly(const MoveOnly &) = delete; 51 MoveOnly(MoveOnly &&) = default; 52 MoveOnly &operator=(const MoveOnly &) = default; 234 using V = std::variant<int, MoveOnly>;
|
H A D | move.pass.cpp | 51 struct MoveOnly { struct 52 MoveOnly(const MoveOnly &) = delete; 53 MoveOnly(MoveOnly &&) = default; 54 MoveOnly &operator=(const MoveOnly &) = delete; 55 MoveOnly &operator=(MoveOnly &&) = default; 158 using V = std::variant<MoveOnly>; [all...] |
/external/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/ |
H A D | copy.pass.cpp | 44 struct MoveOnly { struct 45 MoveOnly(const MoveOnly &) = delete; 46 MoveOnly(MoveOnly &&) = default; 120 using V = std::variant<int, MoveOnly>;
|
H A D | move.pass.cpp | 42 struct MoveOnly { struct 44 MoveOnly(int v) : value(v) {} function in struct:MoveOnly 45 MoveOnly(const MoveOnly &) = delete; 46 MoveOnly(MoveOnly &&) = default; 118 using V = std::variant<int, MoveOnly>; 137 using V = std::variant<int, MoveOnly>; 186 std::variant<MoveOnly> v(std::in_place_index<0>, 42); 188 std::variant<MoveOnly> v [all...] |
/external/libcxx/test/support/ |
H A D | MoveOnly.h | 20 class MoveOnly class 22 MoveOnly(const MoveOnly&); 23 MoveOnly& operator=(const MoveOnly&); 27 MoveOnly(int data = 1) : data_(data) {} function in class:MoveOnly 28 MoveOnly(MoveOnly&& x) function in class:MoveOnly 30 MoveOnly& operator=(MoveOnly [all...] |
/external/libchrome/base/ |
H A D | callback_forward.h | 12 // MoveOnly indicates the Callback is not copyable but movable, and Copyable 15 MoveOnly, member in class:base::internal::CopyMode 37 internal::CopyMode::MoveOnly,
|
/external/clang/test/SemaCXX/ |
H A D | rval-references.cpp | 73 struct MoveOnly { struct 74 MoveOnly(); 75 MoveOnly(const MoveOnly&) = delete; // expected-note 3{{explicitly marked deleted here}} 78 MoveOnly gmo; 79 MoveOnly returningNonEligible() { 80 static MoveOnly mo; 81 MoveOnly &r = mo;
|
/external/clang/test/CodeGenCXX/ |
H A D | microsoft-abi-structors.cpp | 437 struct MoveOnly { struct in namespace:implicit_copy_vtable 438 MoveOnly(MoveOnly &&o) = default; 439 virtual ~MoveOnly(); 441 MoveOnly &&f(); 442 void g() { new MoveOnly(f()); }
|
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/ |
H A D | p3.cpp | 118 struct MoveOnly { // expected-note {{candidate}} struct in namespace:rdar13395022 119 MoveOnly(MoveOnly&&); // expected-note 2{{copy constructor is implicitly deleted because}} expected-note {{candidate}} 122 void test(MoveOnly mo) { 124 MoveOnly (&&list2)[1] = {mo}; // expected-error {{call to implicitly-deleted copy constructor}} expected-note {{in initialization of temporary of type 'rdar13395022::MoveOnly [1]'}} 125 std::initializer_list<MoveOnly> &&list3 = {}; 126 MoveOnly (&&list4)[1] = {}; // expected-error {{no matching constructor}} 128 // expected-note@-2 {{in initialization of temporary of type 'rdar13395022::MoveOnly [1]' created to list-initialize this reference}}
|
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/ |
H A D | p19.cpp | 3 struct MoveOnly { struct 4 MoveOnly(MoveOnly&&); 5 MoveOnly(const MoveOnly&); 9 void test_special_member_functions(MoveOnly mo, int i) {
|
/external/clang/test/CXX/special/class.copy/ |
H A D | implicit-move.cpp | 231 struct MoveOnly { struct in namespace:DR1402 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}}
|