Home
last modified time | relevance | path

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

1234567

/external/libcxx/test/std/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()
/external/libcxx/test/support/
Dmin_allocator.h105 typedef std::ptrdiff_t difference_type; typedef
120 min_pointer& operator+=(difference_type n) {ptr_ += n; return *this;}
121 min_pointer& operator-=(difference_type n) {ptr_ -= n; return *this;}
123 min_pointer operator+(difference_type n) const
130 friend min_pointer operator+(difference_type n, min_pointer x)
135 min_pointer operator-(difference_type n) const
142 friend difference_type operator-(min_pointer x, min_pointer y)
147 reference operator[](difference_type n) const {return ptr_[n];}
176 typedef std::ptrdiff_t difference_type; typedef
191 min_pointer& operator+=(difference_type n) {ptr_ += n; return *this;}
[all …]
Dtest_iterators.h31 typedef typename std::iterator_traits<It>::difference_type difference_type; typedef
61 typedef typename std::iterator_traits<It>::difference_type difference_type; typedef
113 typedef typename std::iterator_traits<It>::difference_type difference_type; typedef
165 typedef typename std::iterator_traits<It>::difference_type difference_type; typedef
216 typedef typename std::iterator_traits<It>::difference_type difference_type; typedef
238 random_access_iterator& operator+=(difference_type n) {it_ += n; return *this;}
239 random_access_iterator operator+(difference_type n) const
241 friend random_access_iterator operator+(difference_type n, random_access_iterator x)
243 random_access_iterator& operator-=(difference_type n) {return *this += -n;}
244 random_access_iterator operator-(difference_type n) const
[all …]
/external/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 …]
Ddeque33 typedef typename allocator_type::difference_type difference_type;
271 typedef _DiffType difference_type;
276 static const difference_type __block_size = _BlockSize;
290 …__deque_iterator(const __deque_iterator<value_type, _Pp, _Rp, _MP, difference_type, __block_size>&…
332 _LIBCPP_INLINE_VISIBILITY __deque_iterator& operator+=(difference_type __n)
344 difference_type __z = __block_size - 1 - __n;
352 _LIBCPP_INLINE_VISIBILITY __deque_iterator& operator-=(difference_type __n)
357 _LIBCPP_INLINE_VISIBILITY __deque_iterator operator+(difference_type __n) const
364 _LIBCPP_INLINE_VISIBILITY __deque_iterator operator-(difference_type __n) const
372 friend __deque_iterator operator+(difference_type __n, const __deque_iterator& __it)
[all …]
Dalgorithm79 typename iterator_traits<InputIterator>::difference_type
83 typename iterator_traits<InputIterator>::difference_type
986 typename iterator_traits<_RandomAccessIterator2>::difference_type __len2 = __last2 - __first2;
989 typename iterator_traits<_RandomAccessIterator1>::difference_type __len1 = __last1 - __first1;
1111 typename iterator_traits<_InputIterator>::difference_type
1114 typename iterator_traits<_InputIterator>::difference_type __r(0);
1125 typename iterator_traits<_InputIterator>::difference_type
1128 typename iterator_traits<_InputIterator>::difference_type __r(0);
1276 typedef typename iterator_traits<_ForwardIterator1>::difference_type _D1;
1336 typedef typename iterator_traits<_ForwardIterator1>::difference_type _D1;
[all …]
/external/libcxx/test/std/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()
/external/v8/src/base/
Diterator.h28 typename std::iterator_traits<iterator>::difference_type difference_type; typedef
45 reference operator[](difference_type n) { return begin()[n]; }
46 difference_type size() const { return cend() - cbegin(); } in size()
/external/libcxx/test/std/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()
/external/libcxx/test/std/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::size_type, std::make_unsigned<C::difference_type>::type>::value), "… in main()
87 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
/external/llvm/include/llvm/ADT/
DSTLExtras.h118 typedef typename std::iterator_traits<RootIt>::difference_type
119 difference_type; typedef
156 mapped_iterator operator+(difference_type n) const {
159 mapped_iterator &operator+=(difference_type n) {
163 mapped_iterator operator-(difference_type n) const {
166 mapped_iterator &operator-=(difference_type n) {
170 reference operator[](difference_type n) const { return *(*this + n); }
178 difference_type operator-(const mapped_iterator &X) const {
185 operator+(typename mapped_iterator<Iterator, Func>::difference_type N,
Diterator.h141 typename std::iterator_traits<WrappedIteratorT>::difference_type,
168 typedef DifferenceTypeT difference_type; typedef
170 DerivedT &operator+=(difference_type n) {
177 DerivedT &operator-=(difference_type n) {
185 difference_type operator-(const DerivedT &RHS) const {
DDenseSet.h85 typedef typename MapTy::iterator::difference_type difference_type; typedef
106 typedef typename MapTy::const_iterator::difference_type difference_type; typedef
/external/libcxx/test/std/containers/sequences/forwardlist/
Dtypes.pass.cpp46 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
58 …static_assert((std::is_same<C::size_type, std::make_unsigned<C::difference_type>::type>::value), "… in main()
59 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
/external/libcxx/test/std/containers/associative/set/
Dtypes.pass.cpp51 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
66 …static_assert((std::is_same<C::size_type, std::make_unsigned<C::difference_type>::type>::value), "… in main()
67 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
/external/libcxx/test/std/containers/associative/multiset/
Dtypes.pass.cpp51 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
66 …static_assert((std::is_same<C::size_type, std::make_unsigned<C::difference_type>::type>::value), "… in main()
67 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
/external/protobuf/src/google/protobuf/
Drepeated_field.h171 typedef ptrdiff_t difference_type; typedef
488 typedef ptrdiff_t difference_type; typedef
1270 typedef typename superclass::difference_type difference_type;
1307 iterator& operator+=(difference_type d) {
1311 friend iterator operator+(iterator it, difference_type d) {
1315 friend iterator operator+(difference_type d, iterator it) {
1319 iterator& operator-=(difference_type d) {
1323 friend iterator operator-(iterator it, difference_type d) {
1329 reference operator[](difference_type d) const { return *(*this + d); }
1332 difference_type operator-(const iterator& x) const { return it_ - x.it_; }
[all …]
/external/libcxx/test/std/containers/associative/multimap/
Dtypes.pass.cpp51 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
66 …static_assert((std::is_same<C::size_type, std::make_unsigned<C::difference_type>::type>::value), "… in main()
67 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
/external/libcxx/test/std/containers/associative/map/
Dtypes.pass.cpp51 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
66 …static_assert((std::is_same<C::size_type, std::make_unsigned<C::difference_type>::type>::value), "… in main()
67 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
/external/libcxx/test/std/containers/unord/unord.set/
Dtypes.pass.cpp49 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
65 …static_assert((std::is_same<C::size_type, std::make_unsigned<C::difference_type>::type>::value), "… in main()
66 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
/external/libcxx/test/std/containers/unord/unord.multiset/
Dtypes.pass.cpp49 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
65 …static_assert((std::is_same<C::size_type, std::make_unsigned<C::difference_type>::type>::value), "… in main()
66 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
/external/libcxx/test/std/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()
/external/libcxx/test/std/containers/unord/unord.map/
Dtypes.pass.cpp51 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
68 …static_assert((std::is_same<C::size_type, std::make_unsigned<C::difference_type>::type>::value), "… in main()
69 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
/external/libcxx/test/std/containers/unord/unord.multimap/
Dtypes.pass.cpp51 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
68 …static_assert((std::is_same<C::size_type, std::make_unsigned<C::difference_type>::type>::value), "… in main()
69 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()

1234567