Home
last modified time | relevance | path

Searched refs:__first1 (Results 1 – 13 of 13) sorted by relevance

/ndk/sources/cxx-stl/stlport/stlport/stl/
D_algobase.c39 bool lexicographical_compare(_InputIter1 __first1, _InputIter1 __last1, in lexicographical_compare() argument
41 _STLP_DEBUG_CHECK(_STLP_PRIV __check_range(__first1, __last1)) in lexicographical_compare()
43 for ( ; __first1 != __last1 && __first2 != __last2 in lexicographical_compare()
44 ; ++__first1, ++__first2) { in lexicographical_compare()
45 if (*__first1 < *__first2) { in lexicographical_compare()
46 _STLP_VERBOSE_ASSERT(!(*__first2 < *__first1), _StlMsg_INVALID_STRICT_WEAK_PREDICATE) in lexicographical_compare()
49 if (*__first2 < *__first1) in lexicographical_compare()
52 return __first1 == __last1 && __first2 != __last2; in lexicographical_compare()
56 bool lexicographical_compare(_InputIter1 __first1, _InputIter1 __last1, in lexicographical_compare() argument
59 _STLP_DEBUG_CHECK(_STLP_PRIV __check_range(__first1, __last1)) in lexicographical_compare()
[all …]
D_list.c109 iterator __first1 = begin(); variable
113 while (__first1 != __last1 && __first2 != __last2)
114 *__first1++ = *__first2++;
116 erase(__first1, __last1);
171 _Literator __first1 = __that.begin(); in _S_merge() local
176 while (__first1 != __last1 && __first2 != __last2) { in _S_merge()
177 if (__comp(*__first2, *__first1)) { in _S_merge()
178 _STLP_VERBOSE_ASSERT(!__comp(*__first1, *__first2), _StlMsg_INVALID_STRICT_WEAK_PREDICATE) in _S_merge()
180 _List_global_inst::_Transfer(__first1._M_node, __first2._M_node, (++__next)._M_node); in _S_merge()
184 ++__first1; in _S_merge()
[all …]
D_algobase.h522 _STLP_STD::pair<_InputIter1, _InputIter2> mismatch(_InputIter1 __first1, in mismatch() argument
526 _STLP_DEBUG_CHECK(_STLP_PRIV __check_range(__first1, __last1)) in mismatch()
527 while (__first1 != __last1 && *__first1 == *__first2) { in mismatch()
528 ++__first1; in mismatch()
531 return _STLP_STD::pair<_InputIter1, _InputIter2>(__first1, __first2); in mismatch()
536 _STLP_STD::pair<_InputIter1, _InputIter2> mismatch(_InputIter1 __first1, in mismatch() argument
541 _STLP_DEBUG_CHECK(_STLP_PRIV __check_range(__first1, __last1)) in mismatch()
542 while (__first1 != __last1 && __binary_pred(*__first1, *__first2)) { in mismatch()
543 ++__first1; in mismatch()
546 return _STLP_STD::pair<_InputIter1, _InputIter2>(__first1, __first2); in mismatch()
[all …]
D_algo.c51 _BidirectionalIter3 __merge_backward(_BidirectionalIter1 __first1,
112 _ForwardIter1 search(_ForwardIter1 __first1, _ForwardIter1 __last1, in search() argument
114 _STLP_DEBUG_CHECK(_STLP_PRIV __check_range(__first1, __last1)) in search()
117 if (__first1 == __last1 || __first2 == __last2) in search()
118 return __first1; in search()
124 return find(__first1, __last1, *__first2); in search()
129 __first1 = find(__first1, __last1, *__first2); in search()
130 if (__first1 == __last1) in search()
134 _ForwardIter1 __current = __first1; in search()
140 return __first1; in search()
[all …]
D_numeric.h61 _Tp inner_product(_InputIterator1 __first1, _InputIterator1 __last1, in inner_product() argument
63 _STLP_DEBUG_CHECK(_STLP_PRIV __check_range(__first1, __last1)) in inner_product()
64 for ( ; __first1 != __last1; ++__first1, ++__first2) in inner_product()
65 _Init = _Init + (*__first1 * *__first2); in inner_product()
72 _Tp inner_product(_InputIterator1 __first1, _InputIterator1 __last1, in inner_product() argument
76 _STLP_DEBUG_CHECK(_STLP_PRIV __check_range(__first1, __last1)) in inner_product()
77 for ( ; __first1 != __last1; ++__first1, ++__first2) in inner_product()
78 _Init = __binary_op1(_Init, __binary_op2(*__first1, *__first2)); in inner_product()
D_algo.h124 _ForwardIter1 search(_ForwardIter1 __first1, _ForwardIter1 __last1,
136 inline _InputIter find_first_of(_InputIter __first1, _InputIter __last1, in find_first_of() argument
138 _STLP_DEBUG_CHECK(_STLP_PRIV __check_range(__first1, __last1)) in find_first_of()
140 return _STLP_PRIV __find_first_of(__first1, __last1, __first2, __last2); in find_first_of()
145 find_first_of(_InputIter __first1, _InputIter __last1, in find_first_of() argument
147 _STLP_DEBUG_CHECK(_STLP_PRIV __check_range(__first1, __last1)) in find_first_of()
149 return _STLP_PRIV __find_first_of(__first1, __last1, __first2, __last2, __comp); in find_first_of()
154 find_end(_ForwardIter1 __first1, _ForwardIter1 __last1,
160 swap_ranges(_ForwardIter1 __first1, _ForwardIter1 __last1, _ForwardIter2 __first2) { in swap_ranges() argument
161 _STLP_DEBUG_CHECK(_STLP_PRIV __check_range(__first1, __last1)) in swap_ranges()
[all …]
D_string.c74 inline _InputIter __str_find_first_of_aux(_InputIter __first1, _InputIter __last1, in __str_find_first_of_aux() argument
77 { return __find_first_of(__first1, __last1, __first2, __last2); } in __str_find_first_of_aux()
80 inline _InputIter __str_find_first_of_aux(_InputIter __first1, _InputIter __last1, in __str_find_first_of_aux() argument
83 { return __find_first_of(__first1, __last1, __first2, __last2, _STLP_PRIV _Eq_traits<_Traits>()); } in __str_find_first_of_aux()
86 inline _InputIter __str_find_first_of(_InputIter __first1, _InputIter __last1, in __str_find_first_of() argument
95 return __str_find_first_of_aux(__first1, __last1, __first2, __last2, __traits, _STLportTraits()); in __str_find_first_of()
99 inline _InputIter __str_find_first_not_of_aux3(_InputIter __first1, _InputIter __last1, in __str_find_first_not_of_aux3() argument
102 { return __find_first_of_aux2(__first1, __last1, __first2, __last2, __first2, not1(_Identity<bool>(… in __str_find_first_not_of_aux3()
105 inline _InputIter __str_find_first_not_of_aux3(_InputIter __first1, _InputIter __last1, in __str_find_first_not_of_aux3() argument
108 { return _STLP_STD::find_if(__first1, __last1, _STLP_PRIV _Not_within_traits<_Traits>(__first2, __l… in __str_find_first_not_of_aux3()
[all …]
D_list.h577 iterator __first1 = begin();
579 for ( ; __first1 != __last1 && __first2 != __last2; ++__first1, ++__first2)
580 *__first1 = *__first2;
582 erase(__first1, __last1);
588 iterator __first1 = begin();
590 for ( ; __first1 != __last1 && __first2 != __last2; ++__first1, ++__first2)
591 *__first1 = *__first2;
593 erase(__first1, __last1);
D_uninitialized.h373 __uninitialized_copy_copy(_InputIter1 __first1, _InputIter1 __last1, in __uninitialized_copy_copy() argument
376 _ForwardIter __new_result = uninitialized_copy(__first1, __last1, __result); in __uninitialized_copy_copy()
404 __uninitialized_copy_fill(_Iter __first1, _Iter __last1, _Iter __first2, _Iter __last2, in __uninitialized_copy_fill() argument
406 _Iter __mid2 = uninitialized_copy(__first1, __last1, __first2); in __uninitialized_copy_fill()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
Dalgorithm898 __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
910 if (__first1 == __last1) // if source exhausted return last correct answer
912 if (__pred(*__first1, *__first2))
914 ++__first1;
916 // *__first1 matches *__first2, now match elements after here
917 _ForwardIterator1 __m1 = __first1;
923 __r = __first1;
924 ++__first1;
931 ++__first1;
940 __find_end(_BidirectionalIterator1 __first1, _BidirectionalIterator1 __last1,
[all …]
Dnumeric92 inner_product(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _Tp __in…
94 for (; __first1 != __last1; ++__first1, ++__first2)
95 __init = __init + *__first1 * *__first2;
102 inner_product(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2,
105 for (; __first1 != __last1; ++__first1, ++__first2)
106 __init = __binary_op1(__init, __binary_op2(*__first1, *__first2));
D__bit_reference866 swap_ranges(__bit_iterator<__C1, false> __first1, __bit_iterator<__C1, false> __last1,
869 if (__first1.__ctz_ == __first2.__ctz_)
870 return __swap_ranges_aligned(__first1, __last1, __first2);
871 return __swap_ranges_unaligned(__first1, __last1, __first2);
957 __equal_unaligned(__bit_iterator<_Cp, _IC1> __first1, __bit_iterator<_Cp, _IC1> __last1,
964 difference_type __n = __last1 - __first1;
968 if (__first1.__ctz_ != 0)
970 unsigned __clz_f = __bits_per_word - __first1.__ctz_;
973 …__storage_type __m = (~__storage_type(0) << __first1.__ctz_) & (~__storage_type(0) >> (__clz_f - _…
974 __storage_type __b = *__first1.__seg_ & __m;
[all …]
Dutility208 swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2)
210 for(; __first1 != __last1; ++__first1, ++__first2)
211 swap(*__first1, *__first2);