boost::text::mismatch
// In header: <boost/text/algorithm.hpp> template<typename Iter1, typename Sentinel1, typename Iter2, typename Sentinel2> std::pair< Iter1, Iter2 > mismatch(Iter1 first1, Sentinel1 last1, Iter2 first2, Sentinel2 last2);
Sentinel-friendly version of std::mismatch().
std::mismatch()