cpp/algorithm/ranges/mismatch

Returns the first mismatching pair of projected elements from two ranges: one defined by or  and another defined by  or.

@1@ Elements are compared using the given binary predicate.

@2@ Same as, but uses as the source range, as if using  as  and  as.

Return value
with iterators to the first two non-equal elements.

If no mismatches are found when the comparison reaches or, whichever happens first, the object holds the end iterator and the corresponding iterator from the other range.

Complexity
At most applications of the predicate and corresponding projections.