Lines Matching refs:__first2
59 __is_permutation_impl(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2,
74 for (auto __j = __first2; __j != __last2; ++__j) {
98 __is_permutation(_ForwardIterator1 __first1, _Sentinel1 __last1, _ForwardIterator2 __first2,
101 for (; __first1 != __last1; ++__first1, (void)++__first2) {
102 if (!__pred(*__first1, *__first2))
114 auto __last2 = _IterOps<_AlgPolicy>::next(__first2, __l1);
117 std::move(__first1), std::move(__last1), std::move(__first2), std::move(__last2),
126 __is_permutation(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2,
130 while (__first1 != __last1 && __first2 != __last2) {
131 … if (!std::__invoke(__pred, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2)))
134 ++__first2;
138 return __first2 == __last2;
139 if (__first2 == __last2) // Second range is shorter
146 _D2 __l2 = _IterOps<_AlgPolicy>::distance(__first2, __last2);
151 std::move(__first1), std::move(__last1), std::move(__first2), std::move(__last2),
160 __is_permutation(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2,
163 if (std::distance(__first1, __last1) != std::distance(__first2, __last2))
166 std::move(__first1), std::move(__last1), std::move(__first2), std::move(__last2),
176 __is_permutation(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2,
179 std::move(__first1), std::move(__last1), std::move(__first2), std::move(__last2),
189 is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
191 static_assert(__is_callable<_BinaryPredicate, decltype(*__first1), decltype(*__first2)>::value,
195 std::move(__first1), std::move(__last1), std::move(__first2), __pred);
201 is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2) {
204 return std::is_permutation(__first1, __last1, __first2, __equal_to<__v1, __v2>());
212 is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
218 std::move(__first1), std::move(__last1), std::move(__first2), std::move(__last2),
225 is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2,
227 static_assert(__is_callable<_BinaryPredicate, decltype(*__first1), decltype(*__first2)>::value,
231 std::move(__first1), std::move(__last1), std::move(__first2), std::move(__last2),