/external/libchrome/base/ |
D | no_destructor_unittest.cc | 26 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/ |
D | swap.pass.cpp | 24 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()
|
D | swap_array.pass.cpp | 25 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/ |
D | rv_pair_U_V.pass.cpp | 107 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()
|
D | const_pair_U_V.pass.cpp | 97 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()
|
D | U_V.pass.cpp | 64 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()
|
D | special_member_generation_test.pass.cpp | 68 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()
|
D | const_first_const_second.pass.cpp | 67 test_sfinae<CopyOnly>(); in main() 68 test_sfinae<ExplicitTypes::CopyOnly, true, false>(); in main()
|
/external/libcxx/test/support/ |
D | archetypes.ipp | 83 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/ |
D | implicit-move.cpp | 227 struct CopyOnly { struct 228 CopyOnly(const CopyOnly&); 229 CopyOnly &operator=(const CopyOnly&); 235 template void test(CopyOnly); // ok, copies 238 CopyOnly co;
|
D | p11.0x.move.cpp | 143 struct CopyOnly { struct 144 CopyOnly(const CopyOnly&); 148 CopyOnly CO;
|
/external/libcxx/test/std/utilities/variant/variant.variant/variant.assign/ |
D | move.pass.cpp | 46 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()
|
D | copy.pass.cpp | 43 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/ |
D | swap.pass.cpp | 98 using T = TestTypes::CopyOnly; in test_swap_sfinae()
|