...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 R, typename Pred> BOOST_CXX14_CONSTEXPR boost::lazy_disable_if_c< boost::is_same< R, Pred >::value, typename boost::range_iterator< const R > >::type is_sorted_until(const R & range, Pred p);