Home
last modified time | relevance | path

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

/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/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() function
27 CopyOnly(CopyOnly const&) noexcept {} in CopyOnly() function
28 CopyOnly& operator=(CopyOnly const&) { return *this; } in operator =() argument
88 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()
Dconst_first_const_second.pass.cpp67 test_sfinae<CopyOnly>(); in main()
68 test_sfinae<ExplicitTypes::CopyOnly, true, false>(); in main()
/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/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/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
Dmove.pass.cpp46 struct CopyOnly { struct
47 CopyOnly(const CopyOnly &) = default;
48 CopyOnly(CopyOnly &&) = delete;
49 CopyOnly &operator=(const CopyOnly &) = default;
50 CopyOnly &operator=(CopyOnly &&) = delete;
187 using V = std::variant<int, CopyOnly>; in test_move_assignment_sfinae()
233 using V = std::variant<int, CopyOnly>; in test_move_assignment_sfinae()
Dcopy.pass.cpp43 struct CopyOnly { struct
44 CopyOnly(const CopyOnly &) = default;
45 CopyOnly(CopyOnly &&) = delete;
46 CopyOnly &operator=(const CopyOnly &) = default;
47 CopyOnly &operator=(CopyOnly &&) = delete;
227 using V = std::variant<int, CopyOnly>; in test_copy_assignment_sfinae()
263 using V = std::variant<int, CopyOnly>; in test_copy_assignment_sfinae()
/external/libcxx/test/std/utilities/optional/optional.specalg/
Dswap.pass.cpp98 using T = TestTypes::CopyOnly; in test_swap_sfinae()