Home
last modified time | relevance | path

Searched refs:_Tp (Results 1 – 25 of 184) sorted by relevance

12345678

/external/stlport/stlport/stl/
D_iterator_base.h57 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_base.h64 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_valarray.h47 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_function_adaptors.h64 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_complex.c43 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_tempbuf.h47 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_construct.h55 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.h53 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 …]
Dtype_traits.h79 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_valarray.c35 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_complex.h35 template <class _Tp>
37 typedef _Tp value_type;
38 typedef complex<_Tp> _Self;
617 template <class _Tp>
618 inline complex<_Tp> _STLP_CALL operator+(const complex<_Tp>& __z)
621 template <class _Tp>
622 inline complex<_Tp> _STLP_CALL operator-(const complex<_Tp>& __z)
623 { return complex<_Tp>(-__z._M_re, -__z._M_im); }
627 template <class _Tp>
628 inline complex<_Tp> _STLP_CALL operator+(const _Tp& __x, const complex<_Tp>& __z)
[all …]
D_auto_ptr.h31 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 …]
Dtype_manips.h165 template <class _Tp>
166 char _STLP_CALL _IsCopyableFun(bool, _NoVolatilePointerShim, _Tp const*, _Tp*); // no implementatio…
178 template <class _Tp> struct _IsUnQual;
215 template <class _Tp>
216 struct _AreSameTypes<_Tp, _Tp> {
239 template<class _Tp>
240 struct _UnConstPtr { typedef _Tp _Type; };
242 template<class _Tp>
243 struct _UnConstPtr<_Tp*> { typedef _Tp _Type; };
245 template<class _Tp>
[all …]
D_pthread_alloc.h96 template <class _Tp>
97 class pthread_allocator : public __stlport_class<pthread_allocator<_Tp> > {
102 typedef _Tp* pointer;
103 typedef const _Tp* const_pointer;
104 typedef _Tp& reference;
105 typedef const _Tp& const_reference;
106 typedef _Tp value_type;
115 pthread_allocator(const pthread_allocator<_Tp>& a) _STLP_NOTHROW {} in pthread_allocator()
129 _Tp* allocate(size_type __n, const void* = 0) {
135 _Tp* __ret = __REINTERPRET_CAST(value_type*, _S_Alloc::allocate(__buf_size));
[all …]
/external/libcxx/include/
Dtype_traits221 template <bool, class _Tp = void> struct _LIBCPP_TYPE_VIS_ONLY enable_if {};
222 template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY enable_if<true, _Tp> {typedef _Tp type;};
225 template <bool _Bp, class _Tp = void> using enable_if_t = typename enable_if<_Bp, _Tp>::type;
233 template <class _Tp, _Tp __v>
236 static _LIBCPP_CONSTEXPR const _Tp value = __v;
237 typedef _Tp value_type;
247 template <class _Tp, _Tp __v>
248 _LIBCPP_CONSTEXPR const _Tp integral_constant<_Tp, __v>::value;
255 template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY is_const : public false_type {};
256 template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY is_const<_Tp const> : public true_type {};
[all …]
D__tuple30 template <class _Tp> class _LIBCPP_TYPE_VIS_ONLY tuple_size;
32 template <class _Tp>
33 class _LIBCPP_TYPE_VIS_ONLY tuple_size<const _Tp>
34 : public tuple_size<_Tp> {};
36 template <class _Tp>
37 class _LIBCPP_TYPE_VIS_ONLY tuple_size<volatile _Tp>
38 : public tuple_size<_Tp> {};
40 template <class _Tp>
41 class _LIBCPP_TYPE_VIS_ONLY tuple_size<const volatile _Tp>
42 : public tuple_size<_Tp> {};
[all …]
Dcomplex258 template<class _Tp> class _LIBCPP_TYPE_VIS_ONLY 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 …]
Datomic584 template <typename _Tp>
587 __gcc_atomic::__can_assign<volatile _Atomic(_Tp)*, _Tp>::value>::type
588 __c11_atomic_init(volatile _Atomic(_Tp)* __a, _Tp __val) {
592 template <typename _Tp>
595 !__gcc_atomic::__can_assign<volatile _Atomic(_Tp)*, _Tp>::value &&
596 __gcc_atomic::__can_assign< _Atomic(_Tp)*, _Tp>::value>::type
597 __c11_atomic_init(volatile _Atomic(_Tp)* __a, _Tp __val) {
598 // [atomics.types.generic]p1 guarantees _Tp is trivially copyable. Because
602 volatile char* end = to + sizeof(_Tp);
609 template <typename _Tp>
[all …]
D__functional_base_0318 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 …]
D__functional_base41 template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY hash;
43 template <class _Tp>
51 static const bool value = sizeof(__test<_Tp>(0)) == 1;
55 template <class _Tp = void>
57 template <class _Tp>
59 struct _LIBCPP_TYPE_VIS_ONLY less : binary_function<_Tp, _Tp, bool>
62 bool operator()(const _Tp& __x, const _Tp& __y) const
80 template <class _Tp>
82 _Tp*
83 addressof(_Tp& __x) _NOEXCEPT
[all …]
Dlimits140 template <class _Tp, bool = is_arithmetic<_Tp>::value>
144 typedef _Tp type;
185 template <class _Tp, int digits, bool is_signed>
188 static _LIBCPP_CONSTEXPR const _Tp value = _Tp(_Tp(1) << digits);
191 template <class _Tp, int digits>
192 struct __libcpp_compute_min<_Tp, digits, false>
194 static _LIBCPP_CONSTEXPR const _Tp value = _Tp(0);
197 template <class _Tp>
198 class __libcpp_numeric_limits<_Tp, true>
201 typedef _Tp type;
[all …]
/external/stlport/stlport/
Dtype_traits45 template <class _Tp>
60 static const bool __value = sizeof(__test<_Tp>(0)) == sizeof(__select_types::__t1);
66 template <class _Tp>
67 const bool __instance<_Tp>::__value = sizeof(__instance<_Tp>::__test<_Tp>(0)) == sizeof(__select_ty…
131 template <class _Tp, _Tp __v>
134 static const _Tp value = __v;
137 typedef _Tp value_type;
138 typedef integral_constant<_Tp, __v> type;
146 template <typename _Tp>
148 public integral_constant<bool, __uoc_aux<_Tp>::__value>
[all …]
/external/stlport/src/
Dcomplex.cpp83 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 …]
Dcomplex_trig.cpp67 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 …]
/external/stlport/test/unit/
Dlimits_test.cpp63 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 …]

12345678