1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5 <title>Function template is_decreasing</title>
6 <link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
7 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
8 <link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
9 <link rel="up" href="../../algorithm/reference.html#header.boost.algorithm.cxx11.is_sorted_hpp" title="Header <boost/algorithm/cxx11/is_sorted.hpp>">
10 <link rel="prev" href="is_increasing_idp550650512.html" title="Function template is_increasing">
11 <link rel="next" href="is_decreasing_idp550659680.html" title="Function template is_decreasing">
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table cellpadding="2" width="100%"><tr>
15 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
16 <td align="center"><a href="../../../../index.html">Home</a></td>
17 <td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
18 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
19 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
20 <td align="center"><a href="../../../../more/index.htm">More</a></td>
23 <div class="spirit-nav">
24 <a accesskey="p" href="is_increasing_idp550650512.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../algorithm/reference.html#header.boost.algorithm.cxx11.is_sorted_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="is_decreasing_idp550659680.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="refentry">
27 <a name="boost.algorithm.is_decreasing_idp550654592"></a><div class="titlepage"></div>
28 <div class="refnamediv">
29 <h2><span class="refentrytitle">Function template is_decreasing</span></h2>
30 <p>boost::algorithm::is_decreasing</p>
32 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
33 <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../algorithm/reference.html#header.boost.algorithm.cxx11.is_sorted_hpp" title="Header <boost/algorithm/cxx11/is_sorted.hpp>">boost/algorithm/cxx11/is_sorted.hpp</a>>
36 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <a class="link" href="../../ForwardIterator.html" title="Concept ForwardIterator">ForwardIterator</a><span class="special">></span>
37 <span class="keyword">bool</span> <span class="identifier">is_decreasing</span><span class="special">(</span><span class="identifier">ForwardIterator</span> first<span class="special">,</span> <span class="identifier">ForwardIterator</span> last<span class="special">)</span><span class="special">;</span></pre></div>
38 <div class="refsect1">
39 <a name="idp127496624"></a><h2>Description</h2>
43 <div class="note"><table border="0" summary="Note">
45 <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../doc/src/images/note.png"></td>
46 <th align="left">Note</th>
48 <tr><td align="left" valign="top"><p>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_decreasing instead. </p></td></tr>
52 <div class="variablelist"><table border="0" class="variablelist compact">
54 <col align="left" valign="top">
59 <td><p><span class="term">Parameters:</span></p></td>
60 <td><div class="variablelist"><table border="0" class="variablelist compact">
62 <col align="left" valign="top">
67 <td><p><span class="term"><code class="computeroutput">first</code></span></p></td>
68 <td><p>The start of the sequence to be tested. </p></td>
71 <td><p><span class="term"><code class="computeroutput">last</code></span></p></td>
72 <td><p>One past the end of the sequence</p></td>
78 <td><p><span class="term">Returns:</span></p></td>
79 <td><p>true if the entire sequence is decreasing; i.e, each item is less than or equal to the previous one.</p></td>
85 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
86 <td align="left"></td>
87 <td align="right"><div class="copyright-footer">Copyright © 2010-2012 Marshall Clow<p>
88 Distributed under the Boost Software License, Version 1.0. (See accompanying
89 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
94 <div class="spirit-nav">
95 <a accesskey="p" href="is_increasing_idp550650512.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../algorithm/reference.html#header.boost.algorithm.cxx11.is_sorted_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="is_decreasing_idp550659680.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>