cpp/algorithm/mismatch

Returns the first mismatching pair of elements from two ranges: one defined by and another defined by. If is not provided (overloads ), it denotes.

@1,5@ Elements are compared using. @3,7@ Elements are compared using the given binary predicate.

@2,4,6,8@ Same as, but executed according to.

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

Complexity
@1-4@At most applications of  or the predicate @5-8@At most applications of  or the predicate.