1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Miscellaneous Interval Functions</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="Chapter 1. Boost.Icl"> 8<link rel="up" href="../function_reference.html" title="Function Reference"> 9<link rel="prev" href="additional_interval_orderings.html" title="Additional Interval Orderings"> 10<link rel="next" href="../acknowledgments.html" title="Acknowledgments"> 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="../../../../../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="additional_interval_orderings.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../function_reference.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="../acknowledgments.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h3 class="title"> 27<a name="boost_icl.function_reference.miscellaneous_interval_functions"></a><a class="link" href="miscellaneous_interval_functions.html" title="Miscellaneous Interval Functions">Miscellaneous 28 Interval Functions</a> 29</h3></div></div></div> 30<div class="informaltable"><table class="table"> 31<colgroup> 32<col> 33<col> 34<col> 35<col> 36<col> 37<col> 38<col> 39</colgroup> 40<thead><tr> 41<th> 42 <p> 43 T 44 </p> 45 </th> 46<th> 47 <p> 48 discrete<br> _interval 49 </p> 50 </th> 51<th> 52 <p> 53 continuous<br> _interval 54 </p> 55 </th> 56<th> 57 <p> 58 right_open<br> _interval 59 </p> 60 </th> 61<th> 62 <p> 63 left_open<br> _interval 64 </p> 65 </th> 66<th> 67 <p> 68 closed<br> _interval 69 </p> 70 </th> 71<th> 72 <p> 73 open<br> _interval 74 </p> 75 </th> 76</tr></thead> 77<tbody> 78<tr> 79<td> 80 <p> 81 Interval bounds 82 </p> 83 </td> 84<td> 85 <p> 86 dynamic 87 </p> 88 </td> 89<td> 90 <p> 91 dynamic 92 </p> 93 </td> 94<td> 95 <p> 96 static 97 </p> 98 </td> 99<td> 100 <p> 101 static 102 </p> 103 </td> 104<td> 105 <p> 106 static 107 </p> 108 </td> 109<td> 110 <p> 111 static 112 </p> 113 </td> 114</tr> 115<tr> 116<td> 117 <p> 118 Form 119 </p> 120 </td> 121<td> 122 </td> 123<td> 124 </td> 125<td> 126 <p> 127 asymmetric 128 </p> 129 </td> 130<td> 131 <p> 132 asymmetric 133 </p> 134 </td> 135<td> 136 <p> 137 symmetric 138 </p> 139 </td> 140<td> 141 <p> 142 symmetric 143 </p> 144 </td> 145</tr> 146<tr> 147<td> 148 <p> 149 <span class="emphasis"><em><span class="bold"><strong>Miscellaneous</strong></span></em></span> 150 </p> 151 </td> 152<td> 153 </td> 154<td> 155 </td> 156<td> 157 </td> 158<td> 159 </td> 160<td> 161 </td> 162<td> 163 </td> 164</tr> 165<tr> 166<td> 167 <p> 168 <code class="computeroutput"><span class="keyword">bool</span> <span class="identifier">touches</span><span class="special">(</span><span class="keyword">const</span> 169 <span class="identifier">T</span><span class="special">&,</span> 170 <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&)</span></code> 171 </p> 172 </td> 173<td> 174 <p> 175 1 176 </p> 177 </td> 178<td> 179 <p> 180 1 181 </p> 182 </td> 183<td> 184 <p> 185 1 186 </p> 187 </td> 188<td> 189 <p> 190 1 191 </p> 192 </td> 193<td> 194 <p> 195 1 196 </p> 197 </td> 198<td> 199 <p> 200 1 201 </p> 202 </td> 203</tr> 204<tr> 205<td> 206 <p> 207 <code class="computeroutput"><span class="identifier">T</span> <span class="identifier">inner_complement</span><span class="special">(</span><span class="keyword">const</span> 208 <span class="identifier">T</span><span class="special">&,</span> 209 <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&)</span></code> 210 </p> 211 </td> 212<td> 213 <p> 214 1 215 </p> 216 </td> 217<td> 218 <p> 219 1 220 </p> 221 </td> 222<td> 223 <p> 224 1 225 </p> 226 </td> 227<td> 228 <p> 229 1 230 </p> 231 </td> 232<td> 233 <p> 234 1 235 </p> 236 </td> 237<td> 238 <p> 239 1 240 </p> 241 </td> 242</tr> 243<tr> 244<td> 245 <p> 246 <code class="computeroutput"><span class="identifier">difference_type</span> <span class="identifier">distance</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span><span class="special">&,</span> <span class="keyword">const</span> 247 <span class="identifier">T</span><span class="special">&)</span></code> 248 </p> 249 </td> 250<td> 251 <p> 252 1 253 </p> 254 </td> 255<td> 256 <p> 257 1 258 </p> 259 </td> 260<td> 261 <p> 262 1 263 </p> 264 </td> 265<td> 266 <p> 267 1 268 </p> 269 </td> 270<td> 271 <p> 272 1 273 </p> 274 </td> 275<td> 276 <p> 277 1 278 </p> 279 </td> 280</tr> 281</tbody> 282</table></div> 283<div class="informaltable"><table class="table"> 284<colgroup> 285<col> 286<col> 287</colgroup> 288<thead><tr> 289<th> 290 <p> 291 <span class="emphasis"><em><span class="bold"><strong>Miscellaneous Interval Functions</strong></span></em></span> 292 </p> 293 </th> 294<th> 295 <p> 296 Description 297 </p> 298 </th> 299</tr></thead> 300<tbody> 301<tr> 302<td> 303 <p> 304 <code class="computeroutput"><span class="keyword">bool</span> <span class="identifier">touches</span><span class="special">(</span><span class="keyword">const</span> 305 <span class="identifier">T</span><span class="special">&,</span> 306 <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&)</span></code> 307 </p> 308 </td> 309<td> 310 <p> 311 <code class="computeroutput"><span class="identifier">touches</span><span class="special">(</span><span class="identifier">x</span><span class="special">,</span><span class="identifier">y</span><span class="special">)</span></code> 312 Between the disjoint intervals <code class="computeroutput"><span class="identifier">x</span></code> 313 and <code class="computeroutput"><span class="identifier">y</span></code> are no elements. 314 </p> 315 </td> 316</tr> 317<tr> 318<td> 319 <p> 320 <code class="computeroutput"><span class="identifier">T</span> <span class="identifier">inner_complement</span><span class="special">(</span><span class="keyword">const</span> 321 <span class="identifier">T</span><span class="special">&,</span> 322 <span class="keyword">const</span> <span class="identifier">T</span><span class="special">&)</span></code> 323 </p> 324 </td> 325<td> 326 <p> 327 <code class="computeroutput"><span class="identifier">z</span> <span class="special">=</span> 328 <span class="identifier">inner_complement</span><span class="special">(</span><span class="identifier">x</span><span class="special">,</span><span class="identifier">y</span><span class="special">)</span></code> 329 <code class="computeroutput"><span class="identifier">z</span></code> is the interval 330 between <code class="computeroutput"><span class="identifier">x</span></code> and 331 <code class="computeroutput"><span class="identifier">y</span></code> 332 </p> 333 </td> 334</tr> 335<tr> 336<td> 337 <p> 338 <code class="computeroutput"><span class="identifier">difference_type</span> <span class="identifier">distance</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span><span class="special">&,</span> <span class="keyword">const</span> 339 <span class="identifier">T</span><span class="special">&)</span></code> 340 </p> 341 </td> 342<td> 343 <p> 344 <code class="computeroutput"><span class="identifier">d</span> <span class="special">=</span> 345 <span class="identifier">distance</span><span class="special">(</span><span class="identifier">x</span><span class="special">,</span><span class="identifier">y</span><span class="special">)</span></code> 346 If the domain type of the interval has a difference_type, <code class="computeroutput"><span class="identifier">d</span></code> is the distance between <code class="computeroutput"><span class="identifier">x</span></code> and <code class="computeroutput"><span class="identifier">y</span></code>. 347 </p> 348 </td> 349</tr> 350</tbody> 351</table></div> 352<p> 353 <span class="emphasis"><em><span class="bold"><strong>Back to section . . .</strong></span></em></span> 354 </p> 355<div class="informaltable"><table class="table"> 356<colgroup><col></colgroup> 357<thead><tr></tr></thead> 358<tbody> 359<tr><td> 360 <p> 361 <a class="link" href="../interface/function_synopsis.html#additional_interval_functions"><span class="emphasis"><em><span class="bold"><strong>Additional interval functions</strong></span></em></span></a> 362 </p> 363 </td></tr> 364<tr><td> 365 <p> 366 <a class="link" href="../interface/function_synopsis.html#function_synopsis_table"><span class="emphasis"><em><span class="bold"><strong>Function 367 Synopsis</strong></span></em></span></a> 368 </p> 369 </td></tr> 370<tr><td> 371 <p> 372 <a class="link" href="../interface.html" title="Interface"><span class="emphasis"><em><span class="bold"><strong>Interface</strong></span></em></span></a> 373 </p> 374 </td></tr> 375</tbody> 376</table></div> 377</div> 378<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 379<td align="left"></td> 380<td align="right"><div class="copyright-footer">Copyright © 2007-2010 Joachim 381 Faulhaber<br>Copyright © 1999-2006 Cortex Software 382 GmbH<p> 383 Distributed under the Boost Software License, Version 1.0. (See accompanying 384 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 385 </p> 386</div></td> 387</tr></table> 388<hr> 389<div class="spirit-nav"> 390<a accesskey="p" href="additional_interval_orderings.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../function_reference.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="../acknowledgments.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> 391</div> 392</body> 393</html> 394