...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::unit_test::utils::mismatch — this algorithm search through two collections for first mismatch position that get returned as a pair of iterators, first pointing to the mismatch position in first collection, second iterator in second one. This algorithms uses supplied predicate for collection elements comparison
// In header: <boost/test/utils/algorithm.hpp> template<typename InputIter1, typename InputIter2, typename Predicate> std::pair< InputIter1, InputIter2 > mismatch(InputIter1 first1, InputIter1 last1, InputIter2 first2, InputIter2 last2, Predicate pred);