Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function template mismatch

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

Synopsis

// In header: <boost/test/utils/algorithm.hpp>


template<typename InputIter1, typename InputIter2> 
  std::pair< InputIter1, InputIter2 > 
  mismatch(InputIter1 first1, InputIter1 last1, InputIter2 first2, 
           InputIter2 last2);

Description

Parameters:

first1

- first collection begin iterator

first2

- second collection begin iterator

last1

- first collection end iterator

last2

- second collection end iterator


PrevUpHomeNext