The std::mismatch algorithm is a find-style algorithm that operates on two ranges and returns a pair of iterators to the first two elements that do not match / for which the binary predicate returns false. With a customized comparator, the algorithm can operate as std::find with a per-element argument. Compiler Explorer link: https://lnkd.in/gs45UNSC #cpp #cplusplus #coding #programming #dailybiteofcpp
Thank you for sharing
std::mismatch could be more interesting to score the similarity of string