Home
last modified time | relevance | path

Searched refs:allocator_arg_t (Results 1 – 25 of 48) sorted by relevance

12

/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/
H A Dalloc_convert_non_const_copy.pass.cpp40 …tic_assert(ImplicitlyConstructible< std::tuple<ConvertibleFrom<MutableCopy>>, std::allocator_arg_t,
47 …(!ImplicitlyConstructible<std::tuple<ExplicitConstructibleFrom<MutableCopy>>, std::allocator_arg_t,
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()
96 …static_assert(!std::is_constructible_v<std::tuple<int, int>, std::allocator_arg_t, const test_allo… in test()
102 …tatic_assert(!std::is_constructible_v< std::tuple<int, NoConstructorFromInt>, std::allocator_arg_t, in test()
108 … std::tuple<ConvertibleFrom<TracedCopyMove>> t2{std::allocator_arg_t{}, test_allocator<int>{}, t1}; in test()
116 std::tuple<TracedCopyMove> t2{std::allocator_arg_t{}, test_allocator<int>{}, t1}; in test()
124 … std::tuple<TracedCopyMove, TracedCopyMove> t2{std::allocator_arg_t{}, test_allocator<int>{}, t1}; in test()
134 …std::tuple<ConvertibleFrom<CvtFromTupleRef>> t2{std::allocator_arg_t{}, test_allocator<int>{}, t1}; in test()
[all …]
H A Dalloc_convert_const_move.pass.cpp40 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>&,
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()
103 …tatic_assert(!std::is_constructible_v< std::tuple<int, NoConstructorFromInt>, std::allocator_arg_t, in test()
109 …std::tuple<ConvertibleFrom<TracedCopyMove>> t2{std::allocator_arg_t{}, test_allocator<int>{}, std:… in test()
117 std::tuple<TracedCopyMove> t2{std::allocator_arg_t{}, test_allocator<int>{}, std::move(t1)}; in test()
125 …std::tuple<TracedCopyMove, TracedCopyMove> t2{std::allocator_arg_t{}, test_allocator<int>{}, std::… in test()
[all …]
H A Dalloc_non_const_pair.pass.cpp33 static_assert(std::is_constructible_v<std::tuple<MutableCopy, int>, std::allocator_arg_t, test_allo…
36 static_assert(!std::is_constructible_v< std::tuple<MutableCopy>, std::allocator_arg_t, test_allocat…
39 static_assert(!std::is_constructible_v< std::tuple<MutableCopy, int, int>, std::allocator_arg_t, te…
46 …std::is_constructible_v<std::tuple<int, int>, std::allocator_arg_t, test_allocator<int>, std::pair…
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 … std::allocator_arg_t, test_allocator<int>, std::pair<MutableCopy, MutableCopy>&>);
65 … std::allocator_arg_t, test_allocator<int>, std::pair<MutableCopy, MutableCopy>&>);
69 … std::allocator_arg_t, test_allocator<int>, std::pair<MutableCopy, MutableCopy>&>);
H A Dalloc_const_move_pair.pass.cpp33 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 DPR23256_constrain_UTypes_ctor.pass.cpp76 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 Dalloc_UTypes.pass.cpp39 struct DerivedFromAllocArgT : std::allocator_arg_t {};
53 std::allocator_arg_t, A1<int>, MoveOnly in test_uses_allocator_sfinae_evaluation()
58 std::allocator_arg_t, A1<int>, MoveOnly, MoveOnly, BadDefault in test_uses_allocator_sfinae_evaluation()
66 std::allocator_arg_t, A1<int>, MoveOnly, MoveOnly in test_uses_allocator_sfinae_evaluation()
71 std::allocator_arg_t, A1<int>, MoveOnly, MoveOnly, BadDefault, BadDefault in test_uses_allocator_sfinae_evaluation()
H A Dconvert_types.h23 constexpr MutableCopy(std::allocator_arg_t, const test_allocator<int>&, MutableCopy& o) in MutableCopy()
39 constexpr ConstCopy(std::allocator_arg_t, const test_allocator<int>&, const ConstCopy& o)
55 constexpr MutableMove(std::allocator_arg_t, const test_allocator<int>&, MutableMove&& o)
71 constexpr ConstMove(std::allocator_arg_t, const test_allocator<int>&, const ConstMove&& o)
99 constexpr ConvertibleFrom(std::allocator_arg_t, const test_allocator<int>&, U&& _u)
129 constexpr ExplicitConstructibleFrom(std::allocator_arg_t, const test_allocator<int>&, U&& _u)
163 constexpr TracedCopyMove(std::allocator_arg_t, const test_allocator<int>&, U&& _u)
H A Dalloc.pass.cpp37 struct DerivedFromAllocArgT : std::allocator_arg_t {};
95 struct DerivedFromAllocatorArgT : std::allocator_arg_t { }; in main()
/llvm-project-15.0.7/libcxx/test/std/thread/futures/futures.task/futures.task.members/
H A Dctor2.compile.pass.cpp28 static_assert(!std::is_constructible<PT, std::allocator_arg_t, test_allocator<A>, VPT>::value, "");
33 static_assert(!std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, const PA&>::value…
34 static_assert(!std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, const PA&&>::valu…
35 static_assert(!std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, volatile PA&>::va…
36 static_assert(!std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, volatile PA&&>::v…
38 static_assert( std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, const PI&>::value…
39 static_assert( std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, const PI&&>::valu…
40 static_assert( std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, volatile PI&>::va…
41 static_assert( std::is_constructible<PA, std::allocator_arg_t, std::allocator<A>, volatile PI&&>::v…
/llvm-project-15.0.7/libcxx/include/__memory/
H A Dallocator_arg_t.h24 struct _LIBCPP_TEMPLATE_VIS allocator_arg_t { explicit allocator_arg_t() = default; }; struct
27 extern _LIBCPP_EXPORTED_FROM_ABI const allocator_arg_t allocator_arg;
29 /* inline */ constexpr allocator_arg_t allocator_arg = allocator_arg_t();
42 is_constructible<_Tp, allocator_arg_t, _Alloc, _Args...>::value;
/llvm-project-15.0.7/libcxx/include/
H A Dtuple49 tuple(allocator_arg_t, const Alloc& a);
209 #include <__memory/allocator_arg_t.h>
379 : _Hp(allocator_arg_t(), __a) {}
585 : __base_(allocator_arg_t(), __a,
600 : __base_(allocator_arg_t(), __a,
649 : __base_(allocator_arg_t(), __a,
666 : __base_(allocator_arg_t(), __a,
726 : __base_(allocator_arg_t(), __a,
742 : __base_(allocator_arg_t(), __a,
853 …tuple(allocator_arg_t, const _Alloc& __alloc, tuple<_Up...>& __t) : __base_(allocator_arg_t(), __a…
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/
H A Dalloc_first.h26 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-15.0.7/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/
H A Dalloc_F.pass.cpp128 …static_assert(std::is_constructible<Fn, std::allocator_arg_t, std::allocator<int>, LValueCallable&… in main()
129 …static_assert(std::is_constructible<Fn, std::allocator_arg_t, std::allocator<int>, LValueCallable>… in main()
130 …static_assert(!std::is_constructible<Fn, std::allocator_arg_t, std::allocator<int>, RValueCallable… in main()
131 …static_assert(!std::is_constructible<Fn, std::allocator_arg_t, std::allocator<int>, RValueCallable… in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/
H A Dconstruct_pair.pass.cpp50 std::tuple<std::allocator_arg_t, SA&>&&, in test_no_inner_alloc()
73 std::tuple<std::allocator_arg_t, SA&>&&, in test_no_inner_alloc()
106 std::tuple<std::allocator_arg_t, SAInner&>&&, in test_with_inner_alloc()
133 std::tuple<std::allocator_arg_t, SAInner&>&&, in test_with_inner_alloc()
H A Dconstruct_pair_rvalue.pass.cpp54 std::tuple<std::allocator_arg_t, SA&, int&>&&, in test_no_inner_alloc()
81 std::tuple<std::allocator_arg_t, SA&, int&&>&&, in test_no_inner_alloc()
118 std::tuple<std::allocator_arg_t, SAInner&, int&>&&, in test_with_inner_alloc()
149 std::tuple<std::allocator_arg_t, SAInner&, int&&>&&, in test_with_inner_alloc()
H A Dconstruct_pair_values.pass.cpp52 std::tuple<std::allocator_arg_t, SA&, int&>&&, in test_no_inner_alloc()
77 std::tuple<std::allocator_arg_t, SA&, int&&>&&, in test_no_inner_alloc()
112 std::tuple<std::allocator_arg_t, SAInner&, int&>&&, in test_with_inner_alloc()
141 std::tuple<std::allocator_arg_t, SAInner&, int&&>&&, in test_with_inner_alloc()
H A Dconstruct_pair_piecewise.pass.cpp55 std::tuple<std::allocator_arg_t, SA&, int&>&&, in test_no_inner_alloc()
82 std::tuple<std::allocator_arg_t, SA&, int&&>&&, in test_no_inner_alloc()
119 std::tuple<std::allocator_arg_t, SAInner&, int&>&&, in test_with_inner_alloc()
150 std::tuple<std::allocator_arg_t, SAInner&, int&&>&&, in test_with_inner_alloc()
H A Dconstruct_pair_const_lvalue_pair.pass.cpp54 std::tuple<std::allocator_arg_t, SA&, int&>&&, in test_no_inner_alloc()
81 std::tuple<std::allocator_arg_t, SA&, int const&>&&, in test_no_inner_alloc()
118 std::tuple<std::allocator_arg_t, SAInner&, int&>&&, in test_with_inner_alloc()
149 std::tuple<std::allocator_arg_t, SAInner&, int const&>&&, in test_with_inner_alloc()
H A Dconstruct.pass.cpp31 explicit B(std::allocator_arg_t, const allocator_type& a, int i) in B()
47 explicit C(std::allocator_arg_t, const allocator_type& a, int i) in C()
120 G(std::allocator_arg_t, allocator_type&&) { assert(false); } in G()
/llvm-project-15.0.7/libcxx/include/__functional/
H A Dfunction.h1016 function(allocator_arg_t, const _Alloc&) _NOEXCEPT {}
1023 function(allocator_arg_t, const _Alloc&, function&&);
1025 function(allocator_arg_t, const _Alloc& __a, _Fp __f);
1702 function(allocator_arg_t, const _Alloc&) : __f_(0) {}
1709 function(allocator_arg_t, const _Alloc& __a, _Fp __f,
1980 function(allocator_arg_t, const _Alloc&) : __f_(0) {}
1987 function(allocator_arg_t, const _Alloc& __a, _Fp __f,
2258 function(allocator_arg_t, const _Alloc&) : __f_(0) {}
2265 function(allocator_arg_t, const _Alloc& __a, _Fp __f,
2535 function(allocator_arg_t, const _Alloc&) : __f_(0) {}
[all …]
/llvm-project-15.0.7/libcxx/src/
H A Dmemory.cpp28 const allocator_arg_t allocator_arg = allocator_arg_t();
/llvm-project-15.0.7/libcxx/test/support/
H A Duses_alloc_types.h230 UsesAllocatorTestBase(std::allocator_arg_t, CtorAlloc const& a, Args&&...)
287 UsesAllocatorV1(std::allocator_arg_t tag, CtorAlloc const & a, Args&&... args)
347 UsesAllocatorV3(std::allocator_arg_t tag, CtorAlloc const& alloc, Args&&... args)
378 NotUsesAllocator(std::allocator_arg_t tag, CtorAlloc const& alloc, Args&&... args)
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/allocator.tag/
H A Dallocator_arg.fail.cpp21 std::allocator_arg_t f() { return {}; } // expected-error 1 {{chosen constructor is explicit in cop… in f()
H A Dallocator_arg.pass.cpp18 void test(std::allocator_arg_t) {} in test() argument
/llvm-project-15.0.7/clang/test/Parser/
H A DPR11000.cpp7 tuple(allocator_arg_t, const _Alloc&) {} in tuple() argument

12