3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Concept EqualityComparable</title>
5 <link rel="stylesheet" href="../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
8 <link rel="up" href="id319082-bb.html#concepts.reference" title="Concept reference">
9 <link rel="prev" href="CopyConstructible.html" title="Concept CopyConstructible">
10 <link rel="next" href="LessThanComparable.html" title="Concept LessThanComparable">
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>
22 <div class="spirit-nav">
23 <a accesskey="p" href="CopyConstructible.html"><img src="../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="id319082-bb.html#concepts.reference"><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="LessThanComparable.html"><img src="../../doc/src/images/next.png" alt="Next"></a>
25 <div class="refentry">
26 <a name="EqualityComparable"></a><div class="titlepage"></div>
27 <div class="refnamediv">
28 <h2><span class="refentrytitle">Concept EqualityComparable</span></h2>
29 <p>EqualityComparable</p>
31 <div class="refsect1">
32 <a name="id1128570"></a><h2>Description</h2>
33 <p>Equality Comparable types must have <code class="computeroutput">==</code> and
34 <code class="computeroutput">!=</code> operators.</p>
36 <div class="refsect1">
37 <a name="id1128588"></a><h2>Notation</h2>
38 <div class="variablelist"><dl>
39 <dt><span class="term">X</span></dt>
40 <dd>A type playing the role of comparable-type in the <a class="link" href="EqualityComparable.html" title="Concept EqualityComparable">EqualityComparable</a> concept.</dd>
42 <span class="term"><code class="varname">x</code>, </span><span class="term"><code class="varname">y</code></span>
44 <dd>Objects of type X</dd>
47 <div class="refsect1">
48 <a name="id1128618"></a><h2>Valid expressions</h2>
49 <div class="informaltable"><table class="table">
62 <td><p>Equality test</p></td>
63 <td><p>x == y</p></td>
64 <td><p>Convertible to <span class="type">bool</span></p></td>
67 <td><p>Inequality test</p></td>
68 <td><p>x != y</p></td>
69 <td><p>Convertible to <span class="type">bool</span></p></td>
74 <div class="refsect1">
75 <a name="id1128664"></a><h2>Models</h2>
76 <div class="itemizedlist"><ul class="itemizedlist" type="disc">
77 <li class="listitem"><span class="simplelist"><span class="type">int</span></span></li>
78 <li class="listitem"><span class="simplelist"><span class="type">std::vector<int></span></span></li>
82 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
83 <td align="left"></td>
84 <td align="right"><div class="copyright-footer">Copyright © 2001, 2002 Indiana University<br>Copyright © 2000, 2001 University of Notre Dame du Lac<br>Copyright © 2000 Jeremy Siek, Lie-Quan Lee, Andrew Lumsdaine<br>Copyright © 1996-1999 Silicon Graphics Computer Systems, Inc.<br>Copyright © 1994 Hewlett-Packard Company<p>Distributed under the Boost Software License, Version 1.0.
85 (See accompanying file <code class="filename">LICENSE_1_0.txt</code> or copy at
86 <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
88 <p>This product includes software developed at the University
89 of Notre Dame and the Pervasive Technology Labs at Indiana
90 University. For technical information contact Andrew Lumsdaine
91 at the Pervasive Technology Labs at Indiana University. For
92 administrative and license questions contact the Advanced
93 Research and Technology Institute at 351 West 10th Street.
94 Indianapolis, Indiana 46202, phone 317-278-4100, fax
96 <p>Some concepts based on versions from the MTL draft manual
97 and Boost Graph and Property Map documentation, the SGI Standard
98 Template Library documentation and the Hewlett-Packard STL,
99 under the following license:
101 <div class="blockquote"><blockquote class="blockquote"><p>Permission to use, copy, modify, distribute and
102 sell this software and its documentation for any purpose is
103 hereby granted without fee, provided that the above copyright
104 notice appears in all copies and that both that copyright
105 notice and this permission notice appear in supporting
106 documentation. Silicon Graphics makes no representations
107 about the suitability of this software for any purpose. It is
108 provided "as is" without express or implied
109 warranty.</p></blockquote></div>
113 <div class="spirit-nav">
114 <a accesskey="p" href="CopyConstructible.html"><img src="../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="id319082-bb.html#concepts.reference"><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="LessThanComparable.html"><img src="../../doc/src/images/next.png" alt="Next"></a>