/third_party/boost/libs/hana/test/tuple/ |
D | cnstr.variadic_forward.cpp | 12 struct MoveOnly { struct 14 MoveOnly(MoveOnly const&) = delete; argument 15 MoveOnly& operator=(MoveOnly const&) = delete; 16 MoveOnly(int data = 1) : data_(data) { } in MoveOnly() argument 17 MoveOnly(MoveOnly&& x) : data_(x.data_) { x.data_ = 0; } in MoveOnly() function 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 37 hana::tuple<MoveOnly> t(MoveOnly(0)); in main() 41 hana::tuple<MoveOnly, MoveOnly> t(MoveOnly(0), MoveOnly(1)); in main() [all …]
|
D | cnstr.move.cpp | 13 struct MoveOnly { struct 15 MoveOnly(MoveOnly const&) = delete; argument 16 MoveOnly& operator=(MoveOnly const&) = delete; 17 MoveOnly(int data = 1) : data_(data) { } in MoveOnly() argument 18 MoveOnly(MoveOnly&& x) : data_(x.data_) { x.data_ = 0; } in MoveOnly() argument 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 35 using T = hana::tuple<MoveOnly>; in main() 36 T t0(MoveOnly(0)); in main() [all …]
|
D | assign.move.cpp | 12 struct MoveOnly { struct 14 MoveOnly(MoveOnly const&) = delete; argument 15 MoveOnly& operator=(MoveOnly const&) = delete; 16 MoveOnly(int data = 1) : data_(data) { } in MoveOnly() function 17 MoveOnly(MoveOnly&& x) : data_(x.data_) { x.data_ = 0; } in MoveOnly() function 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 35 using T = hana::tuple<MoveOnly>; in main() 36 T t0(MoveOnly(0)); in main() [all …]
|
D | move_only.cpp | 16 struct MoveOnly { struct 17 MoveOnly() = default; 18 MoveOnly(MoveOnly&&) = default; 19 MoveOnly& operator=(MoveOnly&&) = default; 21 MoveOnly(MoveOnly const&) = delete; 22 MoveOnly& operator=(MoveOnly const&) = delete; 27 auto xs = hana::make_tuple(MoveOnly{}); in main() 37 auto const& xs = hana::make_tuple(MoveOnly{}); in main() 47 auto xs = hana::make_tuple(MoveOnly{}); in main()
|
/third_party/boost/libs/hana/test/map/ |
D | assign.move.cpp | 18 struct MoveOnly { struct 20 MoveOnly(MoveOnly const&) = delete; argument 21 MoveOnly& operator=(MoveOnly const&) = delete; 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 41 using Map = hana::map<hana::pair<test::ct_eq<0>, MoveOnly>>; in main() 42 Map map0 = hana::make_map(hana::make_pair(test::ct_eq<0>{}, MoveOnly{999})); in main() [all …]
|
/third_party/boost/libs/hana/test/pair/ |
D | assign.move.cpp | 15 struct MoveOnly { struct 17 MoveOnly(MoveOnly const&) = delete; argument 18 MoveOnly& operator=(MoveOnly const&) = delete; 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 28 struct MoveOnlyDerived : MoveOnly { 30 MoveOnlyDerived(int data = 1) : MoveOnly(data) { } in MoveOnlyDerived() 45 hana::pair<MoveOnly, short> p1(MoveOnly{3}, 4); in main() [all …]
|
D | cnstr.move.cpp | 15 struct MoveOnly { struct 17 MoveOnly(MoveOnly const&) = delete; argument 18 MoveOnly& operator=(MoveOnly const&) = delete; 19 MoveOnly(int data) : data_(data) { } in MoveOnly() function 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 28 struct MoveOnlyDerived : MoveOnly { 30 MoveOnlyDerived(int data = 1) : MoveOnly(data) { } in MoveOnlyDerived() 55 hana::pair<MoveOnly, short> p1(MoveOnly{3}, 4); in main() [all …]
|
D | make.cpp | 13 struct MoveOnly { struct 15 MoveOnly(MoveOnly const&) = delete; argument 16 MoveOnly& operator=(MoveOnly const&) = delete; 17 MoveOnly(int data) : data_(data) { } in MoveOnly() argument 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 34 hana::pair<MoveOnly, short> p = hana::make_pair(MoveOnly{3}, 4); in main() 35 BOOST_HANA_RUNTIME_CHECK(hana::first(p) == MoveOnly{3}); in main() 40 hana::pair<MoveOnly, short> p = hana::make_pair(3, 4); in main() [all …]
|
D | cnstr.memberwise.cpp | 12 struct MoveOnly { struct 14 MoveOnly(MoveOnly const&) = delete; argument 15 MoveOnly& operator=(MoveOnly const&) = delete; 16 MoveOnly(int data) : data_(data) { } in MoveOnly() function 17 MoveOnly(MoveOnly&& x) : data_(x.data_) { x.data_ = 0; } in MoveOnly() function 19 MoveOnly& operator=(MoveOnly&& x) in operator =() argument 22 bool operator==(const MoveOnly& x) const { return data_ == x.data_; } in operator ==() argument 37 hana::pair<MoveOnly, short*> p(MoveOnly{3}, nullptr); in main() 38 BOOST_HANA_RUNTIME_CHECK(hana::first(p) == MoveOnly{3}); in main()
|
/third_party/boost/libs/hana/test/concept/struct/ |
D | members.cpp | 17 struct MoveOnly { struct 18 MoveOnly() = default; 19 MoveOnly(MoveOnly&&) = default; 20 MoveOnly(MoveOnly const&) = delete; 21 MoveOnly& operator=(MoveOnly&&) = default; 22 MoveOnly& operator=(MoveOnly const&) = delete; 47 auto z1 = hana::members(obj(MoveOnly{})); in main() 48 auto z2 = hana::members(obj(MoveOnly{}, MoveOnly{})); in main()
|
D | fold_right.cpp | 21 struct MoveOnly { struct 22 MoveOnly() = default; 23 MoveOnly(MoveOnly&&) = default; 24 MoveOnly(MoveOnly const&) = delete; 25 MoveOnly& operator=(MoveOnly&&) = default; 26 MoveOnly& operator=(MoveOnly const&) = delete; 57 hana::fold_right(obj(MoveOnly{}), 0, [](auto, int) { return 0; }); in main() 58 hana::fold_right(obj(MoveOnly{}, MoveOnly{}), 0, [](auto, int) { return 0; }); in main()
|
D | fold_left.cpp | 21 struct MoveOnly { struct 22 MoveOnly() = default; 23 MoveOnly(MoveOnly&&) = default; 24 MoveOnly(MoveOnly const&) = delete; 25 MoveOnly& operator=(MoveOnly&&) = default; 26 MoveOnly& operator=(MoveOnly const&) = delete; 57 hana::fold_left(obj(MoveOnly{}), 0, [](int, auto) { return 0; }); in main() 58 hana::fold_left(obj(MoveOnly{}, MoveOnly{}), 0, [](int, auto) { return 0; }); in main()
|
/third_party/boost/libs/optional/test/ |
D | optional_test_make_optional.cpp | 35 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() argument 40 MoveOnly& operator=(MoveOnly && r) { value = r.value; r.value = 0; return *this; } in operator =() argument 43 MoveOnly(MoveOnly const&); 44 void operator=(MoveOnly const&); 47 MoveOnly makeMoveOnly(int i) in makeMoveOnly() 49 return MoveOnly(i); in makeMoveOnly() 54 verify_type< optional<MoveOnly> >(make_optional(makeMoveOnly(2))); in test_make_optional_for_move_only_type() 55 verify_type< optional<MoveOnly> >(make_optional(true, makeMoveOnly(2))); in test_make_optional_for_move_only_type() [all …]
|
D | optional_test_fail_copying_a_moveable_type.cpp | 14 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 20 void operator=(MoveOnly&& rhs) {val = rhs.val; rhs.val = 0; } in operator =() 23 MoveOnly(MoveOnly const&); 24 void operator=(MoveOnly const&); 32 boost::optional<MoveOnly> opt1 ; in test_copying_optional_with_noncopyable_T() 33 boost::optional<MoveOnly> opt2(opt1) ; in test_copying_optional_with_noncopyable_T()
|
D | optional_test_old_impl.cpp | 180 struct MoveOnly struct 182 explicit MoveOnly(int){} in MoveOnly() argument 183 MoveOnly(MoveOnly &&){} in MoveOnly() argument 184 void operator=(MoveOnly &&); 186 MoveOnly(MoveOnly const&); 187 void operator=(MoveOnly const&); 190 optional<MoveOnly> makeMoveOnly() in makeMoveOnly() 192 return MoveOnly(1); in makeMoveOnly() 195 MoveOnly moveOnlyDefault() in moveOnlyDefault() 197 return MoveOnly(1); in moveOnlyDefault() [all …]
|
D | optional_test_value_access.cpp | 179 struct MoveOnly struct 181 explicit MoveOnly(int){} in MoveOnly() function 182 MoveOnly(MoveOnly &&){} in MoveOnly() function 183 void operator=(MoveOnly &&); 185 MoveOnly(MoveOnly const&); 186 void operator=(MoveOnly const&); 189 optional<MoveOnly> makeMoveOnly() in makeMoveOnly() 191 return MoveOnly(1); in makeMoveOnly() 194 MoveOnly moveOnlyDefault() in moveOnlyDefault() 196 return MoveOnly(1); in moveOnlyDefault() [all …]
|
D | optional_test_move.cpp | 218 class MoveOnly class 222 MoveOnly(int v) : val(v) {} in MoveOnly() function in MoveOnly 223 MoveOnly(MoveOnly&& rhs) : val(rhs.val) { rhs.val = 0; } in MoveOnly() function in MoveOnly 224 void operator=(MoveOnly&& rhs) {val = rhs.val; rhs.val = 0; } in operator =() 227 MoveOnly(MoveOnly const&); 228 void operator=(MoveOnly const&); 235 optional<MoveOnly> o1; in test_with_move_only() 236 optional<MoveOnly> o2((MoveOnly(1))); in test_with_move_only() 239 optional<MoveOnly> o3 (boost::move(o1)); in test_with_move_only() 241 optional<MoveOnly> o4 (boost::move(o2)); in test_with_move_only() [all …]
|
D | optional_test_map.cpp | 35 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 43 MoveOnly(MoveOnly const&); 44 void operator=(MoveOnly const&); 47 MoveOnly makeMoveOnly(int i) in makeMoveOnly() 49 return MoveOnly(i); in makeMoveOnly() 52 optional<MoveOnly> makeOptMoveOnly(int i) in makeOptMoveOnly() 54 return optional<MoveOnly>(MoveOnly(i)); in makeOptMoveOnly() [all …]
|
D | optional_test_flat_map.cpp | 212 struct MoveOnly struct 215 explicit MoveOnly(int i) : value(i) {} in MoveOnly() function 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 220 MoveOnly(MoveOnly const&); 221 void operator=(MoveOnly const&); 224 MoveOnly makeMoveOnly(int i) in makeMoveOnly() 226 return MoveOnly(i); in makeMoveOnly() 229 optional<MoveOnly> makeOptMoveOnly(int i) in makeOptMoveOnly() 231 return optional<MoveOnly>(MoveOnly(i)); in makeOptMoveOnly() [all …]
|
/third_party/boost/libs/hana/test/functional/ |
D | demux.cpp | 14 struct MoveOnly { struct 15 MoveOnly() = default; 16 MoveOnly(MoveOnly const&) = delete; 17 MoveOnly(MoveOnly&&) = default; 60 hana::demux(f)(g)(MoveOnly{}); in main() 61 hana::demux(f)(g)(MoveOnly{}, MoveOnly{}); in main() 62 hana::demux(f)(g)(MoveOnly{}, MoveOnly{}, MoveOnly{}); in main()
|
/third_party/boost/libs/thread/test/threads/thread/constr/ |
D | Frvalue_pass.cpp | 29 class MoveOnly class 32 BOOST_THREAD_MOVABLE_ONLY(MoveOnly) 33 MoveOnly() in MoveOnly() function in MoveOnly 36 MoveOnly(BOOST_THREAD_RV_REF(MoveOnly)) in MoveOnly() function in MoveOnly 44 MoveOnly MakeMoveOnly() { in MakeMoveOnly() 45 return BOOST_THREAD_MAKE_RV_REF(MoveOnly()); in MakeMoveOnly() 49 BOOST_STATIC_ASSERT(::boost::is_function<boost::rv<boost::rv<MoveOnly> >&>::value==false);
|
D | FrvalueArgs_pass.cpp | 28 class MoveOnly class 31 BOOST_THREAD_MOVABLE_ONLY(MoveOnly) 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 ()() argument 92 boost::thread t = boost::thread( MoveOnly(), MoveOnly() ); in main()
|
/third_party/boost/libs/thread/test/sync/futures/async/ |
D | async_executor_pass.cpp | 63 class MoveOnly class 70 BOOST_THREAD_MOVABLE_ONLY(MoveOnly) 71 MoveOnly() in MoveOnly() function in MoveOnly 75 MoveOnly( BOOST_THREAD_RV_REF(MoveOnly)) in MoveOnly() argument 79 MoveOnly& operator=(BOOST_THREAD_RV_REF(MoveOnly)) in operator =() argument 91 friend OS& operator<<(OS& os, MoveOnly const& v) in operator <<() 100 BOOST_THREAD_DCL_MOVABLE (MoveOnly) 128 MoveOnly f3_1() in f3_1() 131 MoveOnly r; in f3_1() 226 MoveOnly mo; in main()
|
/third_party/boost/libs/thread/test/sync/mutual_exclusion/once/call_once/ |
D | call_once_pass.cpp | 170 class MoveOnly class 175 BOOST_THREAD_MOVABLE_ONLY(MoveOnly) 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 ()() argument 281 boost::call_once(f, MoveOnly()); in main() 287 boost::call_once(f, MoveOnly(), 1); in main() 291 boost::call_once(f, MoveOnly(), MoveOnly()); in main()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/types/ |
D | any_test.cc | 40 struct MoveOnly { struct 41 MoveOnly() = default; 42 explicit MoveOnly(int value) : value(value) {} in MoveOnly() argument 43 MoveOnly(MoveOnly&&) = default; 44 MoveOnly& operator=(MoveOnly&&) = default; 73 IntMoveOnlyCopyOnly(int value, MoveOnly /*move_only*/, CopyOnly /*copy_only*/) in IntMoveOnlyCopyOnly() 80 ListMoveOnlyCopyOnly(std::initializer_list<int> ilist, MoveOnly /*move_only*/, in ListMoveOnlyCopyOnly() 154 absl::any o(absl::in_place_type_t<IntMoveOnlyCopyOnly>(), 5, MoveOnly(), in TEST() 162 absl::any o(absl::in_place_type<IntMoveOnlyCopyOnly>, 5, MoveOnly(), in TEST() 171 MoveOnly(), copy_only); in TEST() [all …]
|