Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/doc/html/LessThanComparable.html @ 46

Last change on this file since 46 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 4.6 KB
Line 
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4<title>Concept LessThanComparable</title>
5<link rel="stylesheet" href="boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
7<link rel="start" href="index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
8<link rel="up" href="id620092-bb.html#concepts.reference" title="Concept reference">
9<link rel="prev" href="EqualityComparable.html" title="Concept EqualityComparable">
10<link rel="next" href="SignedInteger.html" title="Concept SignedInteger">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%">
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../boost.png"></td>
15<td align="center"><a href="../../index.htm">Home</a></td>
16<td align="center"><a href="../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="../../people/people.htm">People</a></td>
18<td align="center"><a href="../../more/faq.htm">FAQ</a></td>
19<td align="center"><a href="../../more/index.htm">More</a></td>
20</table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="EqualityComparable.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="id620092-bb.html#concepts.reference"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="SignedInteger.html"><img src="images/next.png" alt="Next"></a>
24</div>
25<div class="refentry" lang="en">
26<a name="LessThanComparable"></a><div class="titlepage"></div>
27<div class="refnamediv">
28<h2><span class="refentrytitle">Concept LessThanComparable</span></h2>
29<p>LessThanComparable</p>
30</div>
31<div class="refsect1" lang="en">
32<a name="id962619"></a><h2>Description</h2>
33<p>LessThanComparable types must have <code class="computeroutput">&lt;</code>,
34  <code class="computeroutput">&gt;</code>, <code class="computeroutput">&lt;=</code>, and <code class="computeroutput">&gt;=</code>
35  operators.</p>
36</div>
37<div class="refsect1" lang="en">
38<a name="id962649"></a><h2>Notation</h2>
39<div class="variablelist"><dl>
40<dt><span class="term">X</span></dt>
41<dd>A type playing the role of comparable-type in the <a href="LessThanComparable.html" title="Concept LessThanComparable">LessThanComparable</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" lang="en">
49<a name="id962680"></a><h2>Valid expressions</h2>
50<div class="informaltable"><table class="table">
51<colgroup>
52<col>
53<col>
54<col>
55<col>
56</colgroup>
57<thead><tr>
58<th>Name</th>
59<th>Expression</th>
60<th>Type</th>
61<th>Semantics</th>
62</tr></thead>
63<tbody>
64<tr>
65<td><p>Less than</p></td>
66<td><p>x &lt; y</p></td>
67<td><p>Convertible to <span class="type">bool</span></p></td>
68<td><p>Determine if one value is less than another.</p></td>
69</tr>
70<tr>
71<td><p>Less than or equal</p></td>
72<td><p>x &lt;= y</p></td>
73<td><p>Convertible to <span class="type">bool</span></p></td>
74<td><p>Determine if one value is less than or equal to another.</p></td>
75</tr>
76<tr>
77<td><p>Greater than</p></td>
78<td><p>x &gt; y</p></td>
79<td><p>Convertible to <span class="type">bool</span></p></td>
80<td><p>Determine if one value is greater than another.</p></td>
81</tr>
82<tr>
83<td><p>Greater than or equal to</p></td>
84<td><p>x &gt;= y</p></td>
85<td><p>Convertible to <span class="type">bool</span></p></td>
86<td><p>Determine if one value is greater than or equal to another.</p></td>
87</tr>
88</tbody>
89</table></div>
90</div>
91<div class="refsect1" lang="en">
92<a name="id962773"></a><h2>Models</h2>
93<div class="itemizedlist"><ul type="disc"><li><span class="simplelist"><span class="type">int</span></span></li></ul></div>
94</div>
95</div>
96<table width="100%"><tr>
97<td align="left"></td>
98<td align="right"><small>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</small></td>
99</tr></table>
100<hr>
101<div class="spirit-nav">
102<a accesskey="p" href="EqualityComparable.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="id620092-bb.html#concepts.reference"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="SignedInteger.html"><img src="images/next.png" alt="Next"></a>
103</div>
104</body>
105</html>
Note: See TracBrowser for help on using the repository browser.