1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Struct template interval_traits<icl::closed_interval< DomainT, Compare >></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="../../interval_container_library_reference.html#header.boost.icl.closed_interval_hpp" title="Header <boost/icl/closed_interval.hpp>"> 9<link rel="prev" href="interval_idm46087634062464.html" title="Struct template interval_bound_type<closed_interval< DomainT, Compare >>"> 10<link rel="next" href="type_to__idm46087607866272.html" title="Struct template type_to_string<icl::closed_interval< DomainT, Compare >>"> 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="interval_idm46087634062464.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../interval_container_library_reference.html#header.boost.icl.closed_interval_hpp"><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="type_to__idm46087607866272.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="refentry"> 26<a name="boost.icl.interval_idm46087634055712"></a><div class="titlepage"></div> 27<div class="refnamediv"> 28<h2><span class="refentrytitle">Struct template interval_traits<icl::closed_interval< DomainT, Compare >></span></h2> 29<p>boost::icl::interval_traits<icl::closed_interval< DomainT, Compare >></p> 30</div> 31<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> 32<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../interval_container_library_reference.html#header.boost.icl.closed_interval_hpp" title="Header <boost/icl/closed_interval.hpp>">boost/icl/closed_interval.hpp</a>> 33 34</span><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> DomainT<span class="special">,</span> <span class="identifier">ICL_COMPARE</span> Compare<span class="special">></span> 35<span class="keyword">struct</span> <a class="link" href="interval_idm46087634055712.html" title="Struct template interval_traits<icl::closed_interval< DomainT, Compare >>">interval_traits</a><span class="special"><</span><span class="identifier">icl</span><span class="special">::</span><span class="identifier">closed_interval</span><span class="special"><</span> <span class="identifier">DomainT</span><span class="special">,</span> <span class="identifier">Compare</span> <span class="special">></span><span class="special">></span> <span class="special">{</span> 36 <span class="comment">// types</span> 37 <span class="keyword">typedef</span> <span class="identifier">DomainT</span> <a name="boost.icl.interval_idm46087634055712.domain_type"></a><span class="identifier">domain_type</span><span class="special">;</span> 38 <span class="keyword">typedef</span> <a class="link" href="closed_interval.html" title="Class template closed_interval">icl::closed_interval</a><span class="special"><</span> <span class="identifier">DomainT</span><span class="special">,</span> <span class="identifier">Compare</span> <span class="special">></span> <a name="boost.icl.interval_idm46087634055712.interval_type"></a><span class="identifier">interval_type</span><span class="special">;</span> 39 40 <span class="comment">// <a class="link" href="interval_idm46087634055712.html#idm46087634050912-bb">public member functions</a></span> 41 <span class="keyword">typedef</span> <a class="link" href="interval_idm46087634055712.html#idm46087634050352-bb"><span class="identifier">ICL_COMPARE_DOMAIN</span></a><span class="special">(</span><span class="identifier">Compare</span><span class="special">,</span> <span class="identifier">DomainT</span><span class="special">)</span><span class="special">;</span> 42 43 <span class="comment">// <a class="link" href="interval_idm46087634055712.html#idm46087634047968-bb">public static functions</a></span> 44 <span class="keyword">static</span> interval_type <a class="link" href="interval_idm46087634055712.html#idm46087634047408-bb"><span class="identifier">construct</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">domain_type</span> <span class="special">&</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">domain_type</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 45 <span class="keyword">static</span> <span class="identifier">domain_type</span> <a class="link" href="interval_idm46087634055712.html#idm46087634044784-bb"><span class="identifier">lower</span></a><span class="special">(</span><span class="keyword">const</span> interval_type <span class="special">&</span><span class="special">)</span><span class="special">;</span> 46 <span class="keyword">static</span> <span class="identifier">domain_type</span> <a class="link" href="interval_idm46087634055712.html#idm46087607868528-bb"><span class="identifier">upper</span></a><span class="special">(</span><span class="keyword">const</span> interval_type <span class="special">&</span><span class="special">)</span><span class="special">;</span> 47<span class="special">}</span><span class="special">;</span></pre></div> 48<div class="refsect1"> 49<a name="idm45714042885888"></a><h2>Description</h2> 50<div class="refsect2"> 51<a name="idm45714042885472"></a><h3> 52<a name="idm46087634050912-bb"></a><code class="computeroutput">interval_traits</code> public member functions</h3> 53<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><span class="keyword">typedef</span> <a name="idm46087634050352-bb"></a><span class="identifier">ICL_COMPARE_DOMAIN</span><span class="special">(</span><span class="identifier">Compare</span><span class="special">,</span> <span class="identifier">DomainT</span><span class="special">)</span><span class="special">;</span></pre></li></ol></div> 54</div> 55<div class="refsect2"> 56<a name="idm45714042877216"></a><h3> 57<a name="idm46087634047968-bb"></a><code class="computeroutput">interval_traits</code> public static functions</h3> 58<div class="orderedlist"><ol class="orderedlist" type="1"> 59<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> interval_type <a name="idm46087634047408-bb"></a><span class="identifier">construct</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">domain_type</span> <span class="special">&</span> lo<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">domain_type</span> <span class="special">&</span> up<span class="special">)</span><span class="special">;</span></pre></li> 60<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">domain_type</span> <a name="idm46087634044784-bb"></a><span class="identifier">lower</span><span class="special">(</span><span class="keyword">const</span> interval_type <span class="special">&</span> inter_val<span class="special">)</span><span class="special">;</span></pre></li> 61<li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="identifier">domain_type</span> <a name="idm46087607868528-bb"></a><span class="identifier">upper</span><span class="special">(</span><span class="keyword">const</span> interval_type <span class="special">&</span> inter_val<span class="special">)</span><span class="special">;</span></pre></li> 62</ol></div> 63</div> 64</div> 65</div> 66<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 67<td align="left"></td> 68<td align="right"><div class="copyright-footer">Copyright © 2007-2010 Joachim 69 Faulhaber<br>Copyright © 1999-2006 Cortex Software 70 GmbH<p> 71 Distributed under the Boost Software License, Version 1.0. (See accompanying 72 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>) 73 </p> 74</div></td> 75</tr></table> 76<hr> 77<div class="spirit-nav"> 78<a accesskey="p" href="interval_idm46087634062464.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../interval_container_library_reference.html#header.boost.icl.closed_interval_hpp"><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="type_to__idm46087607866272.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> 79</div> 80</body> 81</html> 82