Home
last modified time | relevance | path

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

123

/external/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_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_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_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;
D_time_facets.c79 typedef ptrdiff_t difference_type; in __match() typedef
80 difference_type __n = __name_end - __name; in __match()
81 difference_type __i, __start = 0; in __match()
83 difference_type __check_count = __n; in __match()
90 difference_type __new_n = __n; in __match()
D_unordered_set.h55 typedef typename _Ht::difference_type difference_type; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef
205 typedef typename _Ht::difference_type difference_type; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef
366 typedef void difference_type;
393 typedef void difference_type;
D_pthread_alloc.h101 typedef ptrdiff_t difference_type; typedef
193 typedef ptrdiff_t difference_type; typedef
282 typedef ptrdiff_t difference_type;
376 typedef ptrdiff_t difference_type;
D_unordered_map.h61 typedef typename _Ht::difference_type difference_type; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef
229 typedef typename _Ht::difference_type difference_type; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef
391 typedef void difference_type;
418 typedef void difference_type;
D_hash_map.h69 typedef typename _Ht::difference_type difference_type; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef
260 typedef typename _Ht::difference_type difference_type; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef
449 typedef void difference_type;
476 typedef void difference_type;
D_hash_set.h63 typedef typename _Ht::difference_type difference_type; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef
249 typedef typename _Ht::difference_type difference_type; in _STLP_CREATE_HASH_ITERATOR_TRAITS() typedef
444 typedef void difference_type;
471 typedef void difference_type;
D_iterator_old.h73 typedef _Distance difference_type; typedef
167 typedef _Distance difference_type; typedef
181 _Reference operator*() const { return *(__current - (difference_type)1); }
Dconcept_checks.h504 typedef typename __STD::iterator_traits<_Iter>::difference_type
505 difference_type;
717 ::difference_type
756 ::difference_type
773 _STLP_TYPEDEF_REQUIREMENT(difference_type);
D_set.h78 typedef typename _Rep_type::difference_type difference_type; in _STLP_CREATE_ITERATOR_TRAITS() typedef
249 typedef typename _Rep_type::difference_type difference_type; in _STLP_CREATE_ITERATOR_TRAITS() typedef
D_map.h90 typedef typename _Rep_type::difference_type difference_type; in _STLP_CREATE_ITERATOR_TRAITS() typedef
283 typedef typename _Rep_type::difference_type difference_type; in _STLP_CREATE_ITERATOR_TRAITS() typedef
D_raw_storage_iter.h49 typedef void difference_type; typedef
/external/astl/include/
Diterator55 typedef _Distance difference_type; // Distance between iterators.
67 typedef typename _Iterator::difference_type difference_type;
79 typedef ptrdiff_t difference_type;
89 typedef ptrdiff_t difference_type;
105 typedef typename iterator_traits<_Iterator>::difference_type
106 difference_type;
139 reference operator[](const difference_type& n) const {
143 __wrapper_iterator& operator+=(const difference_type& n) {
148 __wrapper_iterator operator+(const difference_type& n) const {
152 __wrapper_iterator& operator-=(const difference_type& n) {
[all …]
Dmemory86 difference_type difference_type;
87 const difference_type len = std::distance(begin, end);
88 const difference_type kMaxSize =
89 std::numeric_limits<difference_type>::max();
Dset73 typedef typename impl_type::difference_type difference_type;
Dvector75 typedef ptrdiff_t difference_type;
367 difference_type len = std::distance(first, last);
450 typedef typename iterator_traits<_Iterator>::difference_type difference_type;
451 const difference_type num = std::distance(first, last);
/external/astl/tests/
Dtest_iterator.cpp41 typedef ptrdiff_t difference_type; typedef
49 typedef ptrdiff_t difference_type; typedef
57 typedef ptrdiff_t difference_type; typedef
65 typedef ptrdiff_t difference_type; typedef
/external/protobuf/src/google/protobuf/
Drepeated_field.h937 typedef typename superclass::difference_type difference_type; typedef
974 iterator& operator+=(difference_type d) {
978 friend iterator operator+(iterator it, difference_type d) {
982 friend iterator operator+(difference_type d, iterator it) {
986 iterator& operator-=(difference_type d) {
990 friend iterator operator-(iterator it, difference_type d) {
996 reference operator[](difference_type d) const { return *(*this + d); }
999 difference_type operator-(const iterator& x) const { return it_ - x.it_; }
1025 typedef typename superclass::difference_type difference_type; typedef
1051 iterator& operator+=(difference_type d) {
[all …]
/external/stlport/stlport/stl/debug/
D_iterator.h124 typedef ptrdiff_t difference_type; typedef
202 typedef typename _Base::difference_type difference_type; typedef
269 _Self& operator+=(difference_type __n) {
274 _Self& operator-=(difference_type __n) {
278 _Self operator+(difference_type __n) const {
283 _Self operator-(difference_type __n) const {
288 reference operator[](difference_type __n) const { return *(*this + __n); }
/external/stlport/stlport/stl/config/
Dfeatures.h730 const_pointer, difference_type> const_reverse_iterator; \
731 typedef _STLP_STD::__reverse_iterator<iterator, value_type, reference, pointer, difference_type> \
736 difference_type> const_reverse_iterator; \
738 reference, difference_type> \
751 typedef typename _Super::difference_type difference_type; \
/external/stlport/stlport/stl/pointers/
D_tools.h342 typedef typename _IteTraits::difference_type difference_type;
371 _Self& operator += (difference_type __offset) {
375 difference_type operator -(_Self const& __other) const

123