Home
last modified time | relevance | path

Searched refs:CopyOnly (Results 1 – 25 of 36) sorted by relevance

12

/external/libchrome/base/
Dno_destructor_unittest.cc26 struct CopyOnly { struct
27 CopyOnly() = default;
29 CopyOnly(const CopyOnly&) = default;
30 CopyOnly& operator=(const CopyOnly&) = default;
32 CopyOnly(CopyOnly&&) = delete;
33 CopyOnly& operator=(CopyOnly&&) = delete;
47 ForwardingTestStruct(const CopyOnly&, MoveOnly&&) {} in ForwardingTestStruct()
51 CopyOnly copy_only; in TEST()
/external/pigweed/pw_containers/
Dvector_test.cc29 struct CopyOnly { struct
30 explicit CopyOnly(int val) : value(val) {} in CopyOnly() function
32 CopyOnly(const CopyOnly& other) { value = other.value; } in CopyOnly() argument
34 CopyOnly& operator=(const CopyOnly& other) { in operator =() argument
39 CopyOnly(CopyOnly&&) = delete;
121 CopyOnly origin(5); in TEST()
122 Vector<CopyOnly, 10> origin_vector(3, origin); in TEST()
124 Vector<CopyOnly, 100> vector(origin_vector); in TEST()
187 CopyOnly origin(5); in TEST()
188 Vector<CopyOnly, 3> origin_vector(3, origin); in TEST()
[all …]
/external/libcxx/test/std/utilities/utility/utility.swap/
Dswap.pass.cpp24 struct CopyOnly { struct
25 CopyOnly() {} in CopyOnly() argument
26 CopyOnly(CopyOnly const&) noexcept {} in CopyOnly() function
27 CopyOnly& operator=(CopyOnly const&) { return *this; } in operator =() argument
88 static_assert(can_swap<CopyOnly&>(), ""); in main()
95 CopyOnly c; in main()
Dswap_array.pass.cpp25 struct CopyOnly { struct
26 CopyOnly() {} in CopyOnly() argument
27 CopyOnly(CopyOnly const&) noexcept {} in CopyOnly() argument
28 CopyOnly& operator=(CopyOnly const&) { return *this; } in operator =() argument
88 using CA = CopyOnly[42]; in main()
/external/llvm-project/libcxx/test/std/utilities/utility/utility.swap/
Dswap.pass.cpp23 struct CopyOnly { struct
24 CopyOnly() {} in CopyOnly() function
25 CopyOnly(CopyOnly const&) noexcept {} in CopyOnly() function
26 CopyOnly& operator=(CopyOnly const&) { return *this; } in operator =() argument
97 static_assert(can_swap<CopyOnly&>(), ""); in main()
104 CopyOnly c; in main()
Dswap_array.pass.cpp24 struct CopyOnly { struct
25 CopyOnly() {} in CopyOnly() argument
26 CopyOnly(CopyOnly const&) noexcept {} in CopyOnly() argument
27 CopyOnly& operator=(CopyOnly const&) { return *this; } in operator =() argument
101 using CA = CopyOnly[42]; in main()
/external/libcxx/test/std/utilities/utility/pairs/pairs.pair/
Drv_pair_U_V.pass.cpp107 test_pair_rv<CopyOnly, CopyOnly>(); in main()
108 test_pair_rv<CopyOnly, CopyOnly&>(); in main()
109 test_pair_rv<CopyOnly, CopyOnly&&>(); in main()
111 test_pair_rv<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly>(); in main()
112 test_pair_rv<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly&, true, false>(); in main()
113 test_pair_rv<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly&&, true, false>(); in main()
Dconst_pair_U_V.pass.cpp97 test_pair_const<CopyOnly, CopyOnly>(); in main()
98 test_pair_const<CopyOnly, CopyOnly&>(); in main()
99 test_pair_const<CopyOnly, CopyOnly&&>(); in main()
101 test_pair_const<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly>(); in main()
102 test_pair_const<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly&, true, false>(); in main()
103 test_pair_const<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly&&, true, false>(); in main()
DU_V.pass.cpp64 test_sfinae<CopyOnly, CopyOnly&>(); in main()
65 test_sfinae<CopyOnly, CopyOnly&&>(); in main()
66 test_sfinae<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly&, true, false>(); in main()
67 test_sfinae<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly&&, true, false>(); in main()
Dspecial_member_generation_test.pass.cpp68 test<CopyOnly, true, true>(); in test_constructors_exist()
69 test<CopyOnly &, true>(); in test_constructors_exist()
70 test<CopyOnly &&, false, true>(); in test_constructors_exist()
113 test<CopyOnly, true>(); in test_assignment_operator_exists()
114 test<CopyOnly &, true>(); in test_assignment_operator_exists()
115 test<CopyOnly &&, true>(); in test_assignment_operator_exists()
/external/llvm-project/libcxx/test/std/utilities/utility/pairs/pairs.pair/
Drv_pair_U_V.pass.cpp108 test_pair_rv<CopyOnly, CopyOnly>(); in main()
109 test_pair_rv<CopyOnly, CopyOnly&>(); in main()
110 test_pair_rv<CopyOnly, CopyOnly&&>(); in main()
112 test_pair_rv<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly>(); in main()
113 test_pair_rv<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly&, true, false>(); in main()
114 test_pair_rv<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly&&, true, false>(); in main()
Dconst_pair_U_V.pass.cpp102 test_pair_const<CopyOnly, CopyOnly>(); in test()
103 test_pair_const<CopyOnly, CopyOnly&>(); in test()
104 test_pair_const<CopyOnly, CopyOnly&&>(); in test()
106 test_pair_const<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly>(); in test()
107 test_pair_const<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly&, true, in test()
109 test_pair_const<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly&&, true, in test()
DU_V.pass.cpp65 test_sfinae<CopyOnly, CopyOnly&>(); in main()
66 test_sfinae<CopyOnly, CopyOnly&&>(); in main()
67 test_sfinae<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly&, true, false>(); in main()
68 test_sfinae<ExplicitTypes::CopyOnly, ExplicitTypes::CopyOnly&&, true, false>(); in main()
Dspecial_member_generation_test.pass.cpp69 test<CopyOnly, true, true>(); in test_constructors_exist()
70 test<CopyOnly &, true>(); in test_constructors_exist()
71 test<CopyOnly &&, false, true>(); in test_constructors_exist()
114 test<CopyOnly, true>(); in test_assignment_operator_exists()
115 test<CopyOnly &, true>(); in test_assignment_operator_exists()
116 test<CopyOnly &&, true>(); in test_assignment_operator_exists()
/external/libcxx/test/support/
Darchetypes.ipp83 struct CopyOnly : DEFINE_BASE(CopyOnly) {
84 using Base = DEFINE_BASE(CopyOnly);
86 DEFINE_EXPLICIT DEFINE_CONSTEXPR CopyOnly() DEFINE_NOEXCEPT DEFINE_DEFAULT_CTOR;
87 DEFINE_EXPLICIT DEFINE_CONSTEXPR CopyOnly(CopyOnly const &) DEFINE_NOEXCEPT DEFINE_CTOR;
88 DEFINE_EXPLICIT DEFINE_CONSTEXPR CopyOnly(CopyOnly &&) DEFINE_NOEXCEPT = delete;
89 CopyOnly &operator=(CopyOnly const &) DEFINE_NOEXCEPT DEFINE_ASSIGN;
90 CopyOnly &operator=(CopyOnly &&) DEFINE_NOEXCEPT = delete;
91 DEFINE_DTOR(CopyOnly)
160 CopyOnly,
/external/llvm-project/libcxx/test/support/
Darchetypes.ipp90 struct CopyOnly : DEFINE_BASE(CopyOnly) {
91 using Base = DEFINE_BASE(CopyOnly);
93 DEFINE_EXPLICIT DEFINE_CONSTEXPR CopyOnly() DEFINE_NOEXCEPT DEFINE_DEFAULT_CTOR;
94 DEFINE_EXPLICIT DEFINE_CONSTEXPR CopyOnly(CopyOnly const &) DEFINE_NOEXCEPT DEFINE_CTOR;
95 DEFINE_EXPLICIT DEFINE_CONSTEXPR CopyOnly(CopyOnly &&) DEFINE_NOEXCEPT = delete;
96 CopyOnly &operator=(CopyOnly const &) DEFINE_NOEXCEPT DEFINE_ASSIGN;
97 CopyOnly &operator=(CopyOnly &&) DEFINE_NOEXCEPT = delete;
98 DEFINE_DTOR(CopyOnly)
167 CopyOnly,
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/types/
Dany_test.cc49 struct CopyOnly { struct
50 CopyOnly() = default;
51 explicit CopyOnly(int value) : value(value) {} in CopyOnly() argument
52 CopyOnly(CopyOnly&&) = delete;
53 CopyOnly& operator=(CopyOnly&&) = delete;
54 CopyOnly(const CopyOnly&) = default;
55 CopyOnly& operator=(const CopyOnly&) = default;
73 IntMoveOnlyCopyOnly(int value, MoveOnly /*move_only*/, CopyOnly /*copy_only*/) in IntMoveOnlyCopyOnly()
81 CopyOnly /*copy_only*/) in ListMoveOnlyCopyOnly()
153 const CopyOnly copy_only{}; in TEST()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/types/
Dany_test.cc49 struct CopyOnly { struct
50 CopyOnly() = default;
51 explicit CopyOnly(int value) : value(value) {} in CopyOnly() argument
52 CopyOnly(CopyOnly&&) = delete;
53 CopyOnly& operator=(CopyOnly&&) = delete;
54 CopyOnly(const CopyOnly&) = default;
55 CopyOnly& operator=(const CopyOnly&) = default;
73 IntMoveOnlyCopyOnly(int value, MoveOnly /*move_only*/, CopyOnly /*copy_only*/) in IntMoveOnlyCopyOnly()
81 CopyOnly /*copy_only*/) in ListMoveOnlyCopyOnly()
153 const CopyOnly copy_only{}; in TEST()
[all …]
/external/abseil-cpp/absl/types/
Dany_test.cc49 struct CopyOnly { struct
50 CopyOnly() = default;
51 explicit CopyOnly(int value) : value(value) {} in CopyOnly() argument
52 CopyOnly(CopyOnly&&) = delete;
53 CopyOnly& operator=(CopyOnly&&) = delete;
54 CopyOnly(const CopyOnly&) = default;
55 CopyOnly& operator=(const CopyOnly&) = default;
73 IntMoveOnlyCopyOnly(int value, MoveOnly /*move_only*/, CopyOnly /*copy_only*/) in IntMoveOnlyCopyOnly()
81 CopyOnly /*copy_only*/) in ListMoveOnlyCopyOnly()
153 const CopyOnly copy_only{}; in TEST()
[all …]
/external/libtextclassifier/abseil-cpp/absl/types/
Dany_test.cc49 struct CopyOnly { struct
50 CopyOnly() = default;
51 explicit CopyOnly(int value) : value(value) {} in CopyOnly() argument
52 CopyOnly(CopyOnly&&) = delete;
53 CopyOnly& operator=(CopyOnly&&) = delete;
54 CopyOnly(const CopyOnly&) = default;
55 CopyOnly& operator=(const CopyOnly&) = default;
73 IntMoveOnlyCopyOnly(int value, MoveOnly /*move_only*/, CopyOnly /*copy_only*/) in IntMoveOnlyCopyOnly()
81 CopyOnly /*copy_only*/) in ListMoveOnlyCopyOnly()
153 const CopyOnly copy_only{}; in TEST()
[all …]
/external/openscreen/third_party/abseil/src/absl/types/
Dany_test.cc49 struct CopyOnly { struct
50 CopyOnly() = default;
51 explicit CopyOnly(int value) : value(value) {} in CopyOnly() function
52 CopyOnly(CopyOnly&&) = delete;
53 CopyOnly& operator=(CopyOnly&&) = delete;
54 CopyOnly(const CopyOnly&) = default;
55 CopyOnly& operator=(const CopyOnly&) = default;
73 IntMoveOnlyCopyOnly(int value, MoveOnly /*move_only*/, CopyOnly /*copy_only*/) in IntMoveOnlyCopyOnly()
81 CopyOnly /*copy_only*/) in ListMoveOnlyCopyOnly()
153 const CopyOnly copy_only{}; in TEST()
[all …]
/external/llvm-project/clang/test/CodeGenCoroutines/
Dcoro-params.cpp41 struct CopyOnly { struct
43 CopyOnly(const CopyOnly&) noexcept; argument
44 CopyOnly(CopyOnly&&) = delete;
45 ~CopyOnly();
/external/clang/test/CXX/special/class.copy/
Dimplicit-move.cpp227 struct CopyOnly { struct
228 CopyOnly(const CopyOnly&);
229 CopyOnly &operator=(const CopyOnly&);
235 template void test(CopyOnly); // ok, copies
238 CopyOnly co;
Dp11.0x.move.cpp143 struct CopyOnly { struct
144 CopyOnly(const CopyOnly&);
148 CopyOnly CO;
/external/llvm-project/clang/test/CXX/special/class.copy/
Dimplicit-move.cpp227 struct CopyOnly { struct
228 CopyOnly(const CopyOnly&);
229 CopyOnly &operator=(const CopyOnly&);
235 template void test(CopyOnly); // ok, copies
238 CopyOnly co;

12