MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __equal_impl

Function __equal_impl

system/lib/libcxx/include/__algorithm/equal.h:210–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208
209template <class _Iter1, class _Sent1, class _Iter2, class _Sent2, class _Pred, class _Proj1, class _Proj2>
210[[__nodiscard__]] inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 bool __equal_impl(
211 _Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Pred& __comp, _Proj1& __proj1, _Proj2& __proj2) {
212 while (__first1 != __last1 && __first2 != __last2) {
213 if (!std::__invoke(__comp, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2)))
214 return false;
215 ++__first1;
216 ++__first2;
217 }
218 return __first1 == __last1 && __first2 == __last2;
219}
220
221template <class _Tp,
222 class _Up,

Callers 2

operator()Method · 0.85
equalFunction · 0.85

Calls 2

__constexpr_memcmp_equalFunction · 0.85
__equal_alignedFunction · 0.85

Tested by

no test coverage detected