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 LessThanComparable</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="EqualityComparable.html" title="Concept EqualityComparable"> 11<link rel="next" href="SignedInteger.html" title="Concept SignedInteger"> 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="EqualityComparable.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="SignedInteger.html"><img src="../../doc/src/images/next.png" alt="Next"></a> 25</div> 26<div class="refentry"> 27<a name="LessThanComparable"></a><div class="titlepage"></div> 28<div class="refnamediv"> 29<h2><span class="refentrytitle">Concept LessThanComparable</span></h2> 30<p>LessThanComparable</p> 31</div> 32<div class="refsect1"> 33<a name="id-1.3.49.3.13.3"></a><h2>Description</h2> 34<p>LessThanComparable types must have <code class="computeroutput"><</code>, 35 <code class="computeroutput">></code>, <code class="computeroutput"><=</code>, and <code class="computeroutput">>=</code> 36 operators.</p> 37</div> 38<div class="refsect1"> 39<a name="id-1.3.49.3.13.4"></a><h2>Notation</h2> 40<div class="variablelist"><dl class="variablelist"> 41<dt><span class="term">X</span></dt> 42<dd>A type playing the role of comparable-type in the <a class="link" href="LessThanComparable.html" title="Concept LessThanComparable">LessThanComparable</a> concept.</dd> 43<dt> 44<span class="term"><code class="varname">x</code>, </span><span class="term"><code class="varname">y</code></span> 45</dt> 46<dd>Objects of type X</dd> 47</dl></div> 48</div> 49<div class="refsect1"> 50<a name="id-1.3.49.3.13.5"></a><h2>Valid expressions</h2> 51<div class="informaltable"><table class="table"> 52<colgroup> 53<col> 54<col> 55<col> 56<col> 57</colgroup> 58<thead><tr> 59<th>Name</th> 60<th>Expression</th> 61<th>Type</th> 62<th>Semantics</th> 63</tr></thead> 64<tbody> 65<tr> 66<td><p>Less than</p></td> 67<td><p>x < y</p></td> 68<td><p>Convertible to <span class="type">bool</span></p></td> 69<td><p>Determine if one value is less than another.</p></td> 70</tr> 71<tr> 72<td><p>Less than or equal</p></td> 73<td><p>x <= y</p></td> 74<td><p>Convertible to <span class="type">bool</span></p></td> 75<td><p>Determine if one value is less than or equal to another.</p></td> 76</tr> 77<tr> 78<td><p>Greater than</p></td> 79<td><p>x > y</p></td> 80<td><p>Convertible to <span class="type">bool</span></p></td> 81<td><p>Determine if one value is greater than another.</p></td> 82</tr> 83<tr> 84<td><p>Greater than or equal to</p></td> 85<td><p>x >= y</p></td> 86<td><p>Convertible to <span class="type">bool</span></p></td> 87<td><p>Determine if one value is greater than or equal to another.</p></td> 88</tr> 89</tbody> 90</table></div> 91</div> 92<div class="refsect1"> 93<a name="id-1.3.49.3.13.6"></a><h2>Models</h2> 94<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> 95</div> 96</div> 97<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 98<td align="left"></td> 99<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. 100 (See accompanying file <code class="filename">LICENSE_1_0.txt</code> or copy at 101 <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 102 </p> 103<p>This product includes software developed at the University 104 of Notre Dame and the Pervasive Technology Labs at Indiana 105 University. For technical information contact Andrew Lumsdaine 106 at the Pervasive Technology Labs at Indiana University. For 107 administrative and license questions contact the Advanced 108 Research and Technology Institute at 351 West 10th Street. 109 Indianapolis, Indiana 46202, phone 317-278-4100, fax 110 317-274-5902.</p> 111<p>Some concepts based on versions from the MTL draft manual 112 and Boost Graph and Property Map documentation, the SGI Standard 113 Template Library documentation and the Hewlett-Packard STL, 114 under the following license: 115 </p> 116<div class="blockquote"><blockquote class="blockquote"><p>Permission to use, copy, modify, distribute and 117 sell this software and its documentation for any purpose is 118 hereby granted without fee, provided that the above copyright 119 notice appears in all copies and that both that copyright 120 notice and this permission notice appear in supporting 121 documentation. Silicon Graphics makes no representations 122 about the suitability of this software for any purpose. It is 123 provided "as is" without express or implied 124 warranty.</p></blockquote></div> 125</div></td> 126</tr></table> 127<hr> 128<div class="spirit-nav"> 129<a accesskey="p" href="EqualityComparable.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="SignedInteger.html"><img src="../../doc/src/images/next.png" alt="Next"></a> 130</div> 131</body> 132</html> 133