• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Operator ==</title>
5<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../../index.html" title="Chapter 1. Fusion 2.2">
8<link rel="up" href="../operator.html" title="Operator">
9<link rel="prev" href="operator_unary_star.html" title="Operator *">
10<link rel="next" href="operator_inequality.html" title="Operator !=">
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="operator_unary_star.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="operator_inequality.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.iterator.operator.operator_equality"></a><a class="link" href="operator_equality.html" title="Operator ==">Operator
28        ==</a>
29</h4></div></div></div>
30<h6>
31<a name="fusion.iterator.operator.operator_equality.h0"></a>
32          <span class="phrase"><a name="fusion.iterator.operator.operator_equality.description"></a></span><a class="link" href="operator_equality.html#fusion.iterator.operator.operator_equality.description">Description</a>
33        </h6>
34<p>
35          Compares 2 iterators for equality.
36        </p>
37<h6>
38<a name="fusion.iterator.operator.operator_equality.h1"></a>
39          <span class="phrase"><a name="fusion.iterator.operator.operator_equality.synopsis"></a></span><a class="link" href="operator_equality.html#fusion.iterator.operator.operator_equality.synopsis">Synopsis</a>
40        </h6>
41<pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
42    <span class="keyword">typename</span> <span class="identifier">I</span><span class="special">,</span>
43    <span class="keyword">typename</span> <span class="identifier">J</span>
44    <span class="special">&gt;</span>
45<span class="emphasis"><em>unspecified</em></span> <span class="keyword">operator</span><span class="special">==(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">J</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span>
46</pre>
47<div class="table">
48<a name="fusion.iterator.operator.operator_equality.t0"></a><p class="title"><b>Table 1.9. Parameters</b></p>
49<div class="table-contents"><table class="table" summary="Parameters">
50<colgroup>
51<col>
52<col>
53<col>
54</colgroup>
55<thead><tr>
56<th>
57                  <p>
58                    Parameter
59                  </p>
60                </th>
61<th>
62                  <p>
63                    Requirement
64                  </p>
65                </th>
66<th>
67                  <p>
68                    Description
69                  </p>
70                </th>
71</tr></thead>
72<tbody><tr>
73<td>
74                  <p>
75                    <code class="computeroutput"><span class="identifier">i</span></code>, <code class="computeroutput"><span class="identifier">j</span></code>
76                  </p>
77                </td>
78<td>
79                  <p>
80                    Any fusion iterators
81                  </p>
82                </td>
83<td>
84                  <p>
85                    Operation's arguments
86                  </p>
87                </td>
88</tr></tbody>
89</table></div>
90</div>
91<br class="table-break"><h6>
92<a name="fusion.iterator.operator.operator_equality.h2"></a>
93          <span class="phrase"><a name="fusion.iterator.operator.operator_equality.expression_semantics"></a></span><a class="link" href="operator_equality.html#fusion.iterator.operator.operator_equality.expression_semantics">Expression
94          Semantics</a>
95        </h6>
96<pre class="programlisting"><span class="identifier">i</span> <span class="special">==</span> <span class="identifier">j</span>
97</pre>
98<p>
99          <span class="bold"><strong>Return type</strong></span>: Convertible to <code class="computeroutput"><span class="keyword">bool</span></code>.
100        </p>
101<p>
102          <span class="bold"><strong>Semantics</strong></span>: Equivalent to <code class="computeroutput"><a class="link" href="../metafunctions/equal_to.html" title="equal_to"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span><span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">value</span></code>
103          where <code class="computeroutput"><span class="identifier">I</span></code> and <code class="computeroutput"><span class="identifier">J</span></code> are the types of <code class="computeroutput"><span class="identifier">i</span></code>
104          and <code class="computeroutput"><span class="identifier">j</span></code> respectively.
105        </p>
106<h6>
107<a name="fusion.iterator.operator.operator_equality.h3"></a>
108          <span class="phrase"><a name="fusion.iterator.operator.operator_equality.header"></a></span><a class="link" href="operator_equality.html#fusion.iterator.operator.operator_equality.header">Header</a>
109        </h6>
110<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">iterator</span><span class="special">/</span><span class="identifier">equal_to</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
111<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">equal_to</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
112</pre>
113</div>
114<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
115<td align="left"></td>
116<td align="right"><div class="copyright-footer">Copyright © 2001-2006, 2011, 2012 Joel de Guzman,
117      Dan Marsden, Tobias Schwinger<p>
118        Distributed under the Boost Software License, Version 1.0. (See accompanying
119        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>)
120      </p>
121</div></td>
122</tr></table>
123<hr>
124<div class="spirit-nav">
125<a accesskey="p" href="operator_unary_star.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="operator_inequality.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
126</div>
127</body>
128</html>
129