The function mismatch is used to find sequences that are not the same or differ according to the predicate criteria.
template<class InputIterator1, class InputIterator2> pair<InputIterator1, InputIterator2> mismatch (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2); template<class InputIterator1, class InputIterator2, class BinaryPredicate> pair<InputIterator1, InputIterator2> mismatch (InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, BinaryPredicate pred);
Returns a pair<iterator> that represent the beginning element and the range. If no mismatch is found the end and the corresponding range element is returned.