/ndk/sources/cxx-stl/gabi++/tests/ |
D | dynamic_cast3.cpp | 29 struct A2 struct 32 virtual ~A2() {} in ~A2() argument 34 A2* getA2() {return this;} in getA2() argument 48 A2 a2; in test() 53 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test() 54 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test() 55 assert(dynamic_cast<A2*>(a3.getA3()) == 0); in test() 82 struct A2 struct 85 virtual ~A2() {} in ~A2() argument 87 A2* getA2() {return this;} in getA2() argument [all …]
|
D | dynamic_cast5.cpp | 23 struct A2 struct 26 virtual ~A2() {} in ~A2() argument 28 A2* getA2() {return this;} in getA2() argument 33 private A2 39 A2* getA2() {return A2::getA2();} in getA2() 45 public A2 51 A2* getA2() {return A3::getA2();} in getA2() 64 A2* getA2() {return A4::getA2();} in getA2() 73 A2 a2; in test() 93 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/test/ |
D | dynamic_cast3.pass.cpp | 30 struct A2 struct 33 virtual ~A2() {} in ~A2() argument 35 A2* getA2() {return this;} in getA2() argument 49 A2 a2; in test() 54 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test() 55 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test() 56 assert(dynamic_cast<A2*>(a3.getA3()) == 0); in test() 83 struct A2 struct 86 virtual ~A2() {} in ~A2() argument 88 A2* getA2() {return this;} in getA2() argument [all …]
|
D | dynamic_cast5.pass.cpp | 24 struct A2 struct 27 virtual ~A2() {} in ~A2() argument 29 A2* getA2() {return this;} in getA2() argument 34 private A2 40 A2* getA2() {return A2::getA2();} in getA2() 46 public A2 52 A2* getA2() {return A3::getA2();} in getA2() 65 A2* getA2() {return A4::getA2();} in getA2() 74 A2 a2; in test() 94 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/allocator.adaptor/allocator.adaptor.cnstr/ |
D | allocs.pass.cpp | 48 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 50 A a(a4, A2<int>(5)); in main() 53 assert(A2<int>::copy_called == true); in main() 54 assert(A2<int>::move_called == false); in main() 56 assert(a.inner_allocator() == std::scoped_allocator_adaptor<A2<int>>(A2<int>(5))); in main() 60 A2<int>::copy_called = false; in main() 61 A2<int>::move_called = false; in main() 63 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 64 A a(A1<int>(4), A2<int>(5)); in main() 67 assert(A2<int>::copy_called == true); in main() [all …]
|
D | converting_move.pass.cpp | 40 typedef std::scoped_allocator_adaptor<A1<double>, A2<int>> B; in main() 41 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 42 B a1(A1<int>(4), A2<int>(5)); in main() 45 A2<int>::copy_called = false; in main() 46 A2<int>::move_called = false; in main() 50 assert(A2<int>::copy_called == false); in main() 51 assert(A2<int>::move_called == true); in main() 55 typedef std::scoped_allocator_adaptor<A1<double>, A2<int>, A3<int>> B; in main() 56 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 57 B a1(A1<int>(4), A2<int>(5), A3<int>(6)); in main() [all …]
|
D | converting_copy.pass.cpp | 39 typedef std::scoped_allocator_adaptor<A1<double>, A2<int>> B; in main() 40 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 41 B a1(A1<int>(4), A2<int>(5)); in main() 44 A2<int>::copy_called = false; in main() 45 A2<int>::move_called = false; in main() 48 assert(A2<int>::copy_called == true); in main() 52 typedef std::scoped_allocator_adaptor<A1<double>, A2<int>, A3<int>> B; in main() 53 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 54 B a1(A1<int>(4), A2<int>(5), A3<int>(6)); in main() 57 A2<int>::copy_called = false; in main() [all …]
|
D | copy.pass.cpp | 37 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 38 A a1(A1<int>(4), A2<int>(5)); in main() 41 A2<int>::copy_called = false; in main() 42 A2<int>::move_called = false; in main() 46 assert(A2<int>::copy_called == true); in main() 47 assert(A2<int>::move_called == false); in main() 51 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 52 A a1(A1<int>(4), A2<int>(5), A3<int>(6)); in main() 55 A2<int>::copy_called = false; in main() 56 A2<int>::move_called = false; in main() [all …]
|
D | default.pass.cpp | 35 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 38 assert(a.inner_allocator() == std::scoped_allocator_adaptor<A2<int>>()); in main() 41 assert(A2<int>::copy_called == false); in main() 42 assert(A2<int>::move_called == false); in main() 45 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 48 assert((a.inner_allocator() == std::scoped_allocator_adaptor<A2<int>, A3<int>>())); in main() 51 assert(A2<int>::copy_called == false); in main() 52 assert(A2<int>::move_called == false); in main()
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/bind/ |
D | mem_fn_cc.hpp | 35 …lass R, class T, class A1, class A2> _mfi::BOOST_MEM_FN_NAME(mf2)<R, T, A1, A2> mem_fn(R (BOOST_ME… in BOOST_MEM_FN_NAME() 37 return _mfi::BOOST_MEM_FN_NAME(mf2)<R, T, A1, A2>(f); in BOOST_MEM_FN_NAME() 40 …ass R, class T, class A1, class A2> _mfi::BOOST_MEM_FN_NAME(cmf2)<R, T, A1, A2> mem_fn(R (BOOST_ME… in BOOST_MEM_FN_NAME() 42 return _mfi::BOOST_MEM_FN_NAME(cmf2)<R, T, A1, A2>(f); in BOOST_MEM_FN_NAME() 45 … class T, class A1, class A2, class A3> _mfi::BOOST_MEM_FN_NAME(mf3)<R, T, A1, A2, A3> mem_fn(R (B… in BOOST_MEM_FN_NAME() 47 return _mfi::BOOST_MEM_FN_NAME(mf3)<R, T, A1, A2, A3>(f); in BOOST_MEM_FN_NAME() 50 …class T, class A1, class A2, class A3> _mfi::BOOST_MEM_FN_NAME(cmf3)<R, T, A1, A2, A3> mem_fn(R (B… in BOOST_MEM_FN_NAME() 52 return _mfi::BOOST_MEM_FN_NAME(cmf3)<R, T, A1, A2, A3>(f); in BOOST_MEM_FN_NAME() 55 …T, class A1, class A2, class A3, class A4> _mfi::BOOST_MEM_FN_NAME(mf4)<R, T, A1, A2, A3, A4> mem_… in BOOST_MEM_FN_NAME() 57 return _mfi::BOOST_MEM_FN_NAME(mf4)<R, T, A1, A2, A3, A4>(f); in BOOST_MEM_FN_NAME() [all …]
|
D | storage.hpp | 76 template<class A1, class A2> struct storage2: public storage1<A1> 80 storage2( A1 a1, A2 a2 ): storage1<A1>( a1 ), a2_( a2 ) {} in storage2() 88 A2 a2_; 125 template<class A1, class A2, class A3> struct storage3: public storage2< A1, A2 > 127 typedef storage2<A1, A2> inherited; 129 storage3( A1 a1, A2 a2, A3 a3 ): storage2<A1, A2>( a1, a2 ), a3_( a3 ) {} in storage3() 142 template<class A1, class A2, int I> struct storage3< A1, A2, boost::arg<I> >: public storage2< A1, … 144 typedef storage2<A1, A2> inherited; 146 storage3( A1 a1, A2 a2, boost::arg<I> ): storage2<A1, A2>( a1, a2 ) {} in storage3() 156 template<class A1, class A2, int I> struct storage3< A1, A2, boost::arg<I> (*) () >: public storage… [all …]
|
D | bind_template.hpp | 58 template<class A1, class A2> result_type operator()(A1 & a1, A2 & a2) in operator ()() 60 list2<A1 &, A2 &> a(a1, a2); in operator ()() 64 template<class A1, class A2> result_type operator()(A1 & a1, A2 & a2) const in operator ()() 66 list2<A1 &, A2 &> a(a1, a2); in operator ()() 73 template<class A1, class A2> result_type operator()(A1 const & a1, A2 & a2) in operator ()() 75 list2<A1 const &, A2 &> a(a1, a2); in operator ()() 79 template<class A1, class A2> result_type operator()(A1 const & a1, A2 & a2) const in operator ()() 81 list2<A1 const &, A2 &> a(a1, a2); in operator ()() 86 template<class A1, class A2> result_type operator()(A1 & a1, A2 const & a2) in operator ()() 88 list2<A1 &, A2 const &> a(a1, a2); in operator ()() [all …]
|
D | bind_mf2_cc.hpp | 42 class A1, class A2> 43 _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(mf1)<R, T, B1>, typename _bi::list_av_2<A1, A2>::type> 44 BOOST_BIND(boost::type<Rt2>, R (BOOST_BIND_MF_CC T::*f) (B1), A1 a1, A2 a2) in BOOST_BIND() 47 typedef typename _bi::list_av_2<A1, A2>::type list_type; in BOOST_BIND() 53 class A1, class A2> 54 … _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(cmf1)<R, T, B1>, typename _bi::list_av_2<A1, A2>::type> 55 BOOST_BIND(boost::type<Rt2>, R (BOOST_BIND_MF_CC T::*f) (B1) const, A1 a1, A2 a2) in BOOST_BIND() 58 typedef typename _bi::list_av_2<A1, A2>::type list_type; in BOOST_BIND() 66 class A1, class A2, class A3> 67 …_bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(mf2)<R, T, B1, B2>, typename _bi::list_av_3<A1, A2, A3>:… [all …]
|
D | bind_mf_cc.hpp | 41 class A1, class A2> 42 _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(mf1)<R, T, B1>, typename _bi::list_av_2<A1, A2>::type> 43 BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1), A1 a1, A2 a2) in BOOST_BIND() 46 typedef typename _bi::list_av_2<A1, A2>::type list_type; in BOOST_BIND() 52 class A1, class A2> 53 _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(cmf1)<R, T, B1>, typename _bi::list_av_2<A1, A2>::type> 54 BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (B1) const, A1 a1, A2 a2) in BOOST_BIND() 57 typedef typename _bi::list_av_2<A1, A2>::type list_type; in BOOST_BIND() 65 class A1, class A2, class A3> 66 …_bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(mf2)<R, T, B1, B2>, typename _bi::list_av_3<A1, A2, A3>::t… [all …]
|
D | bind_cc.hpp | 33 template<class R, class B1, class B2, class A1, class A2> 34 … _bi::bind_t<R, BOOST_BIND_ST R (BOOST_BIND_CC *) (B1, B2), typename _bi::list_av_2<A1, A2>::type> 35 BOOST_BIND(BOOST_BIND_ST R (BOOST_BIND_CC *f) (B1, B2), A1 a1, A2 a2) in BOOST_BIND() 38 typedef typename _bi::list_av_2<A1, A2>::type list_type; in BOOST_BIND() 44 class A1, class A2, class A3> 45 …_bi::bind_t<R, BOOST_BIND_ST R (BOOST_BIND_CC *) (B1, B2, B3), typename _bi::list_av_3<A1, A2, A3>… 46 BOOST_BIND(BOOST_BIND_ST R (BOOST_BIND_CC *f) (B1, B2, B3), A1 a1, A2 a2, A3 a3) in BOOST_BIND() 49 typedef typename _bi::list_av_3<A1, A2, A3>::type list_type; in BOOST_BIND() 55 class A1, class A2, class A3, class A4> 56 … BOOST_BIND_ST R (BOOST_BIND_CC *) (B1, B2, B3, B4), typename _bi::list_av_4<A1, A2, A3, A4>::type> [all …]
|
D | bind.hpp | 275 template< class A1, class A2 > class list2: private storage2< A1, A2 > 279 typedef storage2< A1, A2 > base_type; 283 list2( A1 a1, A2 a2 ): base_type( a1, a2 ) {} in list2() 286 A2 operator[] (boost::arg<2>) const { return base_type::a2_; } in operator []() 289 A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; } in operator []() 352 template< class A1, class A2, class A3 > class list3: private storage3< A1, A2, A3 > 356 typedef storage3< A1, A2, A3 > base_type; 360 list3( A1 a1, A2 a2, A3 a3 ): base_type( a1, a2, a3 ) {} in list3() 363 A2 operator[] (boost::arg<2>) const { return base_type::a2_; } in operator []() 367 A2 operator[] (boost::arg<2> (*) ()) const { return base_type::a2_; } in operator []() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/allocator.adaptor/allocator.adaptor.members/ |
D | allocate_size_hint.pass.cpp | 34 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 41 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 49 typedef std::scoped_allocator_adaptor<A2<int>> A; in main() 51 A2<int>::allocate_called = false; in main() 53 assert(A2<int>::allocate_called == true); in main() 56 typedef std::scoped_allocator_adaptor<A2<int>, A2<int>> A; in main() 58 A2<int>::allocate_called = false; in main() 60 assert(A2<int>::allocate_called == true); in main() 63 typedef std::scoped_allocator_adaptor<A2<int>, A2<int>, A3<int>> A; in main() 65 A2<int>::allocate_called = false; in main() [all …]
|
D | inner_allocator.pass.cpp | 33 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 34 A a(A1<int>(5), A2<int>(6)); in main() 35 assert(a.inner_allocator() == std::scoped_allocator_adaptor<A2<int>>(A2<int>(6))); in main() 38 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 39 A a(A1<int>(5), A2<int>(6), A3<int>(8)); in main() 41 std::scoped_allocator_adaptor<A2<int>, A3<int>>(A2<int>(6), A3<int>(8)))); in main()
|
D | max_size.pass.cpp | 32 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 33 const A a(A1<int>(20), A2<int>()); in main() 37 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 38 const A a(A1<int>(200), A2<int>(), A3<int>()); in main()
|
D | outer_allocator.pass.cpp | 33 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 34 A a(A1<int>(5), A2<int>(6)); in main() 38 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 39 A a(A1<int>(5), A2<int>(6), A3<int>(8)); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/allocator.traits/allocator.traits.members/ |
D | construct.pass.cpp | 69 struct A2 struct 72 A2(char c, int i) in A2() argument 80 int A2::count = 0; 101 A2::count = 0; in main() 103 std::aligned_storage<sizeof(A2)>::type a2; in main() 104 assert(A2::count == 0); in main() 105 std::allocator_traits<A<int> >::construct(a, (A2*)&a2, 'd', 5); in main() 106 assert(A2::count == 1); in main() 132 A2::count = 0; in main() 135 std::aligned_storage<sizeof(A2)>::type a2; in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/allocator.adaptor/ |
D | types.pass.cpp | 69 A2<int>, in main() 70 std::scoped_allocator_adaptor<A2<int>, A1<int>> in main() 74 std::scoped_allocator_adaptor<A2<int>, A1<int>>::outer_allocator_type, in main() 75 A2<int>>::value), ""); in main() 78 std::scoped_allocator_adaptor<A2<int>, A1<int>>::size_type, in main() 82 std::scoped_allocator_adaptor<A2<int>, A1<int>>::difference_type, in main() 86 std::scoped_allocator_adaptor<A2<int>, A1<int>>::pointer, in main() 90 std::scoped_allocator_adaptor<A2<int>, A1<int>>::const_pointer, in main() 94 std::scoped_allocator_adaptor<A2<int>, A1<int>>::void_pointer, in main() 98 std::scoped_allocator_adaptor<A2<int>, A1<int>>::const_void_pointer, in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/allocator.adaptor/scoped.adaptor.operators/ |
D | eq.pass.cpp | 42 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main() 43 A a1(A1<int>(4), A2<int>(5)); in main() 49 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 50 A a1(A1<int>(4), A2<int>(5), A3<int>(6)); in main() 56 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main() 57 A a1(A1<int>(4), A2<int>(5), A3<int>(6)); in main() 58 A a2(A1<int>(4), A2<int>(5), A3<int>(5)); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/support/ |
D | allocators.h | 76 class A2 80 explicit A2(int id = 0) : id_(id) {} in id_() 95 A2(const A2& a) : id_(a.id()) {copy_called = true;} in A2() function 96 A2(A2&& a) : id_(a.id()) {move_called = true;} in A2() function 105 template <class T> bool A2<T>::copy_called = false; 106 template <class T> bool A2<T>::move_called = false; 107 template <class T> bool A2<T>::allocate_called = false; 111 bool operator==(const A2<T>& x, const A2<U>& y) 118 bool operator!=(const A2<T>& x, const A2<U>& y)
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/allocator.adaptor/allocator.adaptor.types/ |
D | inner_allocator_type.pass.cpp | 31 std::scoped_allocator_adaptor<A1<int>, A2<int>>::inner_allocator_type, in main() 32 std::scoped_allocator_adaptor<A2<int>>>::value), ""); in main() 35 std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>>::inner_allocator_type, in main() 36 std::scoped_allocator_adaptor<A2<int>, A3<int>>>::value), ""); in main()
|