Ticket #4776: test_range_search_n_v2.patch

File test_range_search_n_v2.patch, 810 bytes (added by Jim Bell <jim@…>, 12 years ago)
  • search_n.cpp

     
    3131
    3232        for (std::size_t n = 0; n < cont1.size(); ++n)
    3333        {
     34            BOOST_TEST_CHECKPOINT("Pre-std: " << typeid(cont1).name() << "; value: " << value << "; n:" << n << "; size:" << cont1.size());
     35            std::search_n(cont1.begin(), cont1.end(), n, value);
     36            BOOST_TEST_CHECKPOINT("Post-std: value: " << value << "; n:" << n << "; size:" << cont1.size());
    3437            iterator1_t it = boost::search_n(cont1, n, value);
    3538            BOOST_CHECK( it == boost::search_n(boost::make_iterator_range(cont1), n, value) );
    3639            BOOST_CHECK( it == std::search_n(cont1.begin(), cont1.end(), n, value) );