/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
H A D | alloc_convert_const_move.pass.cpp | 40 static_assert(ImplicitlyConstructible< std::tuple<ConvertibleFrom<ConstMove>>, std::allocator_arg_t, 44 …ructible< std::tuple<ConvertibleFrom<ConstMove>, ConvertibleFrom<ConstMove>>, std::allocator_arg_t, 47 …rt(!ImplicitlyConstructible<std::tuple<ExplicitConstructibleFrom<ConstMove>>, std::allocator_arg_t, 51 std::allocator_arg_t, const test_allocator<int>&, 68 …std::tuple<ConvertibleFrom<ConstMove>, int> t2 = {std::allocator_arg_t{}, test_allocator<int>{}, s… in test() 78 …std::tuple<ExplicitConstructibleFrom<ConstMove>> t2{std::allocator_arg_t{}, test_allocator<int>{},… in test() 87 …std::tuple<ExplicitConstructibleFrom<ConstMove>, int> t2{std::allocator_arg_t{}, test_allocator<in… in test() 97 …static_assert(!std::is_constructible_v<std::tuple<int, int>, std::allocator_arg_t, const test_allo… in test() 99 …static_assert(!std::is_constructible_v<std::tuple<int, int, int>, std::allocator_arg_t, const test… in test() 103 …tatic_assert(!std::is_constructible_v< std::tuple<int, NoConstructorFromInt>, std::allocator_arg_t, in test() [all …]
|
H A D | alloc_convert_non_const_copy.pass.cpp | 40 …tic_assert(ImplicitlyConstructible< std::tuple<ConvertibleFrom<MutableCopy>>, std::allocator_arg_t, 45 … std::allocator_arg_t, const test_allocator<int>&, std::tuple<MutableCopy, MutableCopy>&>); 47 …(!ImplicitlyConstructible<std::tuple<ExplicitConstructibleFrom<MutableCopy>>, std::allocator_arg_t, 52 … std::allocator_arg_t, const test_allocator<int>&, std::tuple<MutableCopy, MutableCopy>&>); 68 …std::tuple<ConvertibleFrom<MutableCopy>, int> t2 = {std::allocator_arg_t{}, test_allocator<int>{},… in test() 78 …std::tuple<ExplicitConstructibleFrom<MutableCopy>> t2{std::allocator_arg_t{}, test_allocator<int>{… in test() 87 …std::tuple<ExplicitConstructibleFrom<MutableCopy>, int> t2{std::allocator_arg_t{}, test_allocator<… in test() 96 …static_assert(!std::is_constructible_v<std::tuple<int, int>, std::allocator_arg_t, const test_allo… in test() 98 …static_assert(!std::is_constructible_v<std::tuple<int, int, int>, std::allocator_arg_t, const test… in test() 102 …tatic_assert(!std::is_constructible_v< std::tuple<int, NoConstructorFromInt>, std::allocator_arg_t, in test() [all …]
|
H A D | alloc_const_move_pair.pass.cpp | 33 static_assert(std::is_constructible_v<std::tuple<ConstMove, int>, std::allocator_arg_t, test_alloca… 36 static_assert(!std::is_constructible_v< std::tuple<ConstMove>, std::allocator_arg_t, test_allocator… 39 static_assert(!std::is_constructible_v< std::tuple<ConstMove, int, int>, std::allocator_arg_t, test… 45 static_assert(std::is_constructible_v<std::tuple<int, int>, std::allocator_arg_t, test_allocator<in… 48 static_assert(!std::is_constructible_v< std::tuple<NoConstructorFromInt, int>, std::allocator_arg_t, 51 static_assert(!std::is_constructible_v< std::tuple<int, NoConstructorFromInt>, std::allocator_arg_t, 54 …::is_constructible_v< std::tuple<NoConstructorFromInt, NoConstructorFromInt>, std::allocator_arg_t, 61 …ructible< std::tuple<ConvertibleFrom<ConstMove>, ConvertibleFrom<ConstMove>>, std::allocator_arg_t, 66 … std::allocator_arg_t, test_allocator<int>, const std::pair<ConstMove, ConstMove>&&>); 70 … std::allocator_arg_t, test_allocator<int>, const std::pair<ConstMove, ConstMove>&&>);
|
H A D | alloc_non_const_pair.pass.cpp | 32 static_assert(std::is_constructible_v<std::tuple<MutableCopy, int>, std::allocator_arg_t, test_allo… 35 static_assert(!std::is_constructible_v< std::tuple<MutableCopy>, std::allocator_arg_t, test_allocat… 38 static_assert(!std::is_constructible_v< std::tuple<MutableCopy, int, int>, std::allocator_arg_t, te… 45 …std::is_constructible_v<std::tuple<int, int>, std::allocator_arg_t, test_allocator<int>, std::pair… 47 static_assert(!std::is_constructible_v< std::tuple<NoConstructorFromInt, int>, std::allocator_arg_t, 50 static_assert(!std::is_constructible_v< std::tuple<int, NoConstructorFromInt>, std::allocator_arg_t, 53 …::is_constructible_v< std::tuple<NoConstructorFromInt, NoConstructorFromInt>, std::allocator_arg_t, 60 … std::allocator_arg_t, test_allocator<int>, std::pair<MutableCopy, MutableCopy>&>); 64 … std::allocator_arg_t, test_allocator<int>, std::pair<MutableCopy, MutableCopy>&>); 68 … std::allocator_arg_t, test_allocator<int>, std::pair<MutableCopy, MutableCopy>&>);
|
H A D | PR23256_constrain_UTypes_ctor.pass.cpp | 76 std::allocator_arg_t, std::allocator<int>, in main() 81 std::allocator_arg_t, std::allocator<int>, in main() 86 std::allocator_arg_t, std::allocator<int>, in main() 91 std::allocator_arg_t, std::allocator<int>, in main()
|
H A D | alloc_UTypes.pass.cpp | 39 struct DerivedFromAllocArgT : std::allocator_arg_t {}; 52 std::allocator_arg_t, A1<int>, MoveOnly in test_uses_allocator_sfinae_evaluation() 57 std::allocator_arg_t, A1<int>, MoveOnly, MoveOnly, BadDefault in test_uses_allocator_sfinae_evaluation() 65 std::allocator_arg_t, A1<int>, MoveOnly, MoveOnly in test_uses_allocator_sfinae_evaluation() 70 std::allocator_arg_t, A1<int>, MoveOnly, MoveOnly, BadDefault, BadDefault in test_uses_allocator_sfinae_evaluation()
|
H A D | alloc.pass.cpp | 37 struct DerivedFromAllocArgT : std::allocator_arg_t {}; 95 struct DerivedFromAllocatorArgT : std::allocator_arg_t { }; in main()
|
/llvm-project/libcxx/test/std/thread/futures/futures.task/futures.task.members/ |
H A D | ctor2.compile.pass.cpp | 15 // packaged_task(allocator_arg_t, const Allocator& a, F&& f); 30 static_assert(!std::is_constructible<PT, std::allocator_arg_t, test_allocator<A>, VPT>::value, ""); 35 static_assert(!std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, const PA&>::value, ""); 36 static_assert(!std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, const PA&&>::value, ""); 37 static_assert(!std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, volatile PA&>::value, ""); 38 static_assert(!std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, volatile PA&&>::value, ""); 41 static_assert(!std::is_constructible_v<PA, std::allocator_arg_t, std::allocator<A>, const PI&>); 42 static_assert(!std::is_constructible_v<PA, std::allocator_arg_t, std::allocator<A>, const PI&&>); 43 static_assert(!std::is_constructible_v<PA, std::allocator_arg_t, std::allocator<A>, volatile PI&>); 44 static_assert(!std::is_constructible_v<PA, std::allocator_arg_t, st [all...] |
/llvm-project/libcxx/include/__memory/ |
H A D | allocator_arg_t.h | 26 struct _LIBCPP_TEMPLATE_VIS allocator_arg_t { struct 27 explicit allocator_arg_t() = default; 31 inline constexpr allocator_arg_t allocator_arg = allocator_arg_t(); 33 constexpr allocator_arg_t allocator_arg = allocator_arg_t(); 44 static const bool __ic = is_constructible<_Tp, allocator_arg_t, _Alloc, _Args...>::value;
|
/llvm-project/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/ |
H A D | construct_pair.pass.cpp | 49 std::tuple<std::allocator_arg_t, const SA&>&&, in test_no_inner_alloc() 53 std::tuple<std::allocator_arg_t, SA&>&&, in test_no_inner_alloc() 76 …(P.checkConstruct<std::piecewise_construct_t&&, std::tuple<std::allocator_arg_t, const SA&>&&, std… in test_no_inner_alloc() 80 …(P.checkConstruct<std::piecewise_construct_t const&, std::tuple<std::allocator_arg_t, SA&>&&, std:… in test_no_inner_alloc() 113 std::tuple<std::allocator_arg_t, const SAInner&>&&, in test_with_inner_alloc() 117 std::tuple<std::allocator_arg_t, SAInner&>&&, in test_with_inner_alloc() 145 std::tuple<std::allocator_arg_t, const SAInner&>&&, in test_with_inner_alloc() 149 std::tuple<std::allocator_arg_t, SAInner&>&&, in test_with_inner_alloc()
|
H A D | construct_pair_const_lvalue_pair.pass.cpp | 53 std::tuple<std::allocator_arg_t, const SA&, int&>&&, in test_no_inner_alloc() 57 std::tuple<std::allocator_arg_t, SA&, int&>&&, in test_no_inner_alloc() 84 std::tuple<std::allocator_arg_t, const SA&, int const&>&&, in test_no_inner_alloc() 88 std::tuple<std::allocator_arg_t, SA&, int const&>&&, in test_no_inner_alloc() 125 std::tuple<std::allocator_arg_t, const SAInner&, int&>&&, in test_with_inner_alloc() 129 std::tuple<std::allocator_arg_t, SAInner&, int&>&&, in test_with_inner_alloc() 161 std::tuple<std::allocator_arg_t, const SAInner&, int const&>&&, in test_with_inner_alloc() 165 std::tuple<std::allocator_arg_t, SAInner&, int const&>&&, in test_with_inner_alloc()
|
H A D | construct_pair_piecewise.pass.cpp | 52 std::tuple<std::allocator_arg_t, const SA&, int&>&&, in test_no_inner_alloc() 56 std::tuple<std::allocator_arg_t, SA&, int&>&&, in test_no_inner_alloc() 81 std::tuple<std::allocator_arg_t, const SA&, int&&>&&, in test_no_inner_alloc() 85 std::tuple<std::allocator_arg_t, SA&, int&&>&&, in test_no_inner_alloc() 120 std::tuple<std::allocator_arg_t, const SAInner&, int&>&&, in test_with_inner_alloc() 124 std::tuple<std::allocator_arg_t, SAInner&, int&>&&, in test_with_inner_alloc() 155 std::tuple<std::allocator_arg_t, const SAInner&, int&&>&&, in test_with_inner_alloc() 159 std::tuple<std::allocator_arg_t, SAInner&, int&&>&&, in test_with_inner_alloc()
|
H A D | construct_pair_values.pass.cpp | 51 std::tuple<std::allocator_arg_t, const SA&, int&>&&, in test_no_inner_alloc() 55 std::tuple<std::allocator_arg_t, SA&, int&>&&, in test_no_inner_alloc() 80 std::tuple<std::allocator_arg_t, const SA&, int&&>&&, in test_no_inner_alloc() 84 std::tuple<std::allocator_arg_t, SA&, int&&>&&, in test_no_inner_alloc() 119 std::tuple<std::allocator_arg_t, const SAInner&, int&>&&, in test_with_inner_alloc() 123 std::tuple<std::allocator_arg_t, SAInner&, int&>&&, in test_with_inner_alloc() 153 std::tuple<std::allocator_arg_t, const SAInner&, int&&>&&, in test_with_inner_alloc() 157 std::tuple<std::allocator_arg_t, SAInner&, int&&>&&, in test_with_inner_alloc()
|
H A D | construct_pair_rvalue.pass.cpp | 53 std::tuple<std::allocator_arg_t, const SA&, int&>&&, in test_no_inner_alloc() 57 std::tuple<std::allocator_arg_t, SA&, int&>&&, in test_no_inner_alloc() 84 std::tuple<std::allocator_arg_t, const SA&, int&&>&&, in test_no_inner_alloc() 88 std::tuple<std::allocator_arg_t, SA&, int&&>&&, in test_no_inner_alloc() 125 std::tuple<std::allocator_arg_t, const SAInner&, int&>&&, in test_with_inner_alloc() 129 std::tuple<std::allocator_arg_t, SAInner&, int&>&&, in test_with_inner_alloc() 161 std::tuple<std::allocator_arg_t, const SAInner&, int&&>&&, in test_with_inner_alloc() 165 std::tuple<std::allocator_arg_t, SAInner&, int&&>&&, in test_with_inner_alloc()
|
H A D | construct.pass.cpp | 30 explicit B(std::allocator_arg_t, const allocator_type& a, int i) { in B() 44 explicit C(std::allocator_arg_t, const allocator_type& a, int i) { in C() 108 G(std::allocator_arg_t, allocator_type&&) { assert(false); } in G()
|
H A D | construct_type.pass.cpp | 87 …assert((POuter.checkConstruct<std::allocator_arg_t&&, const SA::inner_allocator_type&, int&, int c… in test_bullet_two() 90 …assert((POuter.checkConstruct<std::allocator_arg_t const&, SA::inner_allocator_type&, int&, int co… in test_bullet_two()
|
/llvm-project/libcxx/test/std/utilities/memory/allocator.uses/allocator.uses.construction/ |
H A D | common.h | 30 …constexpr UsesAllocArgT(std::allocator_arg_t, const Alloc& alloc) : allocator_constructed_(true), … in UsesAllocArgT() 31 constexpr UsesAllocArgT(std::allocator_arg_t, const Alloc& alloc, int& val) in UsesAllocArgT() 33 constexpr UsesAllocArgT(std::allocator_arg_t, const Alloc& alloc, const int& val) in UsesAllocArgT() 35 constexpr UsesAllocArgT(std::allocator_arg_t, const Alloc& alloc, int&& val) in UsesAllocArgT() 37 constexpr UsesAllocArgT(std::allocator_arg_t, const Alloc& alloc, const int&& val) in UsesAllocArgT()
|
H A D | uses_allocator_construction_args.pass.cpp | 36 std::same_as<std::tuple<std::allocator_arg_t, const Alloc&>> auto ret = in testOne() 50 std::tuple<std::allocator_arg_t, const Alloc&>, in testOne() 59 std::tuple<std::allocator_arg_t, const Alloc&>, in testOne() 68 std::tuple<std::allocator_arg_t, const Alloc&, int&>, in testOne() 79 std::tuple<std::allocator_arg_t, const Alloc&, int&&>, in testOne() 93 std::tuple<std::allocator_arg_t, const Alloc&, int&>, in testOne() 105 std::tuple<std::allocator_arg_t, const Alloc&, const int&>, in testOne() 116 std::tuple<std::allocator_arg_t, const Alloc&, int&&>, in testOne() 132 std::tuple<std::piecewise_construct_t, std::tuple<>, std::tuple<std::allocator_arg_t, const Alloc&>>>> auto in testOne() 141 std::tuple<std::piecewise_construct_t, std::tuple<std::allocator_arg_t, cons in testOne() [all...] |
/llvm-project/libcxx/include/ |
H A D | tuple | 51 tuple(allocator_arg_t, const Alloc& a); 53 explicit(see-below) tuple(allocator_arg_t, const Alloc& a, const T&...); // constexpr in C++20 55 explicit(see-below) tuple(allocator_arg_t, const Alloc& a, U&&...); // constexpr in C++20 57 tuple(allocator_arg_t, const Alloc& a, const tuple&); // constexpr in C++20 59 tuple(allocator_arg_t, const Alloc& a, tuple&&); // constexpr in C++20 62 tuple(allocator_arg_t, const Alloc& a, tuple<UTypes...>&); // C++23 64 explicit(see-below) tuple(allocator_arg_t, const Alloc& a, const tuple<U...>&); // constexpr in C++20 66 explicit(see-below) tuple(allocator_arg_t, const Alloc& a, tuple<U...>&&); // constexpr in C++20 69 tuple(allocator_arg_t, const Alloc& a, const tuple<UTypes...>&&); // C++23 72 tuple(allocator_arg_t, cons [all...] |
/llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/ |
H A D | alloc_first.h | 26 alloc_first(std::allocator_arg_t, const A1<int>& a) in alloc_first() 33 alloc_first(std::allocator_arg_t, const A1<int>& a, int d) in alloc_first() 40 alloc_first(std::allocator_arg_t, const A1<int>& a, const alloc_first& d) in alloc_first()
|
/llvm-project/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/ |
H A D | alloc_F.pass.cpp | 131 …static_assert(std::is_constructible<Fn, std::allocator_arg_t, std::allocator<int>, LValueCallable&… in main() 132 …static_assert(std::is_constructible<Fn, std::allocator_arg_t, std::allocator<int>, LValueCallable>… in main() 133 …static_assert(!std::is_constructible<Fn, std::allocator_arg_t, std::allocator<int>, RValueCallable… in main() 134 …static_assert(!std::is_constructible<Fn, std::allocator_arg_t, std::allocator<int>, RValueCallable… in main()
|
/llvm-project/libcxx/test/support/ |
H A D | copy_move_types.h | 27 constexpr MutableCopy(std::allocator_arg_t, const test_allocator<int>&, MutableCopy& o) in MutableCopy() 43 constexpr ConstCopy(std::allocator_arg_t, const test_allocator<int>&, const ConstCopy& o) 59 constexpr MutableMove(std::allocator_arg_t, const test_allocator<int>&, MutableMove&& o) 75 constexpr ConstMove(std::allocator_arg_t, const test_allocator<int>&, const ConstMove&& o) 103 constexpr ConvertibleFrom(std::allocator_arg_t, const test_allocator<int>&, U&& _u) 133 constexpr ExplicitConstructibleFrom(std::allocator_arg_t, const test_allocator<int>&, U&& _u) 167 constexpr TracedCopyMove(std::allocator_arg_t, const test_allocator<int>&, U&& _u)
|
H A D | uses_alloc_types.h | 21 // (1) UA_AllocArg: 'T(allocator_arg_t, Alloc const&, Args&&...)' 208 UsesAllocatorTestBase(std::allocator_arg_t, CtorAlloc const& a, Args&&...) 256 UsesAllocatorV1(std::allocator_arg_t tag, CtorAlloc const& a, Args&&... args) 305 UsesAllocatorV3(std::allocator_arg_t tag, CtorAlloc const& alloc, Args&&... args) 330 NotUsesAllocator(std::allocator_arg_t tag, CtorAlloc const& alloc, Args&&... args)
|
/llvm-project/libcxx/test/std/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.mem/ |
H A D | construct_piecewise_pair_evil.pass.cpp | 58 WidgetV1(std::allocator_arg_t, EvilAlloc<char> a, int v) : value_(v), alloc_(a) {} in WidgetV1() 84 WidgetV3(std::allocator_arg_t, EvilAlloc<char> a, int v) : value_(v), alloc_(a) {} in WidgetV3()
|
/llvm-project/libcxx/test/std/utilities/memory/allocator.tag/ |
H A D | allocator_arg.verify.cpp | 20 std::allocator_arg_t f() { return {}; } // expected-error 1 {{chosen constructor is explicit in cop… in f()
|