2012-10-13 03:49:23 +00:00
|
|
|
#ifndef SPROUT_RANGE_ALGORITHM_IS_DECREASING_HPP
|
|
|
|
#define SPROUT_RANGE_ALGORITHM_IS_DECREASING_HPP
|
|
|
|
|
|
|
|
#include <sprout/config.hpp>
|
|
|
|
#include <sprout/container/functions.hpp>
|
|
|
|
#include <sprout/algorithm/is_decreasing.hpp>
|
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
namespace range {
|
|
|
|
//
|
|
|
|
// is_decreasing
|
|
|
|
//
|
2013-08-07 13:13:03 +00:00
|
|
|
template<typename ForwardRange>
|
2012-10-13 03:49:23 +00:00
|
|
|
inline SPROUT_CONSTEXPR bool
|
2013-08-07 13:13:03 +00:00
|
|
|
is_decreasing(ForwardRange const& range) {
|
2012-10-13 03:49:23 +00:00
|
|
|
return sprout::is_decreasing(sprout::begin(range), sprout::end(range));
|
|
|
|
}
|
|
|
|
} // namespace range
|
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_RANGE_ALGORITHM_IS_DECREASING_HPP
|