Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Function template is_strictly_increasing

boost::algorithm::is_strictly_increasing

Synopsis

// In header: <boost/algorithm/cxx11/is_sorted.hpp>


template<typename R> 
  BOOST_CXX14_CONSTEXPR bool is_strictly_increasing(const R & range);

Description

[Note] Note

This function will return false for sequences that contain items that compare equal. If that is not what you intended, you should use is_increasing instead.

Parameters:

range

The range to be tested.

Returns:

true if the entire sequence is strictly increasing; i.e, each item is greater than the previous one


PrevUpHomeNext