Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / fusion / doc / html / fusion / sequence / operator / comparison.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Comparison</title>
5 <link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="../../../index.html" title="Chapter&#160;1.&#160;Fusion 2.2">
8 <link rel="up" href="../operator.html" title="Operator">
9 <link rel="prev" href="i_o/out.html" title="out">
10 <link rel="next" href="comparison/equal.html" title="equal">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
15 <td align="center"><a href="../../../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
20 </tr></table>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="i_o/out.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../operator.html"><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="comparison/equal.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="section">
26 <div class="titlepage"><div><div><h4 class="title">
27 <a name="fusion.sequence.operator.comparison"></a><a class="link" href="comparison.html" title="Comparison">Comparison</a>
28 </h4></div></div></div>
29 <div class="toc"><dl class="toc">
30 <dt><span class="section"><a href="comparison/equal.html">equal</a></span></dt>
31 <dt><span class="section"><a href="comparison/not_equal.html">not
32           equal</a></span></dt>
33 <dt><span class="section"><a href="comparison/less_than.html">less
34           than</a></span></dt>
35 <dt><span class="section"><a href="comparison/less_than_equal.html">less
36           than equal</a></span></dt>
37 <dt><span class="section"><a href="comparison/greater_than.html">greater
38           than</a></span></dt>
39 <dt><span class="section"><a href="comparison/greater_than_equal.html">greater
40           than equal</a></span></dt>
41 </dl></div>
42 <p>
43           The Comparison operators: <code class="computeroutput"><span class="special">==</span></code>,
44           <code class="computeroutput"><span class="special">!=</span></code>, <code class="computeroutput"><span class="special">&lt;</span></code>,
45           <code class="computeroutput"><span class="special">&lt;=</span></code>, <code class="computeroutput"><span class="special">&gt;=</span></code>
46           and <code class="computeroutput"><span class="special">&gt;=</span></code> work generically
47           on all Fusion sequences. Comparison operators are "short- circuited":
48           elementary comparisons start from the first elements and are performed
49           only until the result is clear.
50         </p>
51 <h6>
52 <a name="fusion.sequence.operator.comparison.h0"></a>
53           <span class="phrase"><a name="fusion.sequence.operator.comparison.header"></a></span><a class="link" href="comparison.html#fusion.sequence.operator.comparison.header">Header</a>
54         </h6>
55 <pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">sequence</span><span class="special">/</span><span class="identifier">comparison</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
56 <span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">comparison</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
57 </pre>
58 </div>
59 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
60 <td align="left"></td>
61 <td align="right"><div class="copyright-footer">Copyright &#169; 2001-2006, 2011, 2012 Joel de Guzman,
62       Dan Marsden, Tobias Schwinger<p>
63         Distributed under the Boost Software License, Version 1.0. (See accompanying
64         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>)
65       </p>
66 </div></td>
67 </tr></table>
68 <hr>
69 <div class="spirit-nav">
70 <a accesskey="p" href="i_o/out.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../operator.html"><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="comparison/equal.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
71 </div>
72 </body>
73 </html>