1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<html> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5<title>Concept EqualityComparable</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="concept_check.html#concepts.reference" title="Concept reference"> 10<link rel="prev" href="CopyConstructible.html" title="Concept CopyConstructible"> 11<link rel="next" href="LessThanComparable.html" title="Concept LessThanComparable"> 12</head> 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> 21</tr></table> 22<hr> 23<div class="spirit-nav"> 24<a accesskey="p" href="CopyConstructible.html"><img src="../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="concept_check.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> 26<div class="refentry"> 27<a name="EqualityComparable"></a><div class="titlepage"></div> 28<div class="refnamediv"> 29<h2><span class="refentrytitle">Concept EqualityComparable</span></h2> 30<p>EqualityComparable</p> 31</div> 32<div class="refsect1"> 33<a name="id-1.3.49.3.12.3"></a><h2>Description</h2> 34<p>Equality Comparable types must have <code class="computeroutput">==</code> and 35 <code class="computeroutput">!=</code> operators.</p> 36</div> 37<div class="refsect1"> 38<a name="id-1.3.49.3.12.4"></a><h2>Notation</h2> 39<div class="variablelist"><dl class="variablelist"> 40<dt><span class="term">X</span></dt> 41<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<dt> 43<span class="term"><code class="varname">x</code>, </span><span class="term"><code class="varname">y</code></span> 44</dt> 45<dd>Objects of type X</dd> 46</dl></div> 47</div> 48<div class="refsect1"> 49<a name="id-1.3.49.3.12.5"></a><h2>Valid expressions</h2> 50<div class="informaltable"><table class="table"> 51<colgroup> 52<col> 53<col> 54<col> 55</colgroup> 56<thead><tr> 57<th>Name</th> 58<th>Expression</th> 59<th>Type</th> 60</tr></thead> 61<tbody> 62<tr> 63<td><p>Equality test</p></td> 64<td><p>x == y</p></td> 65<td><p>Convertible to <span class="type">bool</span></p></td> 66</tr> 67<tr> 68<td><p>Inequality test</p></td> 69<td><p>x != y</p></td> 70<td><p>Convertible to <span class="type">bool</span></p></td> 71</tr> 72</tbody> 73</table></div> 74</div> 75<div class="refsect1"> 76<a name="id-1.3.49.3.12.6"></a><h2>Models</h2> 77<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 78<li class="listitem"><span class="simplelist"><span class="type">int</span></span></li> 79<li class="listitem"><span class="simplelist"><span class="type">std::vector<int></span></span></li> 80</ul></div> 81</div> 82</div> 83<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 84<td align="left"></td> 85<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. 86 (See accompanying file <code class="filename">LICENSE_1_0.txt</code> or copy at 87 <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 88 </p> 89<p>This product includes software developed at the University 90 of Notre Dame and the Pervasive Technology Labs at Indiana 91 University. For technical information contact Andrew Lumsdaine 92 at the Pervasive Technology Labs at Indiana University. For 93 administrative and license questions contact the Advanced 94 Research and Technology Institute at 351 West 10th Street. 95 Indianapolis, Indiana 46202, phone 317-278-4100, fax 96 317-274-5902.</p> 97<p>Some concepts based on versions from the MTL draft manual 98 and Boost Graph and Property Map documentation, the SGI Standard 99 Template Library documentation and the Hewlett-Packard STL, 100 under the following license: 101 </p> 102<div class="blockquote"><blockquote class="blockquote"><p>Permission to use, copy, modify, distribute and 103 sell this software and its documentation for any purpose is 104 hereby granted without fee, provided that the above copyright 105 notice appears in all copies and that both that copyright 106 notice and this permission notice appear in supporting 107 documentation. Silicon Graphics makes no representations 108 about the suitability of this software for any purpose. It is 109 provided "as is" without express or implied 110 warranty.</p></blockquote></div> 111</div></td> 112</tr></table> 113<hr> 114<div class="spirit-nav"> 115<a accesskey="p" href="CopyConstructible.html"><img src="../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="concept_check.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> 116</div> 117</body> 118</html> 119