Searched defs:MoveOnly (Results 1 - 11 of 11) sorted by relevance

/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
H A Dp19.cpp3 struct MoveOnly { struct
4 MoveOnly(MoveOnly&&);
5 MoveOnly(const MoveOnly&);
9 void test_special_member_functions(MoveOnly mo, int i) {
/external/llvm/unittests/ADT/
H A DOptionalTest.cpp172 struct MoveOnly { struct in namespace:__anon26451
177 explicit MoveOnly(int val) : val(val) { function in struct:__anon26451::MoveOnly
179 MoveOnly(MoveOnly&& other) { function in struct:__anon26451::MoveOnly
183 MoveOnly &operator=(MoveOnly&& other) {
188 ~MoveOnly() {
198 unsigned MoveOnly::MoveConstructions = 0;
199 unsigned MoveOnly::Destructions = 0;
200 unsigned MoveOnly
[all...]
H A DStringMapTest.cpp259 struct MoveOnly { struct in namespace:__anon26461
261 MoveOnly(int i) : i(i) {} function in struct:__anon26461::MoveOnly
262 MoveOnly(MoveOnly &&RHS) : i(RHS.i) {} function in struct:__anon26461::MoveOnly
263 MoveOnly &operator=(MoveOnly &&RHS) {
269 MoveOnly(const MoveOnly &) LLVM_DELETED_FUNCTION;
270 MoveOnly &operator=(const MoveOnly
[all...]
/external/libcxx/test/containers/
H A DMoveOnly.h18 class MoveOnly class
20 MoveOnly(const MoveOnly&);
21 MoveOnly& operator=(const MoveOnly&);
25 MoveOnly(int data = 1) : data_(data) {} function in class:MoveOnly
26 MoveOnly(MoveOnly&& x) function in class:MoveOnly
28 MoveOnly& operator=(MoveOnly
[all...]
/external/libcxx/test/utilities/tuple/tuple.tuple/
H A DMoveOnly.h18 class MoveOnly class
20 MoveOnly(const MoveOnly&);
21 MoveOnly& operator=(const MoveOnly&);
25 MoveOnly(int data = 1) : data_(data) {} function in class:MoveOnly
26 MoveOnly(MoveOnly&& x) function in class:MoveOnly
28 MoveOnly& operator=(MoveOnly
[all...]
/external/libcxx/test/utilities/tuple/tuple.tuple/tuple.cnstr/
H A DUTypes.fail.cpp25 class MoveOnly class
27 MoveOnly(const MoveOnly&);
28 MoveOnly& operator=(const MoveOnly&);
32 explicit MoveOnly(int data = 1) : data_(data) {} function in class:MoveOnly
33 MoveOnly(MoveOnly&& x) function in class:MoveOnly
35 MoveOnly& operator=(MoveOnly
[all...]
/external/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.constr/
H A DF.pass.cpp76 class MoveOnly class
78 MoveOnly(const MoveOnly&);
80 MoveOnly() {} function in class:MoveOnly
81 MoveOnly(MoveOnly&&) {} function in class:MoveOnly
83 void operator()(MoveOnly&&)
146 std::thread t = std::thread(MoveOnly(), MoveOnly());
/external/clang/test/SemaCXX/
H A Drval-references.cpp73 struct MoveOnly { struct
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 m
[all...]
/external/libcxx/test/thread/thread.mutex/thread.once/thread.once.callonce/
H A Dcall_once.pass.cpp134 class MoveOnly class
136 MoveOnly(const MoveOnly&);
138 MoveOnly() {} function in class:MoveOnly
139 MoveOnly(MoveOnly&&) {} function in class:MoveOnly
141 void operator()(MoveOnly&&)
195 std::call_once(f, MoveOnly(), MoveOnly());
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/
H A Dp3-0x.cpp115 struct MoveOnly { struct in namespace:rdar13395022
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/
H A Dimplicit-move.cpp231 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}}

Completed in 487 milliseconds