MCPcopy Create free account
hub / github.com/EarlhamInst/KAT / check_sequence

Function check_sequence

deps/boost/libs/algorithm/test/sort_subrange_test.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26template <typename Iter>
27void check_sequence ( Iter first, Iter last, Iter sf, Iter sl )
28{
29 if (sf == sl) return;
30 for (Iter i = first; i < sf; ++i)
31 BOOST_CHECK(*i < *sf);
32 BOOST_CHECK(ba::is_sorted(sf, sl));
33 for (Iter i = sl; i < last; ++i)
34 BOOST_CHECK(*(sl-1) < *i);
35}
36
37template <typename Iter, typename Pred>
38void check_sequence ( Iter first, Iter last, Iter sf, Iter sl, Pred p )

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.70

Calls 2

pFunction · 0.85
is_sortedFunction · 0.50

Tested by

no test coverage detected