Ticket #4776: test_range_search_n_v2.patch
File test_range_search_n_v2.patch, 810 bytes (added by , 12 years ago) |
---|
-
search_n.cpp
31 31 32 32 for (std::size_t n = 0; n < cont1.size(); ++n) 33 33 { 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()); 34 37 iterator1_t it = boost::search_n(cont1, n, value); 35 38 BOOST_CHECK( it == boost::search_n(boost::make_iterator_range(cont1), n, value) ); 36 39 BOOST_CHECK( it == std::search_n(cont1.begin(), cont1.end(), n, value) );