/ndk/sources/cxx-stl/llvm-libc++/test/utilities/memory/allocator.traits/ |
rebind_traits.pass.cpp | 13 // struct allocator_traits 15 // template <class T> using rebind_traits = allocator_traits<rebind_alloc<T>>; 67 static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_traits<double>, std::allocator_traits<ReboundA<double> > >::value), ""); 68 static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_traits<double>, std::allocator_traits<ReboundB<double, char> > >::value), ""); 69 static_assert((std::is_same<std::allocator_traits<C<char> >::rebind_traits<double>, std::allocator_traits<C<double> > >::value), ""); 70 static_assert((std::is_same<std::allocator_traits<D<int, char> >::rebind_traits<double>, std::allocator_traits<D<double, char> > >::value), "") [all...] |
allocator_type.pass.cpp | 13 // struct allocator_traits 30 static_assert((std::is_same<std::allocator_traits<A<char> >::allocator_type, A<char> >::value), "");
|
value_type.pass.cpp | 13 // struct allocator_traits 30 static_assert((std::is_same<std::allocator_traits<A<char> >::value_type, char>::value), "");
|
/external/clang/test/SemaCXX/ |
PR9902.cpp | 17 struct allocator_traits struct 20 template <class T> using rebind_traits = allocator_traits<rebind_alloc<T>>; 28 allocator_traits<allocator<char>>::rebind_alloc<int> a;
|
PR9908.cpp | 11 struct allocator_traits struct 16 template <class T> using rebind_traits = allocator_traits<rebind_alloc<T>>; 32 allocator_traits<A<char> >::rebind_traits<double> a;
|
/ndk/sources/cxx-stl/llvm-libc++/test/utilities/memory/allocator.traits/allocator.traits.types/ |
rebind_alloc.pass.cpp | 13 // struct allocator_traits 67 static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_alloc<double>, ReboundA<double> >::value), ""); 68 static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_alloc<double>, ReboundB<double, char> >::value), ""); 69 static_assert((std::is_same<std::allocator_traits<C<char> >::rebind_alloc<double>, C<double> >::value), ""); 70 static_assert((std::is_same<std::allocator_traits<D<int, char> >::rebind_alloc<double>, D<double, char> >::value), ""); 71 static_assert((std::is_same<std::allocator_traits<E<char> >::rebind_alloc<double>, E<double> >::value), ""); 73 static_assert((std::is_same<std::allocator_traits<A<char> >::rebind_alloc<double>::other, ReboundA<double> >::value), ""); 74 static_assert((std::is_same<std::allocator_traits<B<int, char> >::rebind_alloc<double>::other, ReboundB<double, char> >::value), ""); 75 static_assert((std::is_same<std::allocator_traits<C<char> >::rebind_alloc<double>::other, C<double> >::value), ""); 76 static_assert((std::is_same<std::allocator_traits<D<int, char> >::rebind_alloc<double>::other, D<double, char> >::value), "") [all...] |
const_pointer.pass.cpp | 13 // struct allocator_traits 52 static_assert((std::is_same<std::allocator_traits<A<char> >::const_pointer, Ptr<const char> >::value), ""); 53 static_assert((std::is_same<std::allocator_traits<B<char> >::const_pointer, const char*>::value), ""); 54 static_assert((std::is_same<std::allocator_traits<C<char> >::const_pointer, CPtr<const char> >::value), "");
|
const_void_pointer.pass.cpp | 13 // struct allocator_traits 52 static_assert((std::is_same<std::allocator_traits<A<char> >::const_void_pointer, Ptr<const void> >::value), ""); 53 static_assert((std::is_same<std::allocator_traits<B<char> >::const_void_pointer, const void*>::value), ""); 54 static_assert((std::is_same<std::allocator_traits<C<char> >::const_void_pointer, CPtr<const void> >::value), "");
|
difference_type.pass.cpp | 13 // struct allocator_traits 59 static_assert((std::is_same<std::allocator_traits<A<char> >::difference_type, short>::value), ""); 60 static_assert((std::is_same<std::allocator_traits<B<char> >::difference_type, std::ptrdiff_t>::value), ""); 61 static_assert((std::is_same<std::allocator_traits<C<char> >::difference_type, signed char>::value), "");
|
size_type.pass.cpp | 13 // struct allocator_traits 58 static_assert((std::is_same<std::allocator_traits<A<char> >::size_type, unsigned short>::value), ""); 59 static_assert((std::is_same<std::allocator_traits<B<char> >::size_type, 61 static_assert((std::is_same<std::allocator_traits<C<char> >::size_type,
|
void_pointer.pass.cpp | 13 // struct allocator_traits 52 static_assert((std::is_same<std::allocator_traits<A<char> >::void_pointer, Ptr<void> >::value), ""); 53 static_assert((std::is_same<std::allocator_traits<B<char> >::void_pointer, void*>::value), ""); 54 static_assert((std::is_same<std::allocator_traits<C<char> >::void_pointer, CPtr<void> >::value), "");
|
pointer.pass.cpp | 13 // struct allocator_traits 40 static_assert((std::is_same<std::allocator_traits<A<char> >::pointer, Ptr<char> >::value), ""); 41 static_assert((std::is_same<std::allocator_traits<B<char> >::pointer, char*>::value), "");
|
propagate_on_container_copy_assignment.pass.cpp | 13 // struct allocator_traits 38 static_assert((std::is_same<std::allocator_traits<A<char> >::propagate_on_container_copy_assignment, std::true_type>::value), ""); 39 static_assert((std::is_same<std::allocator_traits<B<char> >::propagate_on_container_copy_assignment, std::false_type>::value), "");
|
propagate_on_container_move_assignment.pass.cpp | 13 // struct allocator_traits 38 static_assert((std::is_same<std::allocator_traits<A<char> >::propagate_on_container_move_assignment, std::true_type>::value), ""); 39 static_assert((std::is_same<std::allocator_traits<B<char> >::propagate_on_container_move_assignment, std::false_type>::value), "");
|
propagate_on_container_swap.pass.cpp | 13 // struct allocator_traits 38 static_assert((std::is_same<std::allocator_traits<A<char> >::propagate_on_container_swap, std::true_type>::value), ""); 39 static_assert((std::is_same<std::allocator_traits<B<char> >::propagate_on_container_swap, std::false_type>::value), "");
|
/ndk/sources/cxx-stl/llvm-libc++/test/utilities/memory/allocator.traits/allocator.traits.members/ |
max_size.pass.cpp | 13 // struct allocator_traits 47 assert(std::allocator_traits<A<int> >::max_size(a) == 52 assert(std::allocator_traits<A<int> >::max_size(a) == 58 assert(std::allocator_traits<B<int> >::max_size(b) == 100); 62 assert(std::allocator_traits<B<int> >::max_size(b) == 100);
|
select_on_container_copy_construction.pass.cpp | 13 // struct allocator_traits 52 assert(std::allocator_traits<A<int> >::select_on_container_copy_construction(a).id == 0); 56 assert(std::allocator_traits<A<int> >::select_on_container_copy_construction(a).id == 0); 61 assert(std::allocator_traits<B<int> >::select_on_container_copy_construction(b).id == 100); 65 assert(std::allocator_traits<B<int> >::select_on_container_copy_construction(b).id == 100);
|
allocate.pass.cpp | 13 // struct allocator_traits 37 assert(std::allocator_traits<A<int> >::allocate(a, 10) == (int*)0xDEADBEEF);
|
deallocate.pass.cpp | 13 // struct allocator_traits 40 std::allocator_traits<A<int> >::deallocate(a, (int*)0xDEADBEEF, 10);
|
destroy.pass.cpp | 13 // struct allocator_traits 61 std::allocator_traits<A<int> >::construct(a, (A0*)&a0); 63 std::allocator_traits<A<int> >::destroy(a, (A0*)&a0); 72 std::allocator_traits<B<int> >::construct(b, (A0*)&a0); 75 std::allocator_traits<B<int> >::destroy(b, (A0*)&a0);
|
construct.pass.cpp | 13 // struct allocator_traits 89 std::allocator_traits<A<int> >::construct(a, (A0*)&a0); 97 std::allocator_traits<A<int> >::construct(a, (A1*)&a1, 'c'); 105 std::allocator_traits<A<int> >::construct(a, (A2*)&a2, 'd', 5); 116 std::allocator_traits<B<int> >::construct(b, (A0*)&a0); 127 std::allocator_traits<B<int> >::construct(b, (A1*)&a1, 'c'); 138 std::allocator_traits<B<int> >::construct(b, (A2*)&a2, 'd', 5);
|
allocate_hint.pass.cpp | 13 // struct allocator_traits 56 assert(std::allocator_traits<A<int> >::allocate(a, 10, nullptr) == (int*)0xDEADBEEF); 59 assert(std::allocator_traits<B<int> >::allocate(b, 11, nullptr) == (int*)0xFEADBEEF);
|
/ndk/sources/cxx-stl/llvm-libc++/test/utilities/allocator.adaptor/allocator.adaptor.members/ |
select_on_container_copy_construction.pass.cpp | 30 A a2 = std::allocator_traits<A>::select_on_container_copy_construction(a1); 38 A a2 = std::allocator_traits<A>::select_on_container_copy_construction(a1); 48 A a2 = std::allocator_traits<A>::select_on_container_copy_construction(a1);
|
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.7/include/bits/ |
alloc_traits.h | 84 struct allocator_traits struct 203 using rebind_traits = allocator_traits<rebind_alloc<_Tp>>; 430 const bool allocator_traits<_Alloc>::__allocate_helper<_Alloc2>::value; 435 allocator_traits<_Alloc>::__construct_helper<_Tp, _Args...>::value; 439 const bool allocator_traits<_Alloc>::__destroy_helper<_Tp>::value; 443 const bool allocator_traits<_Alloc>::__maxsize_helper<_Alloc2>::value; 447 const bool allocator_traits<_Alloc>::__select_helper<_Alloc2>::value; 462 typedef allocator_traits<_Alloc> __traits; 470 typedef allocator_traits<_Alloc> __traits; 485 typedef allocator_traits<_Alloc> __traits [all...] |
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.7/include/ext/ |
alloc_traits.h | 111 : std::allocator_traits<_Alloc> 116 typedef std::allocator_traits<_Alloc> _Base_type;
|