...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::algorithm::is_sorted_until
// In header: <boost/algorithm/cxx11/is_sorted.hpp> template<typename ForwardIterator, typename Pred> BOOST_CXX14_CONSTEXPR ForwardIterator is_sorted_until(ForwardIterator first, ForwardIterator last, Pred p);
Parameters: |
|
||||||
Returns: |
the point in the sequence [first, last) where the elements are unordered (according to the comparison predicate 'p'). |