...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_increasing
// In header: <boost/algorithm/cxx11/is_sorted.hpp> template<typename R> BOOST_CXX14_CONSTEXPR bool is_increasing(const R & range);
Note | |
---|---|
This function will return true for sequences that contain items that compare equal. If that is not what you intended, you should use is_strictly_increasing instead. |
Parameters: |
|
||
Returns: |
true if the entire sequence is increasing; i.e, each item is greater than or equal to the previous one. |