Searched refs:pointer_traits (Results 1 - 11 of 11) sorted by relevance

/external/libcxx/test/std/utilities/memory/pointer.traits/
H A Dpointer_to.pass.cpp13 // struct pointer_traits<T*>
26 int* a = std::pointer_traits<int*>::pointer_to(i);
30 (std::pointer_traits<void*>::element_type)0;
H A Drebind.pass.cpp13 // struct pointer_traits<T*>
27 static_assert((std::is_same<std::pointer_traits<int*>::rebind<double>, double*>::value), "");
29 static_assert((std::is_same<std::pointer_traits<int*>::rebind<double>::other, double*>::value), "");
H A Delement_type.pass.cpp13 // struct pointer_traits<T*>
24 static_assert((std::is_same<std::pointer_traits<const short*>::element_type, const short>::value), "");
H A Ddifference_type.pass.cpp13 // struct pointer_traits<T*>
24 static_assert((std::is_same<std::pointer_traits<double*>::difference_type, std::ptrdiff_t>::value), "");
H A Dpointer.pass.cpp13 // struct pointer_traits
30 static_assert((std::is_same<std::pointer_traits<A>::pointer, A>::value), "");
31 static_assert((std::is_same<std::pointer_traits<int*>::pointer, int*>::value), "");
/external/libcxx/test/std/utilities/memory/pointer.traits/pointer.traits.types/
H A Ddifference_type.pass.cpp13 // struct pointer_traits
58 static_assert((std::is_same<std::pointer_traits<A>::difference_type, char>::value), "");
59 static_assert((std::is_same<std::pointer_traits<B>::difference_type, std::ptrdiff_t>::value), "");
60 static_assert((std::is_same<std::pointer_traits<C<double> >::difference_type, std::ptrdiff_t>::value), "");
61 static_assert((std::is_same<std::pointer_traits<D<int> >::difference_type, char>::value), "");
62 static_assert((std::is_same<std::pointer_traits<E<int> >::difference_type, std::ptrdiff_t>::value), "");
64 static_assert((std::is_same<std::pointer_traits<F<int>>::difference_type, std::ptrdiff_t>::value), "");
H A Delement_type.pass.cpp13 // struct pointer_traits
59 static_assert((std::is_same<std::pointer_traits<A>::element_type, char>::value), "");
60 static_assert((std::is_same<std::pointer_traits<B<int> >::element_type, char>::value), "");
61 static_assert((std::is_same<std::pointer_traits<C<int> >::element_type, int>::value), "");
62 static_assert((std::is_same<std::pointer_traits<D<double, int> >::element_type, double>::value), "");
63 static_assert((std::is_same<std::pointer_traits<E<double, int> >::element_type, double>::value), "");
65 static_assert((std::is_same<std::pointer_traits<F<double>>::element_type, double>::value), "");
H A Drebind.pass.cpp13 // struct pointer_traits
88 static_assert((std::is_same<std::pointer_traits<A<int*> >::rebind<double*>, A<double*> >::value), "");
89 static_assert((std::is_same<std::pointer_traits<B<int> >::rebind<double>, B1<double> >::value), "");
90 static_assert((std::is_same<std::pointer_traits<C<char, int> >::rebind<double>, C<double, int> >::value), "");
91 static_assert((std::is_same<std::pointer_traits<D<char, int> >::rebind<double>, D1<double, int> >::value), "");
92 static_assert((std::is_same<std::pointer_traits<E<char, int> >::rebind<double>, E<double, int> >::value), "");
93 static_assert((std::is_same<std::pointer_traits<F<char, int> >::rebind<double>, F<double, int> >::value), "");
96 static_assert((std::is_same<std::pointer_traits<G<char, int> >::rebind<double>, G<double, int> >::value), "");
99 static_assert((std::is_same<std::pointer_traits<A<int*> >::rebind<double*>::other, A<double*> >::value), "");
100 static_assert((std::is_same<std::pointer_traits<
[all...]
/external/libcxx/test/std/utilities/memory/pointer.traits/pointer.traits.functions/
H A Dpointer_to.pass.cpp13 // struct pointer_traits
42 A<int> a = std::pointer_traits<A<int> >::pointer_to(i);
46 (std::pointer_traits<A<void> >::element_type)0;
/external/libcxx/test/std/utilities/memory/allocator.traits/allocator.traits.types/
H A Ddifference_type.pass.cpp16 // | pointer_traits<pointer>::difference_type difference_type;
61 struct pointer_traits<C<char>::pointer> struct in namespace:std
H A Dsize_type.pass.cpp59 struct pointer_traits<C<char>::pointer> struct in namespace:std

Completed in 152 milliseconds