Home
last modified time | relevance | path

Searched refs:allocator_traits (Results 1 – 25 of 59) sorted by relevance

123

/external/libcxx/test/std/utilities/memory/allocator.traits/
Drebind_traits.pass.cpp69 …static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_traits<double>, std::allocator… in main()
70 …static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_traits<double>, std::allo… in main()
71 …static_assert((std::is_same<std::allocator_traits<C<char> >::rebind_traits<double>, std::allocator… in main()
72 …static_assert((std::is_same<std::allocator_traits<D<int, char> >::rebind_traits<double>, std::allo… in main()
73 …static_assert((std::is_same<std::allocator_traits<E<char> >::rebind_traits<double>, std::allocator… in main()
75 …static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_traits<double>::other, std::al… in main()
76 …static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_traits<double>::other, st… in main()
77 …static_assert((std::is_same<std::allocator_traits<C<char> >::rebind_traits<double>::other, std::al… in main()
78 …static_assert((std::is_same<std::allocator_traits<D<int, char> >::rebind_traits<double>::other, st… in main()
79 …static_assert((std::is_same<std::allocator_traits<E<char> >::rebind_traits<double>::other, std::al… in main()
/external/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.types/
Dis_always_equal.pass.cpp29 std::allocator_traits<A1<int>>::is_always_equal, std::false_type>::value in main()
33 std::allocator_traits<min_allocator<int>>::is_always_equal, std::true_type>::value in main()
40 std::allocator_traits<A1<int>>::is_always_equal in main()
47 std::allocator_traits<min_allocator<int>>::is_always_equal in main()
53 ( std::allocator_traits<A1<int>>::is_always_equal::value && in main()
54 std::allocator_traits<A2<int>>::is_always_equal::value) in main()
60 ( std::allocator_traits<A1<int>>::is_always_equal::value && in main()
61 std::allocator_traits<min_allocator<int>>::is_always_equal::value) in main()
68 ( std::allocator_traits<A1<int>>::is_always_equal::value && in main()
69 std::allocator_traits<A2<int>>::is_always_equal::value && in main()
[all …]
/external/libcxx/test/std/utilities/memory/allocator.traits/allocator.traits.types/
Drebind_alloc.pass.cpp87 …static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_alloc<double>, ReboundA<double… in main()
88 …static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_alloc<double>, ReboundB<d… in main()
89 …static_assert((std::is_same<std::allocator_traits<C<char> >::rebind_alloc<double>, C<double> >::va… in main()
90 …static_assert((std::is_same<std::allocator_traits<D<int, char> >::rebind_alloc<double>, D<double, … in main()
91 …static_assert((std::is_same<std::allocator_traits<E<char> >::rebind_alloc<double>, E<double> >::va… in main()
92 …static_assert((std::is_same<std::allocator_traits<F<char> >::rebind_alloc<double>, F<double> >::va… in main()
93 …static_assert((std::is_same<std::allocator_traits<G<char> >::rebind_alloc<double>, G<double> >::va… in main()
95 …static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_alloc<double>::other, ReboundA… in main()
96 …static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_alloc<double>::other, Reb… in main()
97 …static_assert((std::is_same<std::allocator_traits<C<char> >::rebind_alloc<double>::other, C<double… in main()
[all …]
Dis_always_equal.pass.cpp45 …static_assert((std::is_same<std::allocator_traits<A<char> >::is_always_equal, std::true_type>::val… in main()
46 …static_assert((std::is_same<std::allocator_traits<B<char> >::is_always_equal, std::true_type>::val… in main()
47 …static_assert((std::is_same<std::allocator_traits<C<char> >::is_always_equal, std::false_type>::va… in main()
49 …static_assert((std::is_same<std::allocator_traits<A<const char> >::is_always_equal, std::true_type… in main()
50 …static_assert((std::is_same<std::allocator_traits<B<const char> >::is_always_equal, std::true_type… in main()
51 …static_assert((std::is_same<std::allocator_traits<C<const char> >::is_always_equal, std::false_typ… in main()
Dvoid_pointer.pass.cpp62 …static_assert((std::is_same<std::allocator_traits<A<char> >::void_pointer, Ptr<void> >::value), ""… in main()
63 static_assert((std::is_same<std::allocator_traits<B<char> >::void_pointer, void*>::value), ""); in main()
64 …static_assert((std::is_same<std::allocator_traits<C<char> >::void_pointer, CPtr<void> >::value), "… in main()
66 static_assert((std::is_same<std::allocator_traits<D<char> >::void_pointer, void*>::value), ""); in main()
Dconst_void_pointer.pass.cpp63 …static_assert((std::is_same<std::allocator_traits<A<char> >::const_void_pointer, Ptr<const void> >… in main()
64 …static_assert((std::is_same<std::allocator_traits<B<char> >::const_void_pointer, const void*>::val… in main()
65 …static_assert((std::is_same<std::allocator_traits<C<char> >::const_void_pointer, CPtr<const void> … in main()
67 …static_assert((std::is_same<std::allocator_traits<D<char> >::const_void_pointer, const void*>::val… in main()
Dconst_pointer.pass.cpp61 …static_assert((std::is_same<std::allocator_traits<A<char> >::const_pointer, Ptr<const char> >::val… in main()
62 …static_assert((std::is_same<std::allocator_traits<B<char> >::const_pointer, const char*>::value), … in main()
63 …static_assert((std::is_same<std::allocator_traits<C<char> >::const_pointer, CPtr<const char> >::va… in main()
65 …static_assert((std::is_same<std::allocator_traits<D<char> >::const_pointer, const char*>::value), … in main()
Dsize_type.pass.cpp68 …static_assert((std::is_same<std::allocator_traits<A<char> >::size_type, unsigned short>::value), "… in main()
69 static_assert((std::is_same<std::allocator_traits<B<char> >::size_type, in main()
71 static_assert((std::is_same<std::allocator_traits<C<char> >::size_type, in main()
74 …static_assert((std::is_same<std::allocator_traits<D<char> >::size_type, unsigned short>::value), "… in main()
Ddifference_type.pass.cpp72 … static_assert((std::is_same<std::allocator_traits<A<char> >::difference_type, short>::value), ""); in main()
73 …static_assert((std::is_same<std::allocator_traits<B<char> >::difference_type, std::ptrdiff_t>::val… in main()
74 …static_assert((std::is_same<std::allocator_traits<C<char> >::difference_type, signed char>::value)… in main()
76 …static_assert((std::is_same<std::allocator_traits<D<char> >::difference_type, std::ptrdiff_t>::val… in main()
Dpointer.pass.cpp49 static_assert((std::is_same<std::allocator_traits<A<char> >::pointer, Ptr<char> >::value), ""); in main()
50 static_assert((std::is_same<std::allocator_traits<B<char> >::pointer, char*>::value), ""); in main()
52 static_assert((std::is_same<std::allocator_traits<C<char> >::pointer, char*>::value), ""); in main()
Dpropagate_on_container_move_assignment.pass.cpp50 …static_assert((std::is_same<std::allocator_traits<A<char> >::propagate_on_container_move_assignmen… in main()
51 …static_assert((std::is_same<std::allocator_traits<B<char> >::propagate_on_container_move_assignmen… in main()
53 …static_assert((std::is_same<std::allocator_traits<C<char> >::propagate_on_container_move_assignmen… in main()
Dpropagate_on_container_copy_assignment.pass.cpp49 …static_assert((std::is_same<std::allocator_traits<A<char> >::propagate_on_container_copy_assignmen… in main()
50 …static_assert((std::is_same<std::allocator_traits<B<char> >::propagate_on_container_copy_assignmen… in main()
52 …static_assert((std::is_same<std::allocator_traits<C<char> >::propagate_on_container_copy_assignmen… in main()
Dpropagate_on_container_swap.pass.cpp48 …static_assert((std::is_same<std::allocator_traits<A<char> >::propagate_on_container_swap, std::tru… in main()
49 …static_assert((std::is_same<std::allocator_traits<B<char> >::propagate_on_container_swap, std::fal… in main()
51 …static_assert((std::is_same<std::allocator_traits<C<char> >::propagate_on_container_swap, std::fal… in main()
/external/libcxx/test/std/utilities/memory/allocator.traits/allocator.traits.members/
Dmax_size.pass.cpp50 assert(std::allocator_traits<B<int> >::max_size(b) == 100); in main()
54 assert(std::allocator_traits<B<int> >::max_size(b) == 100); in main()
60 assert(std::allocator_traits<Alloc >::max_size(a) == 100); in main()
65 assert(std::allocator_traits<A<int> >::max_size(a) == in main()
70 assert(std::allocator_traits<A<int> >::max_size(a) == in main()
75 … static_assert(noexcept(std::allocator_traits<std::allocator<int>>::max_size(a)) == true, ""); in main()
Dselect_on_container_copy_construction.pass.cpp55 assert(std::allocator_traits<A<int> >::select_on_container_copy_construction(a).id == 0); in main()
59 assert(std::allocator_traits<A<int> >::select_on_container_copy_construction(a).id == 0); in main()
65 assert(std::allocator_traits<Alloc>::select_on_container_copy_construction(a).id == 0); in main()
70 assert(std::allocator_traits<B<int> >::select_on_container_copy_construction(b).id == 100); in main()
74 assert(std::allocator_traits<B<int> >::select_on_container_copy_construction(b).id == 100); in main()
Dconstruct.pass.cpp92 std::allocator_traits<A<int> >::construct(a, (A0*)&a0); in main()
100 std::allocator_traits<A<int> >::construct(a, (A1*)&a1, 'c'); in main()
108 std::allocator_traits<A<int> >::construct(a, (A2*)&a2, 'd', 5); in main()
116 std::allocator_traits<Alloc>::construct(a, (VT*)&store, nullptr); in main()
126 std::allocator_traits<B<int> >::construct(b, (A0*)&a0); in main()
137 std::allocator_traits<B<int> >::construct(b, (A1*)&a1, 'c'); in main()
148 std::allocator_traits<B<int> >::construct(b, (A2*)&a2, 'd', 5); in main()
Ddestroy.pass.cpp64 std::allocator_traits<A<int> >::construct(a, (A0*)&a0); in main()
66 std::allocator_traits<A<int> >::destroy(a, (A0*)&a0); in main()
74 std::allocator_traits<Alloc>::destroy(a, (VT*)&store); in main()
82 std::allocator_traits<B<int> >::construct(b, (A0*)&a0); in main()
85 std::allocator_traits<B<int> >::destroy(b, (A0*)&a0); in main()
Dallocate_hint.pass.cpp62 …assert(std::allocator_traits<A<int> >::allocate(a, 10, nullptr) == reinterpret_cast<int*>(static_c… in main()
68 …assert(std::allocator_traits<Alloc >::allocate(a, 10, nullptr) == reinterpret_cast<VT*>(static_cas… in main()
73 …assert(std::allocator_traits<B<int> >::allocate(b, 11, nullptr) == reinterpret_cast<int*>(static_c… in main()
79 …assert(std::allocator_traits<Alloc >::allocate(b, 11, nullptr) == reinterpret_cast<VT*>(static_cas… in main()
Dallocate.fail.cpp49 …std::allocator_traits<A<int> >::allocate(a, 10); // expected-error {{ignoring return valu… in main()
50 …std::allocator_traits<A<int> >::allocate(a, 10, nullptr); // expected-error {{ignoring return valu… in main()
Dallocate.pass.cpp41 …assert(std::allocator_traits<A<int> >::allocate(a, 10) == reinterpret_cast<int*>(static_cast<std::… in main()
47 …assert(std::allocator_traits<Alloc >::allocate(a, 10) == reinterpret_cast<VT*>(static_cast<std::ui… in main()
/external/libcxx/include/
Dscoped_allocator23 typedef allocator_traits<OuterAlloc> OuterTraits; // exposition only
131 static const bool value = allocator_traits<_A0>::
139 allocator_traits<_A0>::propagate_on_container_copy_assignment::value ||
148 static const bool value = allocator_traits<_A0>::
156 allocator_traits<_A0>::propagate_on_container_move_assignment::value ||
165 static const bool value = allocator_traits<_A0>::
173 allocator_traits<_A0>::propagate_on_container_swap::value ||
182 static const bool value = allocator_traits<_A0>::is_always_equal::value;
189 allocator_traits<_A0>::is_always_equal::value &&
272 allocator_traits<outer_allocator_type>::
[all …]
/external/clang/test/SemaCXX/
DPR9902.cpp17 struct allocator_traits struct
20 template <class T> using rebind_traits = allocator_traits<rebind_alloc<T>>; argument
28 allocator_traits<allocator<char>>::rebind_alloc<int> a; in main()
DPR9908.cpp11 struct allocator_traits struct
16 template <class T> using rebind_traits = allocator_traits<rebind_alloc<T>>; argument
32 allocator_traits<A<char> >::rebind_traits<double> a; in main()
/external/libcxx/test/std/strings/basic.string/
Dtypes.pass.cpp53 …static_assert((std::is_same<typename S::size_type, typename std::allocator_traits<Allocator>::size… in test()
54 …static_assert((std::is_same<typename S::difference_type, typename std::allocator_traits<Allocator>… in test()
57 …static_assert((std::is_same<typename S::pointer, typename std::allocator_traits<Allocator>::pointe… in test()
58 …static_assert((std::is_same<typename S::const_pointer, typename std::allocator_traits<Allocator>::… in test()
/external/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.members/
Dselect_on_container_copy_construction.pass.cpp30 A a2 = std::allocator_traits<A>::select_on_container_copy_construction(a1); in main()
38 A a2 = std::allocator_traits<A>::select_on_container_copy_construction(a1); in main()
48 A a2 = std::allocator_traits<A>::select_on_container_copy_construction(a1); in main()

123