/ndk/sources/cxx-stl/stlport/stlport/stl/ |
D | _function_base.h | 64 template <class _Tp> 65 struct equal_to : public binary_function<_Tp, _Tp, bool> { 66 bool operator()(const _Tp& __x, const _Tp& __y) const { return __x == __y; } in operator() 69 template <class _Tp> 70 struct less : public binary_function<_Tp,_Tp,bool> 76 , public __stlport_class<less<_Tp> > 79 bool operator()(const _Tp& __x, const _Tp& __y) const { return __x < __y; } in operator() 82 void _M_swap_workaround(less<_Tp>& __x) {} in _M_swap_workaround() 87 template <class _Tp> 88 struct __type_traits<less<_Tp> > { [all …]
|
D | _iterator_base.h | 57 template <class _Category, class _Tp, _STLP_DFL_TMPL_PARAM(_Distance,ptrdiff_t), 58 _STLP_DFL_TMPL_PARAM(_Pointer,_Tp*), _STLP_DFL_TMPL_PARAM(_Reference,_Tp&) > 61 typedef _Tp value_type; 78 # define _STLP_ITERATOR_CATEGORY(_It, _Tp) _STLP_STD::iterator_category(_It) 79 # define _STLP_DISTANCE_TYPE(_It, _Tp) _STLP_STD::distance_type(_It) 80 # define _STLP_VALUE_TYPE(_It, _Tp) _STLP_STD::value_type(_It) 83 # define _STLP_IS_REF_TYPE_REAL_REF(_It, _Tp) __false_type() 86 # define _STLP_VALUE_TYPE(_It, _Tp) (_STLP_TYPENAME _STLP_STD::iterator_traits< _Tp >::va… 87 # define _STLP_DISTANCE_TYPE(_It, _Tp) (_STLP_TYPENAME _STLP_STD::iterator_traits< _Tp >::di… 90 # define _STLP_ITERATOR_CATEGORY(_It, _Tp) _STLP_STD::iterator_traits< _Tp >::iterator_categor… [all …]
|
D | _function_adaptors.h | 64 template<class _Result, class _Tp> 65 class _Mem_fun0_ptr : public unary_function<_Tp*, _Result> { 67 typedef _Result (_Tp::*__fun_type) (); 71 _Result operator ()(_Tp* __p) const { return (__p->*_M_f)(); } in operator() 77 template<class _Result, class _Tp, class _Arg> 78 class _Mem_fun1_ptr : public binary_function<_Tp*,_Arg,_Result> { 80 typedef _Result (_Tp::*__fun_type) (_Arg); 84 _Result operator ()(_Tp* __p, _Arg __x) const { return (__p->*_M_f)(__x); } in operator() 90 template<class _Result, class _Tp> 91 class _Const_mem_fun0_ptr : public unary_function<const _Tp*,_Result> { [all …]
|
D | _valarray.h | 47 template <class _Tp> class valarray; 51 template <class _Tp> class slice_array; 52 template <class _Tp> class gslice_array; 53 template <class _Tp> class mask_array; 54 template <class _Tp> class indirect_array; 63 template <class _Tp> 65 _Tp* _M_first; 74 _M_first = __STATIC_CAST(_Tp*, __stl_new(__n * sizeof(_Tp))); in _M_allocate() 90 template <class _Tp> 91 class valarray : private _Valarray_base<_Tp> [all …]
|
D | _tempbuf.h | 47 template <class _Tp> 48 pair<_Tp*, ptrdiff_t> _STLP_CALL 49 __get_temporary_buffer(ptrdiff_t __len, _Tp*); 53 template <class _Tp> 54 inline pair<_Tp*, ptrdiff_t> _STLP_CALL get_temporary_buffer(ptrdiff_t __len) { in get_temporary_buffer() 55 return __get_temporary_buffer(__len, (_Tp*) 0); in get_temporary_buffer() 64 template <class _Tp> 65 inline pair<_Tp*, ptrdiff_t> _STLP_CALL 66 get_temporary_buffer(ptrdiff_t __len, _Tp*) { in get_temporary_buffer() argument 67 return __get_temporary_buffer(__len, (_Tp*) 0); in get_temporary_buffer() [all …]
|
D | _complex.c | 43 template <class _Tp> 44 void complex<_Tp>::_div(const _Tp& __z1_r, const _Tp& __z1_i, in _div() 45 const _Tp& __z2_r, const _Tp& __z2_i, in _div() 46 _Tp& __res_r, _Tp& __res_i) { in _div() 47 _Tp __ar = __z2_r >= 0 ? __z2_r : -__z2_r; in _div() 48 _Tp __ai = __z2_i >= 0 ? __z2_i : -__z2_i; in _div() 51 _Tp __ratio = __z2_r / __z2_i; in _div() 52 _Tp __denom = __z2_i * (1 + __ratio * __ratio); in _div() 57 _Tp __ratio = __z2_i / __z2_r; in _div() 58 _Tp __denom = __z2_r * (1 + __ratio * __ratio); in _div() [all …]
|
D | _construct.h | 55 template <class _Tp> 56 inline void __destroy_aux(_Tp* __pointer, const __false_type& /*_Trivial_destructor*/) in __destroy_aux() 57 { __pointer->~_Tp(); } in __destroy_aux() 59 template <class _Tp> 60 inline void __destroy_aux(_Tp*, const __true_type& /*_Trivial_destructor*/) {} in __destroy_aux() argument 62 template <class _Tp> 63 inline void _Destroy(_Tp* __pointer) { in _Destroy() 64 typedef typename __type_traits<_Tp>::has_trivial_destructor _Trivial_destructor; in _Destroy() 67 memset(__REINTERPRET_CAST(char*, __pointer), _STLP_SHRED_BYTE, sizeof(_Tp)); in _Destroy() 71 template <class _Tp> [all …]
|
D | _iterator_old.h | 53 template <class _BidirectionalIterator, class _Tp, 54 _STLP_DFL_TMPL_PARAM(_Reference, _Tp& ), 58 _STLP_DFL_TMPL_PARAM(_Pointer, _Tp*), 65 typedef reverse_bidirectional_iterator<_BidirectionalIterator, _Tp, 72 typedef _Tp value_type; 77 typedef _Tp* pointer; 113 template <class _BidirectionalIterator, class _Tp, class __Reference, 116 iterator_category(const reverse_bidirectional_iterator<_BidirectionalIterator, _Tp, Reference__, _D… in iterator_category() argument 118 template <class _BidirectionalIterator, class _Tp, class __Reference, 120 inline _Tp* _STLP_CALL [all …]
|
D | _valarray.c | 35 template <class _Tp> 36 _Valarray_bool valarray<_Tp>:: operator!() const { 44 template <class _Tp> 45 valarray<_Tp>& valarray<_Tp>::operator=(const slice_array<_Tp>& __x) { 55 template <class _Tp> 56 valarray<_Tp> valarray<_Tp>::operator[](slice __slice) const { 57 valarray<_Tp> __tmp(__slice.size(), _NoInit()); 86 template <class _Tp> 87 valarray<_Tp>& valarray<_Tp>::operator=(const gslice_array<_Tp>& __x) { 97 template <class _Tp> [all …]
|
D | _auto_ptr.h | 31 template <class _Tp> 35 _Tp* const _M_p; 37 auto_ptr_ref(__ptr_base& __r, _Tp* __p) : _M_r(__r), _M_p(__p) { } in auto_ptr_ref() 39 _Tp* release() const { _M_r.__set(__STATIC_CAST(void*, 0)); return _M_p; } in release() 43 typedef auto_ptr_ref<_Tp> _Self; 47 template<class _Tp> 50 typedef _Tp element_type; 51 typedef auto_ptr<_Tp> _Self; 53 _Tp* release() _STLP_NOTHROW { in release() 54 _Tp* __px = this->get(); in release() [all …]
|
D | type_traits.h | 79 template <class _Tp> struct _IsIntegral 129 template <class _Tp> struct _IsRational 144 template <class _Tp> struct __type_traits; 171 template <class _Tp> 199 template <class _Tp> 207 static _Tp& __null_rep(); 214 template <class _Tp> 215 struct __type_traits : __type_traits_aux<typename _IsPtr<_Tp>::_Ret> {}; 219 template <class _Tp> struct _IsPtr { 223 template <class _Tp> [all …]
|
D | _tempbuf.c | 35 template <class _Tp> 36 pair<_Tp*, ptrdiff_t> _STLP_CALL 37 __get_temporary_buffer(ptrdiff_t __len, _Tp*) in __get_temporary_buffer() argument 39 if (__len > ptrdiff_t(INT_MAX / sizeof(_Tp))) in __get_temporary_buffer() 40 __len = INT_MAX / sizeof(_Tp); in __get_temporary_buffer() 43 _Tp* __tmp = (_Tp*) malloc((size_t)__len * sizeof(_Tp)); in __get_temporary_buffer() 45 return pair<_Tp*, ptrdiff_t>(__tmp, __len); in __get_temporary_buffer() 49 return pair<_Tp*, ptrdiff_t>((_Tp*)0, 0); in __get_temporary_buffer()
|
D | _move_construct_fwk.h | 34 template <class _Tp> 37 explicit __move_source (_Tp &_src) : _M_data(_src) in __move_source() 40 _Tp& get() const in get() 43 _Tp &_M_data; 46 typedef __move_source<_Tp> _Self; 51 template <class _Tp> 61 typedef typename _IsSTLportClass<_Tp>::_Ret implemented; 70 typedef __type_traits<_Tp>::has_trivial_destructor _TpMoveComplete; 73 typedef typename __type_traits<_Tp>::has_trivial_destructor complete; 85 template <class _Tp> [all …]
|
D | _carray.h | 35 template <class _Tp, size_t _Nb> 37 _CArray (const _Tp& __val) { in _CArray() 39 _Copy_Construct(__REINTERPRET_CAST(_Tp*, _M_data + __i * sizeof(_Tp)), __val); in _CArray() 44 _Destroy_Range(__REINTERPRET_CAST(_Tp*, _M_data + 0), in ~_CArray() 45 __REINTERPRET_CAST(_Tp*, _M_data + _Nb * sizeof(_Tp))); in ~_CArray() 48 _Tp& operator [] (size_t __i) { 50 return *__REINTERPRET_CAST(_Tp*, _M_data + __i * sizeof(_Tp)); 54 char _M_data[sizeof(_Tp) * _Nb];
|
D | _numeric.h | 40 template <class _InputIterator, class _Tp> 42 _Tp accumulate(_InputIterator __first, _InputIterator __last, _Tp _Init) { in accumulate() 49 template <class _InputIterator, class _Tp, class _BinaryOperation> 51 _Tp accumulate(_InputIterator __first, _InputIterator __last, _Tp _Init, in accumulate() 59 template <class _InputIterator1, class _InputIterator2, class _Tp> 61 _Tp inner_product(_InputIterator1 __first1, _InputIterator1 __last1, in inner_product() 62 _InputIterator2 __first2, _Tp _Init) { in inner_product() 69 template <class _InputIterator1, class _InputIterator2, class _Tp, 72 _Tp inner_product(_InputIterator1 __first1, _InputIterator1 __last1, in inner_product() 73 _InputIterator2 __first2, _Tp _Init, in inner_product() [all …]
|
/ndk/sources/cxx-stl/stlport/stlport/ |
D | type_traits | 43 template <class _Tp> 58 static const bool __value = sizeof(__test<_Tp>(0)) == sizeof(__select_types::__t1); 64 template <class _Tp> 65 const bool __instance<_Tp>::__value = sizeof(__instance<_Tp>::__test<_Tp>(0)) == sizeof(__select_ty… 129 template <class _Tp, _Tp __v> 132 static const _Tp value = __v; 135 typedef _Tp value_type; 136 typedef integral_constant<_Tp, __v> type; 144 template <typename _Tp> 146 public integral_constant<bool, __uoc_aux<_Tp>::__value> [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ |
D | type_traits | 219 template <bool, class _Tp = void> struct _LIBCPP_TYPE_VIS enable_if {}; 220 template <class _Tp> struct _LIBCPP_TYPE_VIS enable_if<true, _Tp> {typedef _Tp type;}; 223 template <bool _Bp, class _Tp = void> using enable_if_t = typename enable_if<_Bp, _Tp>::type; 231 template <class _Tp, _Tp __v> 234 static _LIBCPP_CONSTEXPR const _Tp value = __v; 235 typedef _Tp value_type; 245 template <class _Tp, _Tp __v> 246 _LIBCPP_CONSTEXPR const _Tp integral_constant<_Tp, __v>::value; 253 template <class _Tp> struct _LIBCPP_TYPE_VIS is_const : public false_type {}; 254 template <class _Tp> struct _LIBCPP_TYPE_VIS is_const<_Tp const> : public true_type {}; [all …]
|
D | __tuple | 30 template <class _Tp> class _LIBCPP_TYPE_VIS tuple_size; 32 template <class _Tp> 33 class _LIBCPP_TYPE_VIS tuple_size<const _Tp> 34 : public tuple_size<_Tp> {}; 36 template <class _Tp> 37 class _LIBCPP_TYPE_VIS tuple_size<volatile _Tp> 38 : public tuple_size<_Tp> {}; 40 template <class _Tp> 41 class _LIBCPP_TYPE_VIS tuple_size<const volatile _Tp> 42 : public tuple_size<_Tp> {}; [all …]
|
D | complex | 258 template<class _Tp> class _LIBCPP_TYPE_VIS complex; 260 template<class _Tp> complex<_Tp> operator*(const complex<_Tp>& __z, const complex<_Tp>& __w); 261 template<class _Tp> complex<_Tp> operator/(const complex<_Tp>& __x, const complex<_Tp>& __y); 263 template<class _Tp> 267 typedef _Tp value_type; 525 template<class _Tp> 527 complex<_Tp> 528 operator+(const complex<_Tp>& __x, const complex<_Tp>& __y) 530 complex<_Tp> __t(__x); 535 template<class _Tp> [all …]
|
D | atomic | 548 template <class _Tp> 550 _Tp 551 kill_dependency(_Tp __y) _NOEXCEPT 558 template <class _Tp, bool = is_integral<_Tp>::value && !is_same<_Tp, bool>::value> 561 mutable _Atomic(_Tp) __a_; 565 {return __c11_atomic_is_lock_free(sizeof(_Tp));} 568 {return __c11_atomic_is_lock_free(sizeof(_Tp));} 570 void store(_Tp __d, memory_order __m = memory_order_seq_cst) volatile _NOEXCEPT 573 void store(_Tp __d, memory_order __m = memory_order_seq_cst) _NOEXCEPT 576 _Tp load(memory_order __m = memory_order_seq_cst) const volatile _NOEXCEPT [all …]
|
D | __functional_base_03 | 18 template <class _Tp> 28 static const bool value = !is_same<decltype(__test((_Tp*)0)), __two>::value; 29 typedef decltype(__test((_Tp*)0)) type; 32 template <class _Tp> 42 static const bool value = !is_same<decltype(__test((_Tp*)0)), __two>::value; 43 typedef decltype(__test((_Tp*)0)) type; 46 template <class _Tp, bool = __derives_from_unary_function<_Tp>::value> 48 : public __derives_from_unary_function<_Tp>::type 52 template <class _Tp> 53 struct __maybe_derive_from_unary_function<_Tp, false> [all …]
|
/ndk/sources/cxx-stl/stlport/src/ |
D | complex.cpp | 83 template <class _Tp> 84 static void _divT(const _Tp& __z1_r, const _Tp& __z1_i, in _divT() 85 const _Tp& __z2_r, const _Tp& __z2_i, in _divT() 86 _Tp& __res_r, _Tp& __res_i) { in _divT() 87 _Tp __ar = __z2_r >= 0 ? __z2_r : -__z2_r; in _divT() 88 _Tp __ai = __z2_i >= 0 ? __z2_i : -__z2_i; in _divT() 91 _Tp __ratio = __z2_r / __z2_i; in _divT() 92 _Tp __denom = __z2_i * (1 + __ratio * __ratio); in _divT() 97 _Tp __ratio = __z2_i / __z2_r; in _divT() 98 _Tp __denom = __z2_r * (1 + __ratio * __ratio); in _divT() [all …]
|
D | complex_trig.cpp | 67 template <class _Tp> 68 static complex<_Tp> sinT(const complex<_Tp>& z) { in sinT() 69 return complex<_Tp>(::sin(z._M_re) * ::cosh(z._M_im), in sinT() 86 template <class _Tp> 87 static complex<_Tp> cosT(const complex<_Tp>& z) { in cosT() 88 return complex<_Tp>(::cos(z._M_re) * ::cosh(z._M_im), in cosT() 105 template <class _Tp> 106 static complex<_Tp> tanT(const complex<_Tp>& z, const _Tp& Tp_limit) { in tanT() 107 _Tp re2 = 2.f * z._M_re; in tanT() 108 _Tp im2 = 2.f * z._M_im; in tanT() [all …]
|
/ndk/tests/device/test-gnustl-full/unit/ |
D | limits_test.cpp | 63 template <class _Tp> 64 bool valid_sign_info(bool limit_is_signed, const _Tp &) { in valid_sign_info() argument 65 return (limit_is_signed && _Tp(-1) < 0) || in valid_sign_info() 66 (!limit_is_signed && _Tp(-1) > 0); in valid_sign_info() 69 template <class _Tp> 70 bool test_integral_limits_base(const _Tp &, bool unknown_sign = true, bool is_signed = true) { in test_integral_limits_base() argument 71 typedef numeric_limits<_Tp> lim; in test_integral_limits_base() 82 CHECK_COND(valid_sign_info(lim::is_signed, _Tp())); in test_integral_limits_base() 87 template <class _Tp> 88 bool test_integral_limits(const _Tp &val, bool unknown_sign = true, bool is_signed = true) { in test_integral_limits() [all …]
|
/ndk/tests/device/test-stlport/unit/ |
D | limits_test.cpp | 63 template <class _Tp> 64 bool valid_sign_info(bool limit_is_signed, const _Tp &) { in valid_sign_info() argument 65 return (limit_is_signed && _Tp(-1) < 0) || in valid_sign_info() 66 (!limit_is_signed && _Tp(-1) > 0); in valid_sign_info() 69 template <class _Tp> 70 bool test_integral_limits_base(const _Tp &, bool unknown_sign = true, bool is_signed = true) { in test_integral_limits_base() argument 71 typedef numeric_limits<_Tp> lim; in test_integral_limits_base() 82 CHECK_COND(valid_sign_info(lim::is_signed, _Tp())); in test_integral_limits_base() 87 template <class _Tp> 88 bool test_integral_limits(const _Tp &val, bool unknown_sign = true, bool is_signed = true) { in test_integral_limits() [all …]
|