• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Concept LessThanComparable</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="Concept reference">
8<link rel="up" href="index.html" 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%"><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="EqualityComparable.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="index.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="SignedInteger.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="refentry">
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">
32<a name="idm45301721728912"></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">
38<a name="idm45301721725776"></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="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">
49<a name="idm45301721722592"></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">
92<a name="idm45301721712464"></a><h2>Models</h2>
93<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><span class="simplelist"><span class="type">int</span></span></li></ul></div>
94</div>
95</div>
96<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
97<td align="left"></td>
98<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.
99      (See accompanying file <code class="filename">LICENSE_1_0.txt</code> or copy at
100      <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
101      </p>
102<p>This product includes software developed at the University
103      of Notre Dame and the Pervasive Technology Labs at Indiana
104      University. For technical information contact Andrew Lumsdaine
105      at the Pervasive Technology Labs at Indiana University.  For
106      administrative and license questions contact the Advanced
107      Research and Technology Institute at 351 West 10th Street.
108      Indianapolis, Indiana 46202, phone 317-278-4100, fax
109      317-274-5902.</p>
110<p>Some concepts based on versions from the MTL draft manual
111      and Boost Graph and Property Map documentation, the SGI Standard
112      Template Library documentation and the Hewlett-Packard STL,
113      under the following license:
114        </p>
115<div class="blockquote"><blockquote class="blockquote"><p>Permission to use, copy, modify, distribute and
116        sell this software and its documentation for any purpose is
117        hereby granted without fee, provided that the above copyright
118        notice appears in all copies and that both that copyright
119        notice and this permission notice appear in supporting
120        documentation.  Silicon Graphics makes no representations
121        about the suitability of this software for any purpose.  It is
122        provided "as is" without express or implied
123        warranty.</p></blockquote></div>
124</div></td>
125</tr></table>
126<hr>
127<div class="spirit-nav">
128<a accesskey="p" href="EqualityComparable.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="index.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="SignedInteger.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
129</div>
130</body>
131</html>
132