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

123

/prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/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*>
25 static_assert((std::is_same<std::pointer_traits<int*>::rebind<double>, double*>::value), "");
27 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), "");
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/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*>
25 static_assert((std::is_same<std::pointer_traits<int*>::rebind<double>, double*>::value), "");
27 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), "");
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/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*>
25 static_assert((std::is_same<std::pointer_traits<int*>::rebind<double>, double*>::value), "");
27 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), "");
/prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/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
57 static_assert((std::is_same<std::pointer_traits<A>::element_type, char>::value), "");
58 static_assert((std::is_same<std::pointer_traits<B<int> >::element_type, char>::value), "");
59 static_assert((std::is_same<std::pointer_traits<C<int> >::element_type, int>::value), "");
60 static_assert((std::is_same<std::pointer_traits<D<double, int> >::element_type, double>::value), "");
61 static_assert((std::is_same<std::pointer_traits<E<double, int> >::element_type, double>::value), "");
63 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...]
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/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
57 static_assert((std::is_same<std::pointer_traits<A>::element_type, char>::value), "");
58 static_assert((std::is_same<std::pointer_traits<B<int> >::element_type, char>::value), "");
59 static_assert((std::is_same<std::pointer_traits<C<int> >::element_type, int>::value), "");
60 static_assert((std::is_same<std::pointer_traits<D<double, int> >::element_type, double>::value), "");
61 static_assert((std::is_same<std::pointer_traits<E<double, int> >::element_type, double>::value), "");
63 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...]
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/pointer.traits/pointer.traits.types/
H A Ddifference_type.pass.cpp13 // struct pointer_traits
44 static_assert((std::is_same<std::pointer_traits<A>::difference_type, char>::value), "");
45 static_assert((std::is_same<std::pointer_traits<B>::difference_type, std::ptrdiff_t>::value), "");
46 static_assert((std::is_same<std::pointer_traits<C<double> >::difference_type, std::ptrdiff_t>::value), "");
47 static_assert((std::is_same<std::pointer_traits<D<int> >::difference_type, char>::value), "");
H A Delement_type.pass.cpp13 // struct pointer_traits
45 static_assert((std::is_same<std::pointer_traits<A>::element_type, char>::value), "");
46 static_assert((std::is_same<std::pointer_traits<B<int> >::element_type, char>::value), "");
47 static_assert((std::is_same<std::pointer_traits<C<int> >::element_type, int>::value), "");
48 static_assert((std::is_same<std::pointer_traits<D<double, int> >::element_type, double>::value), "");
H A Drebind.pass.cpp13 // struct pointer_traits
59 static_assert((std::is_same<std::pointer_traits<A<int*> >::rebind<double*>, A<double*> >::value), "");
60 static_assert((std::is_same<std::pointer_traits<B<int> >::rebind<double>, B1<double> >::value), "");
61 static_assert((std::is_same<std::pointer_traits<C<char, int> >::rebind<double>, C<double, int> >::value), "");
62 static_assert((std::is_same<std::pointer_traits<D<char, int> >::rebind<double>, D1<double, int> >::value), "");
64 static_assert((std::is_same<std::pointer_traits<A<int*> >::rebind<double*>::other, A<double*> >::value), "");
65 static_assert((std::is_same<std::pointer_traits<B<int> >::rebind<double>::other, B1<double> >::value), "");
66 static_assert((std::is_same<std::pointer_traits<C<char, int> >::rebind<double>::other, C<double, int> >::value), "");
67 static_assert((std::is_same<std::pointer_traits<D<char, int> >::rebind<double>::other, D1<double, int> >::value), "");
/prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/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;

Completed in 264 milliseconds

123