boost::algorithm::is_sorted_until
// In header: <boost/algorithm/cxx11/is_sorted.hpp> template<typename R> BOOST_CXX14_CONSTEXPR boost::range_iterator< const R >::type is_sorted_until(const R & range);
Parameters:
range
The range to be tested.
Returns:
the point in the range R where the elements are unordered