3 <meta http-equiv=
"Content-Type" content=
"text/html; charset=US-ASCII">
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.74.0">
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">
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>
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>
25 <div class=
"section boost_icl_function_reference_miscellaneous_interval_functions" lang=
"en">
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">
48 discrete
<br> _interval
53 continuous
<br> _interval
58 right_open
<br> _interval
63 left_open
<br> _interval
153 <span class=
"emphasis"><em><span class=
"bold"><strong>Miscellaneous
</strong></span></em></span>
184 <code class=
"computeroutput"><span class=
"keyword">bool
</span> <span class=
"identifier">touches
</span><span class=
"special">(
</span><span class=
"keyword">const
</span> <span class=
"identifier">T
</span><span class=
"special">&,
</span>
185 <span class=
"keyword">const
</span> <span class=
"identifier">T
</span><span class=
"special">&)
</span></code>
222 <code class=
"computeroutput"><span class=
"identifier">T
</span> <span class=
"identifier">inner_complement
</span><span class=
"special">(
</span><span class=
"keyword">const
</span> <span class=
"identifier">T
</span><span class=
"special">&,
</span>
223 <span class=
"keyword">const
</span> <span class=
"identifier">T
</span><span class=
"special">&)
</span></code>
260 <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>
261 <span class=
"identifier">T
</span><span class=
"special">&)
</span></code>
297 <div class=
"informaltable"><table class=
"table">
305 <span class=
"emphasis"><em><span class=
"bold"><strong>Miscellaneous Interval Functions
</strong></span></em></span>
318 <code class=
"computeroutput"><span class=
"keyword">bool
</span> <span class=
"identifier">touches
</span><span class=
"special">(
</span><span class=
"keyword">const
</span> <span class=
"identifier">T
</span><span class=
"special">&,
</span>
319 <span class=
"keyword">const
</span> <span class=
"identifier">T
</span><span class=
"special">&)
</span></code>
324 <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>
325 Between the disjoint intervals
<code class=
"computeroutput"><span class=
"identifier">x
</span></code>
326 and
<code class=
"computeroutput"><span class=
"identifier">y
</span></code> are no elements.
333 <code class=
"computeroutput"><span class=
"identifier">T
</span> <span class=
"identifier">inner_complement
</span><span class=
"special">(
</span><span class=
"keyword">const
</span> <span class=
"identifier">T
</span><span class=
"special">&,
</span>
334 <span class=
"keyword">const
</span> <span class=
"identifier">T
</span><span class=
"special">&)
</span></code>
339 <code class=
"computeroutput"><span class=
"identifier">z
</span> <span class=
"special">=
</span>
340 <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>
341 <code class=
"computeroutput"><span class=
"identifier">z
</span></code> is the interval
342 between
<code class=
"computeroutput"><span class=
"identifier">x
</span></code> and
<code class=
"computeroutput"><span class=
"identifier">y
</span></code>
349 <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>
350 <span class=
"identifier">T
</span><span class=
"special">&)
</span></code>
355 <code class=
"computeroutput"><span class=
"identifier">d
</span> <span class=
"special">=
</span>
356 <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>
357 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>.
364 <span class=
"emphasis"><em><span class=
"bold"><strong>Back to section . . .
</strong></span></em></span>
366 <div class=
"informaltable"><table class=
"table">
367 <colgroup><col></colgroup>
368 <thead><tr></tr></thead>
372 <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>
377 <a class=
"link" href=
"../interface/function_synopsis.html#function_synopsis_table"><span class=
"emphasis"><em><span class=
"bold"><strong>Function
378 Synopsis
</strong></span></em></span></a>
383 <a class=
"link" href=
"../interface.html" title=
"Interface"><span class=
"emphasis"><em><span class=
"bold"><strong>Interface
</strong></span></em></span></a>
389 <table xmlns:
rev=
"http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width=
"100%"><tr>
390 <td align=
"left"></td>
391 <td align=
"right"><div class=
"copyright-footer">Copyright
© 2007 -
2010 Joachim Faulhaber
<br>Copyright
© 1999 -
2006 Cortex Software GmbH
<p>
392 Distributed under the Boost Software License, Version
1.0. (See accompanying
393 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>)
398 <div class=
"spirit-nav">
399 <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>