Home
last modified time | relevance | path

Searched refs:A1 (Results 1 – 25 of 52) sorted by relevance

123

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/allocator.adaptor/allocator.adaptor.cnstr/
Dallocs.pass.cpp29 typedef std::scoped_allocator_adaptor<A1<int>> A; in main()
30 A1<int> a3(3); in main()
32 assert(a.outer_allocator() == A1<int>(3)); in main()
34 assert(A1<int>::copy_called == true); in main()
35 assert(A1<int>::move_called == false); in main()
37 A1<int>::copy_called = false; in main()
39 typedef std::scoped_allocator_adaptor<A1<int>> A; in main()
40 A a(A1<int>(3)); in main()
41 assert(a.outer_allocator() == A1<int>(3)); in main()
43 assert(A1<int>::copy_called == false); in main()
[all …]
Dconverting_move.pass.cpp29 typedef std::scoped_allocator_adaptor<A1<double>> B; in main()
30 typedef std::scoped_allocator_adaptor<A1<int>> A; in main()
31 B a1(A1<int>(3)); in main()
32 A1<int>::copy_called = false; in main()
33 A1<int>::move_called = false; in main()
35 assert(A1<int>::copy_called == false); in main()
36 assert(A1<int>::move_called == true); in main()
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()
[all …]
Dconverting_copy.pass.cpp29 typedef std::scoped_allocator_adaptor<A1<double>> B; in main()
30 typedef std::scoped_allocator_adaptor<A1<int>> A; in main()
31 B a1(A1<int>(3)); in main()
32 A1<int>::copy_called = false; in main()
33 A1<int>::move_called = false; in main()
35 assert(A1<int>::copy_called == true); in main()
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()
42 A1<int>::copy_called = false; in main()
[all …]
Dcopy.pass.cpp27 typedef std::scoped_allocator_adaptor<A1<int>> A; in main()
28 A a1(A1<int>(3)); in main()
29 A1<int>::copy_called = false; in main()
30 A1<int>::move_called = false; in main()
32 assert(A1<int>::copy_called == true); in main()
33 assert(A1<int>::move_called == false); in main()
37 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main()
38 A a1(A1<int>(4), A2<int>(5)); in main()
39 A1<int>::copy_called = false; in main()
40 A1<int>::move_called = false; in main()
[all …]
Ddefault.pass.cpp27 typedef std::scoped_allocator_adaptor<A1<int>> A; in main()
29 assert(a.outer_allocator() == A1<int>()); in main()
31 assert(A1<int>::copy_called == false); in main()
32 assert(A1<int>::move_called == false); in main()
35 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main()
37 assert(a.outer_allocator() == A1<int>()); in main()
39 assert(A1<int>::copy_called == false); in main()
40 assert(A1<int>::move_called == false); in main()
45 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main()
47 assert(a.outer_allocator() == A1<int>()); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/test/
Ddynamic_cast3.cpp21 struct A1 struct
24 virtual ~A1() {} in ~A1() argument
26 A1* getA1() {return this;} in getA1() argument
47 A1 a1; in test()
50 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1()); in test()
51 assert(dynamic_cast<A1*>(a2.getA2()) == 0); in test()
52 assert(dynamic_cast<A1*>(a3.getA3()) == 0); in test()
74 struct A1 struct
77 virtual ~A1() {} in ~A1() argument
79 A1* getA1() {return this;} in getA1() argument
[all …]
Ddynamic_cast5.cpp15 struct A1 struct
18 virtual ~A1() {} in ~A1() argument
20 A1* getA1() {return this;} in getA1() argument
32 : public virtual A1,
38 A1* getA1() {return A1::getA1();} in getA1()
50 t1::A1* getA1() {return A3::getA1();} in getA1()
63 t1::A1* getA1() {return A4::getA1();} in getA1()
72 A1 a1; in test()
78 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1()); in test()
79 assert(dynamic_cast<A1*>(a2.getA2()) == 0); in test()
[all …]
/ndk/sources/cxx-stl/gabi++/tests/
Ddynamic_cast3.cpp21 struct A1 struct
24 virtual ~A1() {} in ~A1() argument
26 A1* getA1() {return this;} in getA1() argument
47 A1 a1; in test()
50 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1()); in test()
51 assert(dynamic_cast<A1*>(a2.getA2()) == 0); in test()
52 assert(dynamic_cast<A1*>(a3.getA3()) == 0); in test()
74 struct A1 struct
77 virtual ~A1() {} in ~A1() argument
79 A1* getA1() {return this;} in getA1() argument
[all …]
Ddynamic_cast5.cpp15 struct A1 struct
18 virtual ~A1() {} in ~A1() argument
20 A1* getA1() {return this;} in getA1() argument
32 : public virtual A1,
38 A1* getA1() {return A1::getA1();} in getA1()
50 t1::A1* getA1() {return A3::getA1();} in getA1()
63 t1::A1* getA1() {return A4::getA1();} in getA1()
72 A1 a1; in test()
78 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1()); in test()
79 assert(dynamic_cast<A1*>(a2.getA2()) == 0); in test()
[all …]
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/bind/
Dmem_fn_cc.hpp25 template<class R, class T, class A1> _mfi::BOOST_MEM_FN_NAME(mf1)<R, T, A1> mem_fn(R (BOOST_MEM_FN_… in BOOST_MEM_FN_NAME()
27 return _mfi::BOOST_MEM_FN_NAME(mf1)<R, T, A1>(f); in BOOST_MEM_FN_NAME()
30 template<class R, class T, class A1> _mfi::BOOST_MEM_FN_NAME(cmf1)<R, T, A1> mem_fn(R (BOOST_MEM_FN… in BOOST_MEM_FN_NAME()
32 return _mfi::BOOST_MEM_FN_NAME(cmf1)<R, T, A1>(f); in BOOST_MEM_FN_NAME()
35 …plate<class R, class T, class A1, class A2> _mfi::BOOST_MEM_FN_NAME(mf2)<R, T, A1, A2> mem_fn(R (B… in BOOST_MEM_FN_NAME()
37 return _mfi::BOOST_MEM_FN_NAME(mf2)<R, T, A1, A2>(f); in BOOST_MEM_FN_NAME()
40 …late<class R, class T, class A1, class A2> _mfi::BOOST_MEM_FN_NAME(cmf2)<R, T, A1, A2> mem_fn(R (B… in BOOST_MEM_FN_NAME()
42 return _mfi::BOOST_MEM_FN_NAME(cmf2)<R, T, A1, A2>(f); in BOOST_MEM_FN_NAME()
45 …lass R, class T, class A1, class A2, class A3> _mfi::BOOST_MEM_FN_NAME(mf3)<R, T, A1, A2, A3> mem_… in BOOST_MEM_FN_NAME()
47 return _mfi::BOOST_MEM_FN_NAME(mf3)<R, T, A1, A2, A3>(f); in BOOST_MEM_FN_NAME()
[all …]
Dstorage.hpp40 template<class A1> struct storage1
42 explicit storage1( A1 a1 ): a1_( a1 ) {} in storage1()
49 A1 a1_;
76 template<class A1, class A2> struct storage2: public storage1<A1>
78 typedef storage1<A1> inherited;
80 storage2( A1 a1, A2 a2 ): storage1<A1>( a1 ), a2_( a2 ) {} in storage2()
93 template<class A1, int I> struct storage2< A1, boost::arg<I> >: public storage1<A1>
95 typedef storage1<A1> inherited;
97 storage2( A1 a1, boost::arg<I> ): storage1<A1>( a1 ) {} in storage2()
107 template<class A1, int I> struct storage2< A1, boost::arg<I> (*) () >: public storage1<A1>
[all …]
Dbind_template.hpp29 template<class A1> result_type operator()(A1 & a1) in operator ()()
31 list1<A1 &> a(a1); in operator ()()
35 template<class A1> result_type operator()(A1 & a1) const in operator ()()
37 list1<A1 &> a(a1); in operator ()()
44 template<class A1> result_type operator()(A1 const & a1) in operator ()()
46 list1<A1 const &> a(a1); in operator ()()
50 template<class A1> result_type operator()(A1 const & a1) const in operator ()()
52 list1<A1 const &> a(a1); in operator ()()
58 template<class A1, class A2> result_type operator()(A1 & a1, A2 & a2) in operator ()()
60 list2<A1 &, A2 &> a(a1, a2); in operator ()()
[all …]
Dbind_mf_cc.hpp18 class A1>
19 _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(mf0)<R, T>, typename _bi::list_av_1<A1>::type>
20 BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) (), A1 a1) in BOOST_BIND()
23 typedef typename _bi::list_av_1<A1>::type list_type; in BOOST_BIND()
28 class A1>
29 _bi::bind_t<R, _mfi::BOOST_BIND_MF_NAME(cmf0)<R, T>, typename _bi::list_av_1<A1>::type>
30 BOOST_BIND(R (BOOST_BIND_MF_CC T::*f) () const, A1 a1) in BOOST_BIND()
33 typedef typename _bi::list_av_1<A1>::type list_type; in BOOST_BIND()
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>
[all …]
Dbind_mf2_cc.hpp19 class A1>
20 _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(mf0)<R, T>, typename _bi::list_av_1<A1>::type>
21 BOOST_BIND(boost::type<Rt2>, R (BOOST_BIND_MF_CC T::*f) (), A1 a1) in BOOST_BIND()
24 typedef typename _bi::list_av_1<A1>::type list_type; in BOOST_BIND()
29 class A1>
30 _bi::bind_t<Rt2, _mfi::BOOST_BIND_MF_NAME(cmf0)<R, T>, typename _bi::list_av_1<A1>::type>
31 BOOST_BIND(boost::type<Rt2>, R (BOOST_BIND_MF_CC T::*f) () const, A1 a1) in BOOST_BIND()
34 typedef typename _bi::list_av_1<A1>::type list_type; in BOOST_BIND()
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>
[all …]
Dbind_cc.hpp24 template<class R, class B1, class A1>
25 _bi::bind_t<R, BOOST_BIND_ST R (BOOST_BIND_CC *) (B1), typename _bi::list_av_1<A1>::type>
26 BOOST_BIND(BOOST_BIND_ST R (BOOST_BIND_CC *f) (B1), A1 a1) in BOOST_BIND()
29 typedef typename _bi::list_av_1<A1>::type list_type; in BOOST_BIND()
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>…
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/allocator.adaptor/
Dtypes.pass.cpp36 A1<int>, in main()
37 std::scoped_allocator_adaptor<A1<int>> in main()
41 std::scoped_allocator_adaptor<A1<int>>::outer_allocator_type, in main()
42 A1<int>>::value), ""); in main()
45 std::scoped_allocator_adaptor<A1<int>>::size_type, in main()
49 std::scoped_allocator_adaptor<A1<int>>::difference_type, in main()
53 std::scoped_allocator_adaptor<A1<int>>::pointer, in main()
57 std::scoped_allocator_adaptor<A1<int>>::const_pointer, in main()
61 std::scoped_allocator_adaptor<A1<int>>::void_pointer, in main()
65 std::scoped_allocator_adaptor<A1<int>>::const_void_pointer, in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/allocator.adaptor/allocator.adaptor.members/
Douter_allocator.pass.cpp28 typedef std::scoped_allocator_adaptor<A1<int>> A; in main()
29 A a(A1<int>(5)); in main()
30 assert(a.outer_allocator() == A1<int>(5)); in main()
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.outer_allocator() == A1<int>(5)); 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()
40 assert(a.outer_allocator() == A1<int>(5)); in main()
Dallocate_size.pass.cpp27 typedef std::scoped_allocator_adaptor<A1<int>> A; in main()
29 A1<int>::allocate_called = false; in main()
31 assert(A1<int>::allocate_called == true); in main()
34 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main()
36 A1<int>::allocate_called = false; in main()
38 assert(A1<int>::allocate_called == true); in main()
41 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main()
43 A1<int>::allocate_called = false; in main()
45 assert(A1<int>::allocate_called == true); in main()
Dallocate_size_hint.pass.cpp27 typedef std::scoped_allocator_adaptor<A1<int>> A; in main()
29 A1<int>::allocate_called = false; in main()
31 assert(A1<int>::allocate_called == true); in main()
34 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main()
36 A1<int>::allocate_called = false; in main()
38 assert(A1<int>::allocate_called == true); in main()
41 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main()
43 A1<int>::allocate_called = false; in main()
45 assert(A1<int>::allocate_called == true); in main()
Dmax_size.pass.cpp27 typedef std::scoped_allocator_adaptor<A1<int>> A; in main()
28 const A a(A1<int>(100)); in main()
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()
Dinner_allocator.pass.cpp28 typedef std::scoped_allocator_adaptor<A1<int>> A; in main()
29 A a(A1<int>(5)); in main()
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()
Ddeallocate.pass.cpp27 typedef std::scoped_allocator_adaptor<A1<int>> A; in main()
30 assert((A1<int>::deallocate_called == std::pair<int*, std::size_t>((int*)10, 20))); in main()
33 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>> A; in main()
36 assert((A1<int>::deallocate_called == std::pair<int*, std::size_t>((int*)10, 20))); in main()
39 typedef std::scoped_allocator_adaptor<A1<int>, A2<int>, A3<int>> A; in main()
42 assert((A1<int>::deallocate_called == std::pair<int*, std::size_t>((int*)10, 20))); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/allocator.adaptor/scoped.adaptor.operators/
Deq.pass.cpp35 typedef std::scoped_allocator_adaptor<A1<int>> A; in main()
36 A a1(A1<int>(3)); in main()
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/utilities/memory/allocator.traits/allocator.traits.members/
Dconstruct.pass.cpp57 struct A1 struct
60 A1(char c) in A1() argument
67 int A1::count = 0;
93 A1::count = 0; in main()
95 std::aligned_storage<sizeof(A1)>::type a1; in main()
96 assert(A1::count == 0); in main()
97 std::allocator_traits<A<int> >::construct(a, (A1*)&a1, 'c'); in main()
98 assert(A1::count == 1); in main()
121 A1::count = 0; in main()
124 std::aligned_storage<sizeof(A1)>::type a1; in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/support/
Dallocators.h19 class A1
23 explicit A1(int id = 0) : id_(id) {} in id_()
34 A1(const A1& a) : id_(a.id()) {copy_called = true;} in A1() function
35 A1(A1&& a) : id_(a.id()) {move_called = true;} in A1() function
38 A1(const A1<U>& a) : id_(a.id()) {copy_called = true;} in A1() function
40 A1(A1<U>&& a) : id_(a.id()) {move_called = true;} in A1() function
56 template <class T> bool A1<T>::copy_called = false;
57 template <class T> bool A1<T>::move_called = false;
58 template <class T> bool A1<T>::allocate_called = false;
59 template <class T> std::pair<T*, std::size_t> A1<T>::deallocate_called;
[all …]

123