Home
last modified time | relevance | path

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

12

/third_party/boost/libs/hana/test/pair/
Dmake.cpp13 struct MoveOnly { struct
15 MoveOnly(MoveOnly const&) = delete; argument
17 MoveOnly(int data) : data_(data) { } in MoveOnly() function
18 MoveOnly(MoveOnly&& x) : data_(x.data_) { x.data_ = 0; } in MoveOnly() argument
20 MoveOnly& operator=(MoveOnly&& x) in operator =() argument
23 bool operator==(const MoveOnly& x) const { return data_ == x.data_; } in operator ==() argument
Dassign.move.cpp15 struct MoveOnly { struct
17 MoveOnly(MoveOnly const&) = delete; argument
19 MoveOnly(int data = 1) : data_(data) { } in MoveOnly() argument
20 MoveOnly(MoveOnly&& x) : data_(x.data_) { x.data_ = 0; } in MoveOnly() function
22 MoveOnly& operator=(MoveOnly&& x) in operator =() argument
25 bool operator==(const MoveOnly& x) const { return data_ == x.data_; } in operator ==() argument
Dcnstr.memberwise.cpp12 struct MoveOnly { struct
14 MoveOnly(MoveOnly const&) = delete; argument
16 MoveOnly(int data) : data_(data) { } in MoveOnly() argument
17 MoveOnly(MoveOnly&& x) : data_(x.data_) { x.data_ = 0; } in MoveOnly() argument
19 MoveOnly& operator=(MoveOnly&& x) in operator =() argument
22 bool operator==(const MoveOnly& x) const { return data_ == x.data_; } in operator ==() argument
Dcnstr.move.cpp15 struct MoveOnly { struct
17 MoveOnly(MoveOnly const&) = delete; argument
19 MoveOnly(int data) : data_(data) { } in MoveOnly() argument
20 MoveOnly(MoveOnly&& x) : data_(x.data_) { x.data_ = 0; } in MoveOnly() argument
22 MoveOnly& operator=(MoveOnly&& x) in operator =() argument
25 bool operator==(const MoveOnly& x) const { return data_ == x.data_; } in operator ==() argument
/third_party/boost/libs/hana/test/tuple/
Dcnstr.move.cpp13 struct MoveOnly { struct
15 MoveOnly(MoveOnly const&) = delete; argument
17 MoveOnly(int data = 1) : data_(data) { } in MoveOnly() function
18 MoveOnly(MoveOnly&& x) : data_(x.data_) { x.data_ = 0; } in MoveOnly() function
20 MoveOnly& operator=(MoveOnly&& x) in operator =() argument
24 bool operator==(const MoveOnly& x) const { return data_ == x.data_; } in operator ==() argument
25 bool operator< (const MoveOnly& x) const { return data_ < x.data_; } in operator <() argument
Dassign.move.cpp12 struct MoveOnly { struct
14 MoveOnly(MoveOnly const&) = delete; argument
16 MoveOnly(int data = 1) : data_(data) { } in MoveOnly() function
17 MoveOnly(MoveOnly&& x) : data_(x.data_) { x.data_ = 0; } in MoveOnly() argument
19 MoveOnly& operator=(MoveOnly&& x) in operator =() argument
23 bool operator==(const MoveOnly& x) const { return data_ == x.data_; } in operator ==() argument
24 bool operator< (const MoveOnly& x) const { return data_ < x.data_; } in operator <() argument
Dcnstr.variadic_forward.cpp12 struct MoveOnly { struct
14 MoveOnly(MoveOnly const&) = delete; argument
16 MoveOnly(int data = 1) : data_(data) { } in MoveOnly() argument
17 MoveOnly(MoveOnly&& x) : data_(x.data_) { x.data_ = 0; } in MoveOnly() argument
19 MoveOnly& operator=(MoveOnly&& x) in operator =() argument
23 bool operator==(const MoveOnly& x) const { return data_ == x.data_; } in operator ==() argument
24 bool operator< (const MoveOnly& x) const { return data_ < x.data_; } in operator <() argument
Dmove_only.cpp16 struct MoveOnly { struct
/third_party/boost/libs/hana/test/map/
Dassign.move.cpp18 struct MoveOnly { struct
20 MoveOnly(MoveOnly const&) = delete; argument
22 MoveOnly(int data = 1) : data_(data) { } in MoveOnly() function
23 MoveOnly(MoveOnly&& x) : data_(x.data_) { x.data_ = 0; } in MoveOnly() function
25 MoveOnly& operator=(MoveOnly&& x) in operator =() argument
29 bool operator==(const MoveOnly& x) const { return data_ == x.data_; } in operator ==() argument
30 bool operator< (const MoveOnly& x) const { return data_ < x.data_; } in operator <() argument
/third_party/boost/libs/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_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
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_value_access.cpp179 struct MoveOnly struct
181 explicit MoveOnly(int){} in MoveOnly() argument
182 MoveOnly(MoveOnly &&){} in MoveOnly() function
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() argument
217 MoveOnly& operator=(MoveOnly && r) { value = r.value; r.value = 0; return *this; } in operator =() argument
Doptional_test_old_impl.cpp180 struct MoveOnly struct
182 explicit MoveOnly(int){} in MoveOnly() function
183 MoveOnly(MoveOnly &&){} in MoveOnly() argument
/third_party/boost/libs/thread/test/threads/thread/constr/
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
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 ()()
/third_party/boost/libs/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 =()
Dasync_pass.cpp66 class MoveOnly class
74 MoveOnly() in MoveOnly() function in MoveOnly
78 MoveOnly( BOOST_THREAD_RV_REF(MoveOnly)) in MoveOnly() function in MoveOnly
82 MoveOnly& operator=(BOOST_THREAD_RV_REF(MoveOnly)) in operator =()
/third_party/boost/libs/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 ()()
/third_party/boost/libs/hana/test/concept/struct/
Dmembers.cpp17 struct MoveOnly { struct
Dfold_right.cpp21 struct MoveOnly { struct
Dfold_left.cpp21 struct MoveOnly { struct
/third_party/boost/libs/hana/test/functional/
Ddemux.cpp14 struct MoveOnly { struct
/third_party/skia/third_party/externals/abseil-cpp/absl/memory/
Dmemory_test.cc112 struct MoveOnly { struct
114 explicit MoveOnly(int i1) : ip1{new int{i1}} {} in MoveOnly() argument
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;

12