Home
last modified time | relevance | path

Searched refs:difference_type (Results 1 – 25 of 148) sorted by relevance

123456

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/pointer.traits/pointer.traits.types/
Ddifference_type.pass.cpp25 typedef char difference_type; typedef
39 typedef char difference_type; typedef
44 static_assert((std::is_same<std::pointer_traits<A>::difference_type, char>::value), ""); in main()
45 … static_assert((std::is_same<std::pointer_traits<B>::difference_type, std::ptrdiff_t>::value), ""); in main()
46 …static_assert((std::is_same<std::pointer_traits<C<double> >::difference_type, std::ptrdiff_t>::val… in main()
47 static_assert((std::is_same<std::pointer_traits<D<int> >::difference_type, char>::value), ""); in main()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/detail/
Diterator.hpp106 typedef typename Iterator::difference_type difference_type; typedef
116 typedef std::ptrdiff_t difference_type; typedef
126 typedef std::ptrdiff_t difference_type; typedef
158 BOOST_MPL_HAS_XXX_TRAIT_DEF(difference_type)
258 typedef typename T::difference_type difference_type; typedef
273 typedef std::ptrdiff_t difference_type; typedef
312 typedef std::ptrdiff_t difference_type; typedef
325 typedef typename Iterator::difference_type difference_type; typedef
336 typedef typename std::iterator_traits<Iterator>::distance_type difference_type; typedef
345 typedef typename std::iterator_traits<Iterator>::distance_type difference_type; typedef
[all …]
Dbinary_search.hpp42 typename traits::difference_type len = boost::detail::distance(first, last); in lower_bound()
43 typename traits::difference_type half; in lower_bound()
67 typename traits::difference_type len = boost::detail::distance(first, last); in lower_bound()
68 typename traits::difference_type half; in lower_bound()
92 typename traits::difference_type len = boost::detail::distance(first, last); in upper_bound()
93 typename traits::difference_type half; in upper_bound()
117 typename traits::difference_type len = boost::detail::distance(first, last); in upper_bound()
118 typename traits::difference_type half; in upper_bound()
142 typename traits::difference_type len = boost::detail::distance(first, last); in equal_range()
143 typename traits::difference_type half; in equal_range()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/allocator.traits/allocator.traits.types/
Ddifference_type.pass.cpp27 typedef short difference_type; typedef
52 typedef signed char difference_type; typedef
59 … static_assert((std::is_same<std::allocator_traits<A<char> >::difference_type, short>::value), ""); in main()
60 …static_assert((std::is_same<std::allocator_traits<B<char> >::difference_type, std::ptrdiff_t>::val… in main()
61 …static_assert((std::is_same<std::allocator_traits<C<char> >::difference_type, signed char>::value)… in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/support/
Dmin_allocator.h75 typedef std::ptrdiff_t difference_type; typedef
90 min_pointer& operator+=(difference_type n) {ptr_ += n; return *this;}
91 min_pointer& operator-=(difference_type n) {ptr_ -= n; return *this;}
93 min_pointer operator+(difference_type n) const
100 friend min_pointer operator+(difference_type n, min_pointer x)
105 min_pointer operator-(difference_type n) const
112 friend difference_type operator-(min_pointer x, min_pointer y)
117 reference operator[](difference_type n) const {return ptr_[n];}
146 typedef std::ptrdiff_t difference_type; typedef
161 min_pointer& operator+=(difference_type n) {ptr_ += n; return *this;}
[all …]
Dtest_iterators.h24 typedef typename std::iterator_traits<It>::difference_type difference_type; typedef
51 typedef typename std::iterator_traits<It>::difference_type difference_type; typedef
100 typedef typename std::iterator_traits<It>::difference_type difference_type; typedef
149 typedef typename std::iterator_traits<It>::difference_type difference_type; typedef
197 typedef typename std::iterator_traits<It>::difference_type difference_type; typedef
219 random_access_iterator& operator+=(difference_type n) {it_ += n; return *this;}
220 random_access_iterator operator+(difference_type n) const
222 friend random_access_iterator operator+(difference_type n, random_access_iterator x)
224 random_access_iterator& operator-=(difference_type n) {return *this += -n;}
225 random_access_iterator operator-(difference_type n) const
[all …]
/ndk/sources/cxx-stl/stlport/stlport/stl/
D_deque.c113 const_iterator __mid = __x.begin() + difference_type(__len);
210 difference_type __index = __pos - this->_M_start; in _M_erase()
247 difference_type __index = __pos - this->_M_start; in _M_erase()
262 difference_type __n = __last - __first; in _M_erase()
263 difference_type __elems_before = __first - this->_M_start; in _M_erase()
264 if (__elems_before <= difference_type(this->size() - __n) / 2) { in _M_erase()
326 difference_type __n = __last - __first; in _M_erase()
327 difference_type __elems_before = __first - this->_M_start; in _M_erase()
328 if (__elems_before <= difference_type(this->size() - __n) / 2) { in _M_erase()
467 const difference_type __elems_before = __pos - this->_M_start; in _M_fill_insert_aux()
[all …]
D_bvector.h104 typedef ptrdiff_t difference_type;
131 void _M_advance (difference_type __i) {
132 difference_type __n = __i + _M_offset;
142 difference_type _M_subtract(const _Bit_iterator_base& __x) const {
175 typedef ptrdiff_t difference_type;
208 _Self& operator+=(difference_type __i) {
212 _Self& operator-=(difference_type __i) {
216 _Self operator+(difference_type __i) const {
220 _Self operator-(difference_type __i) const {
224 difference_type operator-(const _Self& __x) const {
[all …]
D_deque.h95 typedef ptrdiff_t difference_type; typedef
119 difference_type _M_subtract(const _Self& __x) const { in _M_subtract()
120 return difference_type(_S_buffer_size()) * (_M_node - __x._M_node - 1) + in _M_subtract()
139 void _M_advance(difference_type __n) { in _M_advance()
141 difference_type __offset = __n + (_M_cur - _M_first); in _M_advance()
142 if (__offset >= 0 && __offset < difference_type(buffersize)) in _M_advance()
145 difference_type __node_offset = in _M_advance()
147 : -difference_type((-__offset - 1) / buffersize) - 1; in _M_advance()
151 (__offset - __node_offset * difference_type(buffersize)); in _M_advance()
156 _M_last = (_M_first = *(_M_node = __new_node)) + difference_type(_S_buffer_size()); in _M_set_node()
[all …]
D_iterator.h50 typename iterator_traits<_Iterator>::difference_type,
57 typedef typename iterator_traits<_Iterator>::difference_type difference_type; typedef
99 _Self operator+(difference_type __n) const { return _Self(current - __n); }
100 _Self& operator+=(difference_type __n) {
104 _Self operator-(difference_type __n) const { return _Self(current + __n); }
105 _Self& operator-=(difference_type __n) {
109 reference operator[](difference_type __n) const { return *(*this + __n); }
148 inline typename reverse_iterator<_Iterator>::difference_type _STLP_CALL
D_iterator_base.h62 typedef _Distance difference_type; typedef
71 typedef void difference_type;
87 …P_DISTANCE_TYPE(_It, _Tp) (_STLP_TYPENAME _STLP_STD::iterator_traits< _Tp >::difference_type*)0
151 typedef typename _Iterator::difference_type difference_type;
157 # define _STLP_DIFFERENCE_TYPE(_Iterator) typename iterator_traits<_Iterator>::difference_type
169 typedef ptrdiff_t difference_type;
178 typedef ptrdiff_t difference_type;
188 typedef ptrdiff_t difference_type;
227 inline _STLP_TYPENAME_ON_RETURN_TYPE _STLP_STD::iterator_traits<_Iter>::difference_type*
229 typedef _STLP_TYPENAME _STLP_STD::iterator_traits<_Iter>::difference_type _diff_type;
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
D__bit_reference248 typename __bit_iterator<_Cp, _IsConst>::difference_type
253 typedef typename _It::difference_type difference_type;
255 difference_type __r = 0;
279 typename __bit_iterator<_Cp, _IsConst>::difference_type
284 typedef typename _It::difference_type difference_type;
286 difference_type __r = 0;
311 typename __bit_iterator<_Cp, _IsConst>::difference_type
413 typedef typename _In::difference_type difference_type;
416 difference_type __n = __last - __first;
423 difference_type __dn = _VSTD::min(static_cast<difference_type>(__clz), __n);
[all …]
Diterator23 typedef typename Iterator::difference_type difference_type;
33 typedef ptrdiff_t difference_type;
43 typedef ptrdiff_t difference_type;
55 typedef Distance difference_type;
70 typename iterator_traits<InputIterator>::difference_type n);
73 typename iterator_traits<InputIterator>::difference_type
80 typename iterator_traits<Iterator>::difference_type,
88 typedef typename iterator_traits<Iterator>::difference_type difference_type;
102 reverse_iterator operator+ (difference_type n) const;
103 reverse_iterator& operator+=(difference_type n);
[all …]
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/iterator/
Diterator_facade.hpp414 , typename I1::difference_type
415 , typename I2::difference_type
498 , typename Derived::difference_type)
504 , (typename Derived::difference_type
542 static void advance(Facade& f, typename Facade::difference_type n) in advance()
548 static typename Facade1::difference_type distance_from( in distance_from()
555 static typename Facade2::difference_type distance_from( in distance_from()
631 typedef Difference difference_type; typedef in boost::iterator_facade
648 operator[](difference_type n) const in operator []()
688 Derived& operator+=(difference_type n) in operator +=()
[all …]
Diterator_concepts.hpp147 typedef typename boost::detail::iterator_traits<Iterator>::difference_type difference_type;
149 BOOST_MPL_ASSERT((boost::is_integral<difference_type>));
150 BOOST_MPL_ASSERT_RELATION(std::numeric_limits<difference_type>::is_signed, ==, true);
197 typename BidirectionalTraversal<Iterator>::difference_type n;
224 typename boost::detail::iterator_traits<Iterator2>::difference_type n;
Dreverse_iterator.hpp48 void advance(typename super_t::difference_type n) in advance()
54 typename super_t::difference_type
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/iterators/iterator.primitives/iterator.basic/
Diterator.pass.cpp34 static_assert((std::is_same<typename It::difference_type, std::ptrdiff_t>::value), ""); in test2()
46 static_assert((std::is_same<typename It::difference_type, short>::value), ""); in test3()
58 static_assert((std::is_same<typename It::difference_type, int>::value), ""); in test4()
70 static_assert((std::is_same<typename It::difference_type, long>::value), ""); in test5()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/
Darray.hpp72 typedef std::ptrdiff_t difference_type; typedef in boost::array
89 typedef std::reverse_iterator<std::_Ptrit<value_type, difference_type, iterator,
91 typedef std::reverse_iterator<std::_Ptrit<value_type, difference_type, const_iterator,
95 value_type, reference, iterator, difference_type> reverse_iterator;
97 value_type, const_reference, const_iterator, difference_type> const_reverse_iterator;
213 typedef std::ptrdiff_t difference_type; typedef in boost::array
230 typedef std::reverse_iterator<std::_Ptrit<value_type, difference_type, iterator,
232 typedef std::reverse_iterator<std::_Ptrit<value_type, difference_type, const_iterator,
236 value_type, reference, iterator, difference_type> reverse_iterator;
238 value_type, const_reference, const_iterator, difference_type> const_reverse_iterator;
Diterator.hpp30 typedef Distance difference_type; typedef
48 typedef Distance difference_type;
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/iterators/iterator.primitives/iterator.traits/
Diterator.pass.cpp29 typedef int difference_type; typedef
39 static_assert((std::is_same<It::difference_type, int>::value), ""); in main()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/range/
Dconcepts.hpp174 …f BOOST_DEDUCED_TYPENAME boost::detail::iterator_traits<Iterator>::difference_type difference_type; typedef
176 BOOST_MPL_ASSERT((is_integral<difference_type>));
177 BOOST_MPL_ASSERT_RELATION(std::numeric_limits<difference_type>::is_signed, ==, true);
243 BOOST_DEDUCED_TYPENAME RandomAccessIteratorConcept::difference_type n;
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/
Dinput_iterator.h22 typedef typename std::iterator_traits<It>::difference_type difference_type; typedef
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/iterators/predef.iterators/move.iterators/move.iterator/
Dtypes.pass.cpp38 …static_assert((std::is_same<typename R::difference_type, typename T::difference_type>::value), ""); in test()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/iterators/predef.iterators/reverse.iterators/reverse.iterator/
Dtypes.pass.cpp50 …static_assert((std::is_same<typename R::difference_type, typename T::difference_type>::value), ""); in test()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/containers/sequences/deque/
Dtypes.pass.cpp50 …static_assert((std::is_same<typename C::difference_type, typename Allocator::difference_type>::val… in test()
86 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()

123456