Home
last modified time | relevance | path

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

12

/external/libcxx/test/utilities/memory/allocator.traits/
Drebind_traits.pass.cpp67 …static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_traits<double>, std::allocator… in main()
68 …static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_traits<double>, std::allo… in main()
69 …static_assert((std::is_same<std::allocator_traits<C<char> >::rebind_traits<double>, std::allocator… in main()
70 …static_assert((std::is_same<std::allocator_traits<D<int, char> >::rebind_traits<double>, std::allo… in main()
71 …static_assert((std::is_same<std::allocator_traits<E<char> >::rebind_traits<double>, std::allocator… in main()
73 …static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_traits<double>::other, std::al… in main()
74 …static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_traits<double>::other, st… in main()
75 …static_assert((std::is_same<std::allocator_traits<C<char> >::rebind_traits<double>::other, std::al… in main()
76 …static_assert((std::is_same<std::allocator_traits<D<int, char> >::rebind_traits<double>::other, st… in main()
77 …static_assert((std::is_same<std::allocator_traits<E<char> >::rebind_traits<double>::other, std::al… in main()
Dvalue_type.pass.cpp30 static_assert((std::is_same<std::allocator_traits<A<char> >::value_type, char>::value), ""); in main()
/external/libcxx/test/utilities/memory/allocator.traits/allocator.traits.types/
Drebind_alloc.pass.cpp67 …static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_alloc<double>, ReboundA<double… in main()
68 …static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_alloc<double>, ReboundB<d… in main()
69 …static_assert((std::is_same<std::allocator_traits<C<char> >::rebind_alloc<double>, C<double> >::va… in main()
70 …static_assert((std::is_same<std::allocator_traits<D<int, char> >::rebind_alloc<double>, D<double, … in main()
71 …static_assert((std::is_same<std::allocator_traits<E<char> >::rebind_alloc<double>, E<double> >::va… in main()
73 …static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_alloc<double>::other, ReboundA… in main()
74 …static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_alloc<double>::other, Reb… in main()
75 …static_assert((std::is_same<std::allocator_traits<C<char> >::rebind_alloc<double>::other, C<double… in main()
76 …static_assert((std::is_same<std::allocator_traits<D<int, char> >::rebind_alloc<double>::other, D<d… in main()
77 …static_assert((std::is_same<std::allocator_traits<E<char> >::rebind_alloc<double>::other, E<double… in main()
Dconst_void_pointer.pass.cpp52 …static_assert((std::is_same<std::allocator_traits<A<char> >::const_void_pointer, Ptr<const void> >… in main()
53 …static_assert((std::is_same<std::allocator_traits<B<char> >::const_void_pointer, const void*>::val… in main()
54 …static_assert((std::is_same<std::allocator_traits<C<char> >::const_void_pointer, CPtr<const void> … in main()
Ddifference_type.pass.cpp59 … static_assert((std::is_same<std::allocator_traits<A<char> >::difference_type, short>::value), ""); in main()
60 …static_assert((std::is_same<std::allocator_traits<B<char> >::difference_type, std::ptrdiff_t>::val… in main()
61 …static_assert((std::is_same<std::allocator_traits<C<char> >::difference_type, signed char>::value)… in main()
Dvoid_pointer.pass.cpp52 …static_assert((std::is_same<std::allocator_traits<A<char> >::void_pointer, Ptr<void> >::value), ""… in main()
53 static_assert((std::is_same<std::allocator_traits<B<char> >::void_pointer, void*>::value), ""); in main()
54 …static_assert((std::is_same<std::allocator_traits<C<char> >::void_pointer, CPtr<void> >::value), "… in main()
Dsize_type.pass.cpp58 …static_assert((std::is_same<std::allocator_traits<A<char> >::size_type, unsigned short>::value), "… in main()
59 static_assert((std::is_same<std::allocator_traits<B<char> >::size_type, in main()
61 static_assert((std::is_same<std::allocator_traits<C<char> >::size_type, in main()
Dconst_pointer.pass.cpp52 …static_assert((std::is_same<std::allocator_traits<A<char> >::const_pointer, Ptr<const char> >::val… in main()
53 …static_assert((std::is_same<std::allocator_traits<B<char> >::const_pointer, const char*>::value), … in main()
54 …static_assert((std::is_same<std::allocator_traits<C<char> >::const_pointer, CPtr<const char> >::va… in main()
Dpointer.pass.cpp40 static_assert((std::is_same<std::allocator_traits<A<char> >::pointer, Ptr<char> >::value), ""); in main()
41 static_assert((std::is_same<std::allocator_traits<B<char> >::pointer, char*>::value), ""); in main()
Dpropagate_on_container_move_assignment.pass.cpp38 …static_assert((std::is_same<std::allocator_traits<A<char> >::propagate_on_container_move_assignmen… in main()
39 …static_assert((std::is_same<std::allocator_traits<B<char> >::propagate_on_container_move_assignmen… in main()
Dpropagate_on_container_copy_assignment.pass.cpp38 …static_assert((std::is_same<std::allocator_traits<A<char> >::propagate_on_container_copy_assignmen… in main()
39 …static_assert((std::is_same<std::allocator_traits<B<char> >::propagate_on_container_copy_assignmen… in main()
Dpropagate_on_container_swap.pass.cpp38 …static_assert((std::is_same<std::allocator_traits<A<char> >::propagate_on_container_swap, std::tru… in main()
39 …static_assert((std::is_same<std::allocator_traits<B<char> >::propagate_on_container_swap, std::fal… in main()
/external/libcxx/test/utilities/memory/allocator.traits/allocator.traits.members/
Dmax_size.pass.cpp47 assert(std::allocator_traits<A<int> >::max_size(a) == in main()
52 assert(std::allocator_traits<A<int> >::max_size(a) == in main()
58 assert(std::allocator_traits<B<int> >::max_size(b) == 100); in main()
62 assert(std::allocator_traits<B<int> >::max_size(b) == 100); in main()
67 … static_assert(noexcept(std::allocator_traits<std::allocator<int>>::max_size(a)) == true, ""); in main()
Dselect_on_container_copy_construction.pass.cpp52 assert(std::allocator_traits<A<int> >::select_on_container_copy_construction(a).id == 0); in main()
56 assert(std::allocator_traits<A<int> >::select_on_container_copy_construction(a).id == 0); in main()
61 assert(std::allocator_traits<B<int> >::select_on_container_copy_construction(b).id == 100); in main()
65 assert(std::allocator_traits<B<int> >::select_on_container_copy_construction(b).id == 100); in main()
Dconstruct.pass.cpp89 std::allocator_traits<A<int> >::construct(a, (A0*)&a0); in main()
97 std::allocator_traits<A<int> >::construct(a, (A1*)&a1, 'c'); in main()
105 std::allocator_traits<A<int> >::construct(a, (A2*)&a2, 'd', 5); in main()
116 std::allocator_traits<B<int> >::construct(b, (A0*)&a0); in main()
127 std::allocator_traits<B<int> >::construct(b, (A1*)&a1, 'c'); in main()
138 std::allocator_traits<B<int> >::construct(b, (A2*)&a2, 'd', 5); in main()
Ddestroy.pass.cpp61 std::allocator_traits<A<int> >::construct(a, (A0*)&a0); in main()
63 std::allocator_traits<A<int> >::destroy(a, (A0*)&a0); in main()
72 std::allocator_traits<B<int> >::construct(b, (A0*)&a0); in main()
75 std::allocator_traits<B<int> >::destroy(b, (A0*)&a0); in main()
Dallocate_hint.pass.cpp56 assert(std::allocator_traits<A<int> >::allocate(a, 10, nullptr) == (int*)0xDEADBEEF); in main()
59 assert(std::allocator_traits<B<int> >::allocate(b, 11, nullptr) == (int*)0xFEADBEEF); in main()
/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/include/
Dscoped_allocator23 typedef allocator_traits<OuterAlloc> OuterTraits; // exposition only
127 static const bool value = allocator_traits<_A0>::
135 allocator_traits<_A0>::propagate_on_container_copy_assignment::value ||
144 static const bool value = allocator_traits<_A0>::
152 allocator_traits<_A0>::propagate_on_container_move_assignment::value ||
161 static const bool value = allocator_traits<_A0>::
169 allocator_traits<_A0>::propagate_on_container_swap::value ||
252 allocator_traits<outer_allocator_type>::
254 allocator_traits<inner_allocator_type>::
317 allocator_traits<outer_allocator_type>::
[all …]
/external/libcxx/test/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/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()
/external/libcxx/test/utilities/allocator.adaptor/allocator.adaptor.types/
Dallocator_pointers.pass.cpp37 typename std::allocator_traits<Alloc>::pointer vp; in test_pointer()
38 typename std::allocator_traits<Alloc>::const_pointer cvp; in test_pointer()
71 typename std::allocator_traits<Alloc>::void_pointer vp; in test_void_pointer()
72 typename std::allocator_traits<Alloc>::const_void_pointer cvp; in test_void_pointer()
/external/libcxx/test/utilities/memory/default.allocator/
Dallocator_pointers.pass.cpp37 typename std::allocator_traits<Alloc>::pointer vp; in test_pointer()
38 typename std::allocator_traits<Alloc>::const_pointer cvp; in test_pointer()
71 typename std::allocator_traits<Alloc>::void_pointer vp; in test_void_pointer()
72 typename std::allocator_traits<Alloc>::const_void_pointer cvp; in test_void_pointer()
/external/libcxx/test/containers/sequences/vector.bool/
Dtypes.pass.cpp47 …static_assert((std::is_same<typename C::size_type, typename std::allocator_traits<Allocator>::size… in test()
48 …static_assert((std::is_same<typename C::difference_type, typename std::allocator_traits<Allocator>… in test()

12