MCPcopy Create free account
hub / github.com/boostorg/parser / mismatch

Function mismatch

include/boost/parser/detail/text/algorithm.hpp:274–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272 typename Iter2,
273 typename Sentinel2>
274 std::pair<Iter1, Iter2>
275 mismatch(Iter1 first1, Sentinel1 last1, Iter2 first2, Sentinel2 last2)
276 {
277 for (; first1 != last1 && first2 != last2; ++first1, ++first2) {
278 if (*first1 != *first2)
279 break;
280 }
281 return {first1, first2};
282 }
283
284 /** Sentinel-friendly version of
285 `std::lexicographical_compare_three_way()`, except that it returns an

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected