Home
last modified time | relevance | path

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

12345678910>>...12

/external/libcxx/test/std/utilities/memory/pointer.traits/pointer.traits.types/
Ddifference_type.pass.cpp27 typedef char difference_type; typedef
41 typedef char difference_type; typedef
47 static int difference_type; member
53 typedef int difference_type; typedef
58 static_assert((std::is_same<std::pointer_traits<A>::difference_type, char>::value), ""); in main()
59 … static_assert((std::is_same<std::pointer_traits<B>::difference_type, std::ptrdiff_t>::value), ""); in main()
60 …static_assert((std::is_same<std::pointer_traits<C<double> >::difference_type, std::ptrdiff_t>::val… in main()
61 static_assert((std::is_same<std::pointer_traits<D<int> >::difference_type, char>::value), ""); in main()
62 …static_assert((std::is_same<std::pointer_traits<E<int> >::difference_type, std::ptrdiff_t>::value)… in main()
64 …static_assert((std::is_same<std::pointer_traits<F<int>>::difference_type, std::ptrdiff_t>::value),… in main()
/external/libcxx/test/std/containers/sequences/forwardlist/
Dtypes.pass.cpp46 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
48 static_assert((std::is_signed<typename C::difference_type>::value), ""); in main()
50 static_assert((std::is_same<typename C::difference_type, in main()
51 typename std::iterator_traits<typename C::iterator>::difference_type>::value), ""); in main()
52 static_assert((std::is_same<typename C::difference_type, in main()
53 typename std::iterator_traits<typename C::const_iterator>::difference_type>::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()
68 static_assert((std::is_signed<typename C::difference_type>::value), ""); in main()
70 static_assert((std::is_same<typename C::difference_type, in main()
[all …]
/external/libcxx/test/std/containers/sequences/array/
Dtypes.pass.cpp42 …static_assert((std::is_same<typename ItT::difference_type, typename C::difference_type>::value), "… in test_iterators()
48 …static_assert((std::is_same<typename CItT::difference_type, typename C::difference_type>::value), … in test_iterators()
64 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
68 static_assert((std::is_signed<typename C::difference_type>::value), ""); in main()
70 static_assert((std::is_same<typename C::difference_type, in main()
71 typename std::iterator_traits<typename C::iterator>::difference_type>::value), ""); in main()
72 static_assert((std::is_same<typename C::difference_type, in main()
73 … typename std::iterator_traits<typename C::const_iterator>::difference_type>::value), ""); in main()
86 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
90 static_assert((std::is_signed<typename C::difference_type>::value), ""); in main()
[all …]
/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()
67 static_assert((std::is_signed<typename C::difference_type>::value), ""); in test()
69 static_assert((std::is_same<typename C::difference_type, in test()
70 typename std::iterator_traits<typename C::iterator>::difference_type>::value), ""); in test()
71 static_assert((std::is_same<typename C::difference_type, in test()
72 typename std::iterator_traits<typename C::const_iterator>::difference_type>::value), ""); in test()
93 …static_assert((std::is_same<C::size_type, std::make_unsigned<C::difference_type>::type>::value), "… in main()
94 static_assert((std::is_same<C::difference_type, std::ptrdiff_t>::value), ""); in main()
96 static_assert((std::is_signed<typename C::difference_type>::value), ""); in main()
98 static_assert((std::is_same<typename C::difference_type, in main()
[all …]
/external/libcxx/test/std/iterators/iterator.primitives/iterator.traits/
Dempty.fail.cpp33 typedef int difference_type; typedef
42 typedef int difference_type; typedef
51 typedef int difference_type; typedef
60 typedef int difference_type; typedef
71 …typedef T::difference_type DT; // expected-error-re {{no type named 'difference_type' in 'std::_… in main()
80 …typedef T::difference_type DT; // expected-error-re {{no type named 'difference_type' in 'std::_… in main()
89 …typedef T::difference_type DT; // expected-error-re {{no type named 'difference_type' in 'std::_… in main()
98 …typedef T::difference_type DT; // expected-error-re {{no type named 'difference_type' in 'std::_… in main()
107 …typedef T::difference_type DT; // expected-error-re {{no type named 'difference_type' in 'std::_… in main()
116 …typedef T::difference_type DT; // expected-error-re {{no type named 'difference_type' in 'std::_… in main()
/external/libcxx/test/std/containers/sequences/list/
Dtypes.pass.cpp43 static_assert((std::is_signed<typename C::difference_type>::value), ""); in main()
45 static_assert((std::is_same<typename C::difference_type, in main()
46 typename std::iterator_traits<typename C::iterator>::difference_type>::value), ""); in main()
47 static_assert((std::is_same<typename C::difference_type, in main()
48 typename std::iterator_traits<typename C::const_iterator>::difference_type>::value), ""); in main()
61 static_assert((std::is_signed<typename C::difference_type>::value), ""); in main()
63 static_assert((std::is_same<typename C::difference_type, in main()
64 typename std::iterator_traits<typename C::iterator>::difference_type>::value), ""); in main()
65 static_assert((std::is_same<typename C::difference_type, in main()
66 typename std::iterator_traits<typename C::const_iterator>::difference_type>::value), ""); in main()
/external/mesa3d/src/gallium/state_trackers/clover/util/
Dadaptor.hpp51 typedef std::ptrdiff_t difference_type; typedef in clover::detail::iterator_adaptor
107 operator+=(difference_type n) { in operator +=()
113 operator-=(difference_type n) { in operator -=()
119 operator+(difference_type n) const { in operator +()
126 operator-(difference_type n) const { in operator -()
132 difference_type
138 operator[](difference_type n) const { in operator []()
169 operator+(typename iterator_adaptor<F, Is...>::difference_type n, in operator +()
176 operator-(typename iterator_adaptor<F, Is...>::difference_type n, in operator -()
/external/libcxx/test/std/utilities/memory/allocator.traits/allocator.traits.types/
Ddifference_type.pass.cpp29 typedef short difference_type; typedef
54 typedef void difference_type; typedef
65 typedef signed char difference_type; typedef
72 … static_assert((std::is_same<std::allocator_traits<A<char> >::difference_type, short>::value), ""); in main()
73 …static_assert((std::is_same<std::allocator_traits<B<char> >::difference_type, std::ptrdiff_t>::val… in main()
74 …static_assert((std::is_same<std::allocator_traits<C<char> >::difference_type, signed char>::value)… in main()
76 …static_assert((std::is_same<std::allocator_traits<D<char> >::difference_type, std::ptrdiff_t>::val… in main()
/external/libcxx/include/
D__bit_reference244 typename __bit_iterator<_Cp, _IsConst>::difference_type
249 typedef typename _It::difference_type difference_type;
251 difference_type __r = 0;
275 typename __bit_iterator<_Cp, _IsConst>::difference_type
280 typedef typename _It::difference_type difference_type;
282 difference_type __r = 0;
307 typename __bit_iterator<_Cp, _IsConst>::difference_type
409 typedef typename _In::difference_type difference_type;
412 difference_type __n = __last - __first;
419 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;
45 typedef Distance difference_type;
61 typename iterator_traits<InputIterator>::difference_type n);
64 constexpr typename iterator_traits<InputIterator>::difference_type
69 typename iterator_traits<InputIterator>::difference_type n = 1);
73 typename iterator_traits<BidirectionalIterator>::difference_type n = 1);
79 typename iterator_traits<Iterator>::difference_type,
87 typedef typename iterator_traits<Iterator>::difference_type difference_type;
102 constexpr reverse_iterator operator+ (difference_type n) const;
[all …]
Ddeque33 typedef typename allocator_type::difference_type difference_type;
296 typedef _DiffType difference_type;
301 static const difference_type __block_size;
315 __deque_iterator(const __deque_iterator<value_type, _Pp, _Rp, _MP, difference_type, _BS>& __it,
357 _LIBCPP_INLINE_VISIBILITY __deque_iterator& operator+=(difference_type __n)
369 difference_type __z = __block_size - 1 - __n;
377 _LIBCPP_INLINE_VISIBILITY __deque_iterator& operator-=(difference_type __n)
382 _LIBCPP_INLINE_VISIBILITY __deque_iterator operator+(difference_type __n) const
389 _LIBCPP_INLINE_VISIBILITY __deque_iterator operator-(difference_type __n) const
397 friend __deque_iterator operator+(difference_type __n, const __deque_iterator& __it)
[all …]
/external/libcxx/test/std/containers/sequences/vector.bool/
Dtypes.pass.cpp48 …tatic_assert((std::is_same<typename C::difference_type, typename std::allocator_traits<Allocator>:… in test()
50 static_assert((std::is_signed<typename C::difference_type>::value), ""); in test()
52 static_assert((std::is_same<typename C::difference_type, in test()
53 typename std::iterator_traits<typename C::iterator>::difference_type>::value), ""); in test()
54 static_assert((std::is_same<typename C::difference_type, in test()
55 typename std::iterator_traits<typename C::const_iterator>::difference_type>::value), ""); in test()
/external/libcxx/test/support/
Dtest_iterators.h35 typedef typename std::iterator_traits<It>::difference_type difference_type; typedef
67 typedef typename Traits::difference_type difference_type; typedef
119 typedef typename std::iterator_traits<It>::difference_type difference_type; typedef
171 typedef typename std::iterator_traits<It>::difference_type difference_type; typedef
222 typedef typename std::iterator_traits<It>::difference_type difference_type; typedef
244 …TEST_CONSTEXPR_CXX14 random_access_iterator& operator+=(difference_type n) {it_ += n; return *this…
245 TEST_CONSTEXPR_CXX14 random_access_iterator operator+(difference_type n) const
247 …friend TEST_CONSTEXPR_CXX14 random_access_iterator operator+(difference_type n, random_access_iter…
249 TEST_CONSTEXPR_CXX14 random_access_iterator& operator-=(difference_type n) {return *this += -n;}
250 TEST_CONSTEXPR_CXX14 random_access_iterator operator-(difference_type n) const
[all …]
Dmin_allocator.h251 typedef std::ptrdiff_t difference_type; typedef
266 min_pointer& operator+=(difference_type n) {ptr_ += n; return *this;}
267 min_pointer& operator-=(difference_type n) {ptr_ -= n; return *this;}
269 min_pointer operator+(difference_type n) const
276 friend min_pointer operator+(difference_type n, min_pointer x)
281 min_pointer operator-(difference_type n) const
288 friend difference_type operator-(min_pointer x, min_pointer y)
293 reference operator[](difference_type n) const {return ptr_[n];}
322 typedef std::ptrdiff_t difference_type; typedef
337 min_pointer& operator+=(difference_type n) {ptr_ += n; return *this;}
[all …]
/external/libchrome/base/
Dvalue_iterators.h31 using difference_type = DictStorage::iterator::difference_type;
77 using difference_type = DictStorage::const_iterator::difference_type;
128 using difference_type = DictStorage::difference_type; variable
167 using difference_type = DictStorage::difference_type; variable
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DSTLExtras.h72 typedef typename std::iterator_traits<RootIt>::difference_type
73 difference_type; typedef
99 _Self operator+ (difference_type n) const {
102 _Self& operator+= (difference_type n) { current += n; return *this; }
103 _Self operator- (difference_type n) const {
106 _Self& operator-= (difference_type n) { current -= n; return *this; }
107 reference operator[](difference_type n) const { return *(*this + n); }
113 inline difference_type operator-(const _Self &X) const {
120 operator+(typename mapped_iterator<_Iterator, Func>::difference_type N,
/external/llvm/include/llvm/ADT/
DSequence.h35 typedef typename BaseT::difference_type difference_type; typedef
46 value_sequence_iterator &operator+=(difference_type N) {
50 value_sequence_iterator &operator-=(difference_type N) {
55 difference_type operator-(const value_sequence_iterator &RHS) const {
/external/v8/src/base/
Diterator.h18 typedef Diff difference_type; typedef
36 typename std::iterator_traits<iterator>::difference_type difference_type; typedef
54 reference operator[](difference_type n) { return begin()[n]; }
55 difference_type size() const { return cend() - cbegin(); } in size()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DSequence.h39 using difference_type = typename BaseT::difference_type;
50 value_sequence_iterator &operator+=(difference_type N) {
54 value_sequence_iterator &operator-=(difference_type N) {
59 difference_type operator-(const value_sequence_iterator &RHS) const {
/external/libcxx/test/std/containers/unord/
Diterator_difference_type.pass.cpp21 typedef typename Map::difference_type Diff; in testUnorderedMap()
27 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedMap()
34 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedMap()
41 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedMap()
48 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedMap()
59 typedef typename Set::difference_type Diff; in testUnorderedSet()
65 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedSet()
73 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testUnorderedSet()
/external/tensorflow/tensorflow/contrib/boosted_trees/lib/utils/
Dsparse_column_iterable.cc69 IndicesRowIterator& operator+=(const difference_type& step) { in operator +=()
73 IndicesRowIterator& operator-=(const difference_type& step) { in operator -=()
78 IndicesRowIterator operator+(const difference_type& step) const { in operator +()
84 IndicesRowIterator operator-(const difference_type& step) const { in operator -()
90 difference_type operator-(const IndicesRowIterator& other) const { in operator -()
/external/libcxx/test/std/containers/views/
Dtypes.pass.cpp48 ASSERT_SAME_TYPE(typename ItT::difference_type, typename S::difference_type); in testIterator()
62 ASSERT_SAME_TYPE(typename ItT::difference_type, typename S::difference_type); in testConstIterator()
71 ASSERT_SAME_TYPE(typename S::difference_type, std::ptrdiff_t); in testSpan()
/external/libcxx/include/experimental/
Dfunctional215 typedef typename std::iterator_traits<_RandomAccessIterator1>::difference_type difference_type;
217 typedef _BMSkipTable<value_type, difference_type, _Hash, _BinaryPredicate,
230 __suffix_{make_shared<vector<difference_type>>(__pattern_length_ + 1)}
233 for ( difference_type __i = 0; __f != __l; ++__f, (void) ++__i )
264 difference_type __pattern_length_;
266 shared_ptr<vector<difference_type>> __suffix_;
275 const vector<difference_type> & __suffix = *__suffix_.get();
281 difference_type __j = __pattern_length_;
290 difference_type __k = __skip[__cur [ __j - 1 ]];
291 difference_type __m = __j - __k - 1;
[all …]
/external/perfetto/include/perfetto/base/
Dcircular_queue.h53 using difference_type = ptrdiff_t;
79 const value_type& operator[](difference_type i) const {
105 friend Iterator operator+(const Iterator& iter, difference_type offset) {
111 Iterator& operator+=(difference_type offset) {
116 friend Iterator operator-(const Iterator& iter, difference_type offset) {
122 Iterator& operator-=(difference_type offset) {
157 inline void Add(difference_type offset) { in Add()
158 pos_ = static_cast<uint64_t>(static_cast<difference_type>(pos_) + offset); in Add()
/external/libcxx/test/std/containers/associative/
Diterator_types.pass.cpp21 typedef typename Map::difference_type Diff; in testMap()
27 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testMap()
34 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testMap()
43 typedef typename Set::difference_type Diff; in testSet()
49 static_assert((std::is_same<typename It::difference_type, Diff>::value), ""); in testSet()

12345678910>>...12