3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Chapter 1. Boost.Icl</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="next" href="boost_icl/examples.html" title="Examples">
10 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
11 <table cellpadding="2" width="100%"><tr>
12 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
13 <td align="center"><a href="../../../../index.html">Home</a></td>
14 <td align="center"><a href="../../../libraries.htm">Libraries</a></td>
15 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
16 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
17 <td align="center"><a href="../../../../more/index.htm">More</a></td>
20 <div class="spirit-nav"><a accesskey="n" href="boost_icl/examples.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a></div>
22 <div class="titlepage"><div>
23 <div><h2 class="title">
24 <a name="optional"></a>Chapter 1. Boost.Icl</h2></div>
25 <div><div class="author"><h3 class="author">
26 <span class="firstname">Joachim</span> <span class="surname">Faulhaber</span>
28 <div><p class="copyright">Copyright © 2007-2010 Joachim
30 <div><p class="copyright">Copyright © 1999-2006 Cortex Software
32 <div><div class="legalnotice">
33 <a name="optional.legal"></a><p>
34 Distributed under the Boost Software License, Version 1.0. (See accompanying
35 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>)
40 <p><b>Table of Contents</b></p>
42 <dt><span class="section"><a href="index.html#boost_icl.introduction">Introduction</a></span></dt>
44 <dt><span class="section"><a href="index.html#boost_icl.introduction.definition_and_basic_example">Definition
45 and Basic Example</a></span></dt>
46 <dt><span class="section"><a href="index.html#boost_icl.introduction.icl_s_class_templates">Icl's class
47 templates</a></span></dt>
48 <dt><span class="section"><a href="index.html#boost_icl.introduction.interval_combining_styles">Interval
49 Combining Styles</a></span></dt>
51 <dt><span class="section"><a href="boost_icl/examples.html">Examples</a></span></dt>
53 <dt><span class="section"><a href="boost_icl/examples.html#boost_icl.examples.overview">Overview</a></span></dt>
54 <dt><span class="section"><a href="boost_icl/examples/party.html">Party</a></span></dt>
55 <dt><span class="section"><a href="boost_icl/examples/interval.html">Interval</a></span></dt>
56 <dt><span class="section"><a href="boost_icl/examples/dynamic_interval.html">Dynamic interval</a></span></dt>
57 <dt><span class="section"><a href="boost_icl/examples/static_interval.html">Static interval</a></span></dt>
58 <dt><span class="section"><a href="boost_icl/examples/interval_container.html">Interval container</a></span></dt>
59 <dt><span class="section"><a href="boost_icl/examples/overlap_counter.html">Overlap counter</a></span></dt>
60 <dt><span class="section"><a href="boost_icl/examples/partys_height_average.html">Party's height
61 average</a></span></dt>
62 <dt><span class="section"><a href="boost_icl/examples/partys_tallest_guests.html">Party's tallest
63 guests</a></span></dt>
64 <dt><span class="section"><a href="boost_icl/examples/time_grids.html">Time grids for months
65 and weeks</a></span></dt>
66 <dt><span class="section"><a href="boost_icl/examples/man_power.html">Man power</a></span></dt>
67 <dt><span class="section"><a href="boost_icl/examples/user_groups.html">User groups</a></span></dt>
68 <dt><span class="section"><a href="boost_icl/examples/std_copy.html">Std copy</a></span></dt>
69 <dt><span class="section"><a href="boost_icl/examples/std_transform.html">Std transform</a></span></dt>
70 <dt><span class="section"><a href="boost_icl/examples/custom_interval.html">Custom interval</a></span></dt>
72 <dt><span class="section"><a href="boost_icl/projects.html">Projects</a></span></dt>
73 <dd><dl><dt><span class="section"><a href="boost_icl/projects.html#boost_icl.projects.large_bitset">Large Bitset</a></span></dt></dl></dd>
74 <dt><span class="section"><a href="boost_icl/concepts.html">Concepts</a></span></dt>
76 <dt><span class="section"><a href="boost_icl/concepts.html#boost_icl.concepts.naming">Naming</a></span></dt>
77 <dt><span class="section"><a href="boost_icl/concepts/aspects.html">Aspects</a></span></dt>
78 <dt><span class="section"><a href="boost_icl/concepts/sets_and_maps.html">Sets and Maps</a></span></dt>
79 <dt><span class="section"><a href="boost_icl/concepts/aggrovering.html">Addability, Subtractability
80 and Aggregate on Overlap</a></span></dt>
81 <dt><span class="section"><a href="boost_icl/concepts/map_traits.html">Map Traits</a></span></dt>
83 <dt><span class="section"><a href="boost_icl/semantics.html">Semantics</a></span></dt>
85 <dt><span class="section"><a href="boost_icl/semantics.html#boost_icl.semantics.orderings_and_equivalences">Orderings
86 and Equivalences</a></span></dt>
87 <dt><span class="section"><a href="boost_icl/semantics/sets.html">Sets</a></span></dt>
88 <dt><span class="section"><a href="boost_icl/semantics/maps.html">Maps</a></span></dt>
89 <dt><span class="section"><a href="boost_icl/semantics/collectors__maps_of_sets.html">Collectors:
90 Maps of Sets</a></span></dt>
91 <dt><span class="section"><a href="boost_icl/semantics/quantifiers__maps_of_numbers.html">Quantifiers:
92 Maps of Numbers</a></span></dt>
93 <dt><span class="section"><a href="boost_icl/semantics/concept_induction.html">Concept Induction</a></span></dt>
95 <dt><span class="section"><a href="boost_icl/interface.html">Interface</a></span></dt>
97 <dt><span class="section"><a href="boost_icl/interface.html#boost_icl.interface.class_templates">Class templates</a></span></dt>
98 <dt><span class="section"><a href="boost_icl/interface/required_concepts.html">Required Concepts</a></span></dt>
99 <dt><span class="section"><a href="boost_icl/interface/associated_types.html">Associated Types</a></span></dt>
100 <dt><span class="section"><a href="boost_icl/interface/function_synopsis.html">Function Synopsis</a></span></dt>
102 <dt><span class="section"><a href="boost_icl/customization.html">Customization</a></span></dt>
103 <dd><dl><dt><span class="section"><a href="boost_icl/customization.html#boost_icl.customization.intervals">Intervals</a></span></dt></dl></dd>
104 <dt><span class="section"><a href="boost_icl/implementation.html">Implementation</a></span></dt>
106 <dt><span class="section"><a href="boost_icl/implementation.html#boost_icl.implementation.iterative_size">Iterative size</a></span></dt>
107 <dt><span class="section"><a href="boost_icl/implementation/complexity.html">Complexity</a></span></dt>
108 <dt><span class="section"><a href="boost_icl/implementation/inplace_and_infix_operators.html">Inplace
109 and infix operators</a></span></dt>
111 <dt><span class="section"><a href="boost_icl/function_reference.html">Function Reference</a></span></dt>
113 <dt><span class="section"><a href="boost_icl/function_reference.html#boost_icl.function_reference.overload_tables">Overload
114 tables</a></span></dt>
115 <dt><span class="section"><a href="boost_icl/function_reference/segmentational_fineness.html">Segmentational
116 Fineness</a></span></dt>
117 <dt><span class="section"><a href="boost_icl/function_reference/key_types.html">Key Types</a></span></dt>
118 <dt><span class="section"><a href="boost_icl/function_reference/construct__copy__destruct.html">Construct,
119 copy, destruct</a></span></dt>
120 <dt><span class="section"><a href="boost_icl/function_reference/containedness.html">Containedness</a></span></dt>
121 <dt><span class="section"><a href="boost_icl/function_reference/equivalences_and_orderings.html">Equivalences
122 and Orderings</a></span></dt>
123 <dt><span class="section"><a href="boost_icl/function_reference/size.html">Size</a></span></dt>
124 <dt><span class="section"><a href="boost_icl/function_reference/range.html">Range</a></span></dt>
125 <dt><span class="section"><a href="boost_icl/function_reference/selection.html">Selection</a></span></dt>
126 <dt><span class="section"><a href="boost_icl/function_reference/addition.html">Addition</a></span></dt>
127 <dt><span class="section"><a href="boost_icl/function_reference/subtraction.html">Subtraction</a></span></dt>
128 <dt><span class="section"><a href="boost_icl/function_reference/insertion.html">Insertion</a></span></dt>
129 <dt><span class="section"><a href="boost_icl/function_reference/erasure.html">Erasure</a></span></dt>
130 <dt><span class="section"><a href="boost_icl/function_reference/intersection.html">Intersection</a></span></dt>
131 <dt><span class="section"><a href="boost_icl/function_reference/symmetric_difference.html">Symmetric
132 Difference</a></span></dt>
133 <dt><span class="section"><a href="boost_icl/function_reference/iterator_related.html">Iterator
134 related</a></span></dt>
135 <dt><span class="section"><a href="boost_icl/function_reference/element_iteration.html">Element
136 iteration</a></span></dt>
137 <dt><span class="section"><a href="boost_icl/function_reference/streaming__conversion.html">Streaming,
138 conversion</a></span></dt>
139 <dt><span class="section"><a href="boost_icl/function_reference/interval_construction.html">Interval
140 Construction</a></span></dt>
141 <dt><span class="section"><a href="boost_icl/function_reference/additional_interval_orderings.html">Additional
142 Interval Orderings</a></span></dt>
143 <dt><span class="section"><a href="boost_icl/function_reference/miscellaneous_interval_functions.html">Miscellaneous
144 Interval Functions</a></span></dt>
146 <dt><span class="section"><a href="boost_icl/acknowledgments.html">Acknowledgments</a></span></dt>
147 <dt><span class="section"><a href="interval_container_library_reference.html">Interval Container Library Reference</a></span></dt>
149 <dt><span class="section"><a href="interval_container_library_reference.html#header.boost.icl.closed_interval_hpp">Header <boost/icl/closed_interval.hpp></a></span></dt>
150 <dt><span class="section"><a href="header/boost/icl/continuous_interval_hpp.html">Header <boost/icl/continuous_interval.hpp></a></span></dt>
151 <dt><span class="section"><a href="header/boost/icl/discrete_interval_hpp.html">Header <boost/icl/discrete_interval.hpp></a></span></dt>
152 <dt><span class="section"><a href="header/boost/icl/dynamic_interval_traits_hpp.html">Header <boost/icl/dynamic_interval_traits.hpp></a></span></dt>
153 <dt><span class="section"><a href="header/boost/icl/functors_hpp.html">Header <boost/icl/functors.hpp></a></span></dt>
154 <dt><span class="section"><a href="header/boost/icl/gregorian_hpp.html">Header <boost/icl/gregorian.hpp></a></span></dt>
155 <dt><span class="section"><a href="header/boost/icl/impl_config_hpp.html">Header <boost/icl/impl_config.hpp></a></span></dt>
156 <dt><span class="section"><a href="header/boost/icl/interval_hpp.html">Header <boost/icl/interval.hpp></a></span></dt>
157 <dt><span class="section"><a href="header/boost/icl/interval_base_map_hpp.html">Header <boost/icl/interval_base_map.hpp></a></span></dt>
158 <dt><span class="section"><a href="header/boost/icl/interval_base_set_hpp.html">Header <boost/icl/interval_base_set.hpp></a></span></dt>
159 <dt><span class="section"><a href="header/boost/icl/interval_bounds_hpp.html">Header <boost/icl/interval_bounds.hpp></a></span></dt>
160 <dt><span class="section"><a href="header/boost/icl/interval_combining_style_hpp.html">Header <boost/icl/interval_combining_style.hpp></a></span></dt>
161 <dt><span class="section"><a href="header/boost/icl/interval_map_hpp.html">Header <boost/icl/interval_map.hpp></a></span></dt>
162 <dt><span class="section"><a href="header/boost/icl/interval_set_hpp.html">Header <boost/icl/interval_set.hpp></a></span></dt>
163 <dt><span class="section"><a href="header/boost/icl/interval_traits_hpp.html">Header <boost/icl/interval_traits.hpp></a></span></dt>
164 <dt><span class="section"><a href="header/boost/icl/iterator_hpp.html">Header <boost/icl/iterator.hpp></a></span></dt>
165 <dt><span class="section"><a href="header/boost/icl/left_open_interval_hpp.html">Header <boost/icl/left_open_interval.hpp></a></span></dt>
166 <dt><span class="section"><a href="header/boost/icl/map_hpp.html">Header <boost/icl/map.hpp></a></span></dt>
167 <dt><span class="section"><a href="header/boost/icl/open_interval_hpp.html">Header <boost/icl/open_interval.hpp></a></span></dt>
168 <dt><span class="section"><a href="header/boost/icl/ptime_hpp.html">Header <boost/icl/ptime.hpp></a></span></dt>
169 <dt><span class="section"><a href="header/boost/icl/rational_hpp.html">Header <boost/icl/rational.hpp></a></span></dt>
170 <dt><span class="section"><a href="header/boost/icl/right_open_interval_hpp.html">Header <boost/icl/right_open_interval.hpp></a></span></dt>
171 <dt><span class="section"><a href="header/boost/icl/separate_interval_set_hpp.html">Header <boost/icl/separate_interval_set.hpp></a></span></dt>
172 <dt><span class="section"><a href="header/boost/icl/split_interval_map_hpp.html">Header <boost/icl/split_interval_map.hpp></a></span></dt>
173 <dt><span class="section"><a href="header/boost/icl/split_interval_set_hpp.html">Header <boost/icl/split_interval_set.hpp></a></span></dt>
177 <div class="section">
178 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
179 <a name="boost_icl.introduction"></a><a class="link" href="index.html#boost_icl.introduction" title="Introduction">Introduction</a>
180 </h2></div></div></div>
181 <div class="toc"><dl class="toc">
182 <dt><span class="section"><a href="index.html#boost_icl.introduction.definition_and_basic_example">Definition
183 and Basic Example</a></span></dt>
184 <dt><span class="section"><a href="index.html#boost_icl.introduction.icl_s_class_templates">Icl's class
185 templates</a></span></dt>
186 <dt><span class="section"><a href="index.html#boost_icl.introduction.interval_combining_styles">Interval
187 Combining Styles</a></span></dt>
190 <span class="quote">“<span class="quote">A bug crawls across the boost docs on my laptop screen. Let him be!
191 We need all the readers we can get.</span>”</span> -- Freely adapted from <a href="http://en.wikipedia.org/wiki/Jack_Kornfield" target="_top">Jack
195 Intervals are almost ubiquitous in software development. Yet they are very
196 easily coded into user defined classes by a pair of numbers so they are only
197 <span class="emphasis"><em>implicitly</em></span> used most of the time. The meaning of an interval
198 is simple. They represent all the elements between their lower and upper bound
199 and thus a set. But unlike sets, intervals usually can not be added to a single
200 new interval. If you want to add intervals to a collection of intervals that
201 does still represent a <span class="emphasis"><em>set</em></span>, you arrive at the idea of
202 <span class="emphasis"><em>interval_sets</em></span> provided by this library.
205 Interval containers of the <span class="bold"><strong>ICL</strong></span> have been developed
206 initially at <a href="http://www.cortex-software.de/desktopdefault.aspx" target="_top">Cortex
207 Software GmbH</a> to solve problems related to date and time interval computations
208 in the context of a Hospital Information System. Time intervals with associated
209 values like <span class="emphasis"><em>amount of invoice</em></span> or <span class="emphasis"><em>set of therapies</em></span>
210 had to be manipulated in statistics, billing programs and therapy scheduling
211 programs. So the <span class="bold"><strong>ICL</strong></span> emerged out of those
212 industrial use cases. It extracts generic code that helps to solve common problems
213 from the date and time problem domain and can be beneficial in other fields
217 One of the most advantageous aspects of interval containers is their very compact
218 representation of sets and maps. Working with sets and maps <span class="emphasis"><em>of elements</em></span>
219 can be very inefficient, if in a given problem domain, elements are typically
220 occurring in contiguous chunks. Besides a compact representation of associative
221 containers, that can reduce the cost of space and time drastically, the ICL
222 comes with a universal mechanism of aggregation, that allows to combine associated
223 values in meaningful ways when intervals overlap on insertion.
226 For a condensed introduction and overview you may want to look at the <a href="http://www.herold-faulhaber.de/boost_icl/doc/libs/icl/doc/boostcon09/intro_to_itl.pdf" target="_top">presentation
227 material on the <span class="bold"><strong>ICL</strong></span> from <span class="emphasis"><em><span class="bold"><strong>BoostCon2009</strong></span></em></span></a>.
229 <div class="section">
230 <div class="titlepage"><div><div><h3 class="title">
231 <a name="boost_icl.introduction.definition_and_basic_example"></a><a class="link" href="index.html#boost_icl.introduction.definition_and_basic_example" title="Definition and Basic Example">Definition
232 and Basic Example</a>
233 </h3></div></div></div>
235 The <span class="bold"><strong>Interval Container Library (ICL)</strong></span> provides
236 <code class="computeroutput"><a class="link" href="boost/icl/interval.html" title="Struct template interval">intervals</a></code> and two kinds
237 of interval containers: <code class="computeroutput"><a class="link" href="boost/icl/interval_set.html" title="Class template interval_set">interval_sets</a></code>
238 and <code class="computeroutput"><a class="link" href="boost/icl/interval_map.html" title="Class template interval_map">interval_maps</a></code>.
240 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
241 <li class="listitem">
242 An <code class="computeroutput"><a class="link" href="boost/icl/interval_base_set.html" title="Class template interval_base_set">interval_set</a></code>
243 is a <span class="bold"><strong>set</strong></span> that is implemented as a set
246 <li class="listitem">
247 An <code class="computeroutput"><a class="link" href="boost/icl/interval_base_map.html" title="Class template interval_base_map">interval_map</a></code>
248 is a <span class="bold"><strong>map</strong></span> that is implemented as a map
249 of interval value pairs.
253 <a name="boost_icl.introduction.definition_and_basic_example.h0"></a>
254 <span class="phrase"><a name="boost_icl.introduction.definition_and_basic_example.two_aspects"></a></span><a class="link" href="index.html#boost_icl.introduction.definition_and_basic_example.two_aspects">Two
258 <code class="computeroutput"><a class="link" href="boost/icl/interval_base_set.html" title="Class template interval_base_set">Interval_sets</a></code>
259 and <code class="computeroutput"><a class="link" href="boost/icl/interval_base_map.html" title="Class template interval_base_map">interval_maps</a></code>
260 expose two different aspects in their interfaces: (1) The functionality of
261 a set or a map, which is the more <span class="emphasis"><em><span class="bold"><strong>abstract
262 aspect</strong></span></em></span>. And (2) the functionality of a container of
263 intervals which is the more specific and <span class="emphasis"><em><span class="bold"><strong>implementation
264 related aspect</strong></span></em></span>. In practice both aspects are useful
265 and are therefore supported.
268 The first aspect, that will be called <span class="emphasis"><em><span class="bold"><strong>fundamental</strong></span></em></span>
269 <span class="emphasis"><em><span class="bold"><strong>aspect</strong></span></em></span>, is the more
270 important one. It means that we can use an <code class="computeroutput"><a class="link" href="boost/icl/interval_set.html" title="Class template interval_set">interval_set</a></code>
271 or <code class="computeroutput"><a class="link" href="boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code> like
272 a set or map <span class="emphasis"><em><span class="bold"><strong>of elements</strong></span></em></span>.
273 It exposes the same functions.
275 <pre class="programlisting"><span class="identifier">interval_set</span><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">mySet</span><span class="special">;</span>
276 <span class="identifier">mySet</span><span class="special">.</span><span class="identifier">insert</span><span class="special">(</span><span class="number">42</span><span class="special">);</span>
277 <span class="keyword">bool</span> <span class="identifier">has_answer</span> <span class="special">=</span> <span class="identifier">contains</span><span class="special">(</span><span class="identifier">mySet</span><span class="special">,</span> <span class="number">42</span><span class="special">);</span>
282 The second aspect, that will be called <span class="emphasis"><em><span class="bold"><strong>segmental</strong></span></em></span>
283 <span class="emphasis"><em><span class="bold"><strong>aspect</strong></span></em></span>, allows to exploit
284 the fact, that the elements of <code class="computeroutput"><a class="link" href="boost/icl/interval_set.html" title="Class template interval_set">interval_sets</a></code>
285 and <code class="computeroutput"><a class="link" href="boost/icl/interval_map.html" title="Class template interval_map">interval_maps</a></code> are
286 clustered in <span class="emphasis"><em><span class="bold"><strong>intervals</strong></span></em></span>
287 or <span class="emphasis"><em><span class="bold"><strong>segments</strong></span></em></span> that we
292 <pre class="programlisting"><span class="comment">// Switch on my favorite telecasts using an interval_set</span>
293 <span class="identifier">interval</span><span class="special"><</span><span class="identifier">seconds</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">news</span><span class="special">(</span><span class="identifier">make_seconds</span><span class="special">(</span><span class="string">"20:00:00"</span><span class="special">),</span> <span class="identifier">make_seconds</span><span class="special">(</span><span class="string">"20:15:00"</span><span class="special">));</span>
294 <span class="identifier">interval</span><span class="special"><</span><span class="identifier">seconds</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">talk_show</span><span class="special">(</span><span class="identifier">make_seconds</span><span class="special">(</span><span class="string">"22:45:30"</span><span class="special">),</span> <span class="identifier">make_seconds</span><span class="special">(</span><span class="string">"23:30:50"</span><span class="special">));</span>
295 <span class="identifier">interval_set</span><span class="special"><</span><span class="identifier">seconds</span><span class="special">></span> <span class="identifier">myTvProgram</span><span class="special">;</span>
296 <span class="identifier">myTvProgram</span><span class="special">.</span><span class="identifier">add</span><span class="special">(</span><span class="identifier">news</span><span class="special">).</span><span class="identifier">add</span><span class="special">(</span><span class="identifier">talk_show</span><span class="special">);</span>
298 <span class="comment">// Iterating over elements (seconds) would be silly ...</span>
299 <span class="keyword">for</span><span class="special">(</span><span class="identifier">interval_set</span><span class="special"><</span><span class="identifier">seconds</span><span class="special">>::</span><span class="identifier">iterator</span> <span class="identifier">telecast</span> <span class="special">=</span> <span class="identifier">myTvProgram</span><span class="special">.</span><span class="identifier">begin</span><span class="special">();</span>
300 <span class="identifier">telecast</span> <span class="special">!=</span> <span class="identifier">myTvProgram</span><span class="special">.</span><span class="identifier">end</span><span class="special">();</span> <span class="special">++</span><span class="identifier">telecast</span><span class="special">)</span>
301 <span class="comment">//...so this iterates over intervals</span>
302 <span class="identifier">TV</span><span class="special">.</span><span class="identifier">switch_on</span><span class="special">(*</span><span class="identifier">telecast</span><span class="special">);</span>
307 Working with <code class="computeroutput"><a class="link" href="boost/icl/interval_base_set.html" title="Class template interval_base_set">interval_sets</a></code>
308 and <code class="computeroutput"><a class="link" href="boost/icl/interval_base_map.html" title="Class template interval_base_map">interval_maps</a></code>
309 can be beneficial whenever the elements of sets appear in contiguous chunks:
310 <code class="computeroutput"><a class="link" href="boost/icl/interval.html" title="Struct template interval">intervals</a></code>. This is obviously
311 the case in many problem domains, particularly in fields that deal with computations
312 related to date and time.
315 <a name="boost_icl.introduction.definition_and_basic_example.h1"></a>
316 <span class="phrase"><a name="boost_icl.introduction.definition_and_basic_example.addabitlity_and_subtractability"></a></span><a class="link" href="index.html#boost_icl.introduction.definition_and_basic_example.addabitlity_and_subtractability">Addabitlity
317 and Subtractability</a>
320 Unlike <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">sets</span></code> and <code class="computeroutput"><span class="identifier">maps</span></code>,
321 <code class="computeroutput"><a class="link" href="boost/icl/interval_base_set.html" title="Class template interval_base_set">interval_sets</a></code>
322 and <code class="computeroutput"><a class="link" href="boost/icl/interval_base_map.html" title="Class template interval_base_map">interval_maps</a></code>
323 implement concept <code class="computeroutput"><span class="identifier">Addable</span></code>
324 and <code class="computeroutput"><span class="identifier">Subtractable</span></code>. So <code class="computeroutput"><a class="link" href="boost/icl/interval_base_set.html" title="Class template interval_base_set">interval_sets</a></code> define an
325 <code class="computeroutput"><span class="keyword">operator</span> <span class="special">+=</span></code>
326 that is naturally implemented as <span class="emphasis"><em><span class="bold"><strong>set union</strong></span></em></span>
327 and an <code class="computeroutput"><span class="keyword">operator</span> <span class="special">-=</span></code>
328 that is consequently implemented as <span class="emphasis"><em><span class="bold"><strong>set difference</strong></span></em></span>.
329 In the <span class="bold"><strong>Icl</strong></span> <code class="computeroutput"><a class="link" href="boost/icl/interval_base_map.html" title="Class template interval_base_map">interval_maps</a></code>
330 are addable and subtractable as well. It turned out to be a very fruitful
331 concept to propagate the addition or subtraction to the <code class="computeroutput"><a class="link" href="boost/icl/interval_base_map.html" title="Class template interval_base_map">interval_map's</a></code>
332 associated values in cases where the insertion of an interval value pair
333 into an <code class="computeroutput"><a class="link" href="boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code>
334 resulted in a collision of the inserted interval value pair with interval
335 value pairs, that are already in the <code class="computeroutput"><a class="link" href="boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code>.
336 This operation propagation is called <span class="emphasis"><em><span class="bold"><strong>aggregate
337 on overlap</strong></span></em></span>.
340 <a name="boost_icl.introduction.definition_and_basic_example.h2"></a>
341 <span class="phrase"><a name="boost_icl.introduction.definition_and_basic_example.aggregate_on_overlap"></a></span><a class="link" href="index.html#boost_icl.introduction.definition_and_basic_example.aggregate_on_overlap">Aggregate
345 This is a first motivating example of a very small party, demonstrating the
346 <span class="emphasis"><em><span class="bold"><strong>aggregate on overlap</strong></span></em></span>
347 principle on <code class="computeroutput"><a class="link" href="boost/icl/interval_map.html" title="Class template interval_map">interval_maps</a></code>:
350 In the example Mary enters the party first. She attends during the time interval
351 <code class="computeroutput"><span class="special">[</span><span class="number">20</span><span class="special">:</span><span class="number">00</span><span class="special">,</span><span class="number">22</span><span class="special">:</span><span class="number">00</span><span class="special">)</span></code>. Harry enters later. He stays within <code class="computeroutput"><span class="special">[</span><span class="number">21</span><span class="special">:</span><span class="number">00</span><span class="special">,</span><span class="number">23</span><span class="special">:</span><span class="number">00</span><span class="special">)</span></code>.
353 <pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">set</span><span class="special"><</span><span class="identifier">string</span><span class="special">></span> <span class="identifier">guests</span><span class="special">;</span>
354 <span class="identifier">interval_map</span><span class="special"><</span><span class="identifier">time</span><span class="special">,</span> <span class="identifier">guests</span><span class="special">></span> <span class="identifier">party</span><span class="special">;</span>
355 <span class="identifier">party</span> <span class="special">+=</span> <span class="identifier">make_pair</span><span class="special">(</span><span class="identifier">interval</span><span class="special"><</span><span class="identifier">time</span><span class="special">>::</span><span class="identifier">right_open</span><span class="special">(</span><span class="identifier">time</span><span class="special">(</span><span class="string">"20:00"</span><span class="special">),</span> <span class="identifier">time</span><span class="special">(</span><span class="string">"22:00"</span><span class="special">)),</span> <span class="identifier">guests</span><span class="special">(</span><span class="string">"Mary"</span><span class="special">));</span>
356 <span class="identifier">party</span> <span class="special">+=</span> <span class="identifier">make_pair</span><span class="special">(</span><span class="identifier">interval</span><span class="special"><</span><span class="identifier">time</span><span class="special">>::</span><span class="identifier">right_open</span><span class="special">(</span><span class="identifier">time</span><span class="special">(</span><span class="string">"21:00"</span><span class="special">),</span> <span class="identifier">time</span><span class="special">(</span><span class="string">"23:00"</span><span class="special">)),</span> <span class="identifier">guests</span><span class="special">(</span><span class="string">"Harry"</span><span class="special">));</span>
357 <span class="comment">// party now contains</span>
358 <span class="special">[</span><span class="number">20</span><span class="special">:</span><span class="number">00</span><span class="special">,</span> <span class="number">21</span><span class="special">:</span><span class="number">00</span><span class="special">)->{</span><span class="string">"Mary"</span><span class="special">}</span>
359 <span class="special">[</span><span class="number">21</span><span class="special">:</span><span class="number">00</span><span class="special">,</span> <span class="number">22</span><span class="special">:</span><span class="number">00</span><span class="special">)->{</span><span class="string">"Harry"</span><span class="special">,</span><span class="string">"Mary"</span><span class="special">}</span> <span class="comment">//guest sets aggregated on overlap</span>
360 <span class="special">[</span><span class="number">22</span><span class="special">:</span><span class="number">00</span><span class="special">,</span> <span class="number">23</span><span class="special">:</span><span class="number">00</span><span class="special">)->{</span><span class="string">"Harry"</span><span class="special">}</span>
363 <span class="emphasis"><em><span class="bold"><strong>On overlap of intervals</strong></span></em></span>,
364 the corresponding name sets are <span class="emphasis"><em><span class="bold"><strong>accumulated</strong></span></em></span>.
365 At the <span class="emphasis"><em><span class="bold"><strong>points of overlap</strong></span></em></span>
366 the intervals are <span class="emphasis"><em><span class="bold"><strong>split</strong></span></em></span>.
367 The accumulation of content on overlap of intervals is done via an <code class="computeroutput"><span class="keyword">operator</span> <span class="special">+=</span></code>
368 that has to be implemented for the associated values of the <code class="computeroutput"><a class="link" href="boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code>.
369 In the example the associated values are <code class="computeroutput"><span class="identifier">guest</span>
370 <span class="identifier">sets</span></code>. Thus a <code class="computeroutput"><span class="identifier">guest</span>
371 <span class="identifier">set</span></code> has to implement <code class="computeroutput"><span class="keyword">operator</span> <span class="special">+=</span></code>
375 As can be seen from the example an <code class="computeroutput"><a class="link" href="boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code>
376 has both a <span class="emphasis"><em><span class="bold"><strong>decompositional behavior</strong></span></em></span>
377 (on the time dimension) as well as an <span class="emphasis"><em><span class="bold"><strong>accumulative
378 one</strong></span></em></span> (on the associated values).
381 Addability and aggregate on overlap are useful features on <code class="computeroutput"><a class="link" href="boost/icl/interval_map.html" title="Class template interval_map">interval_maps</a></code>
382 implemented via function <code class="computeroutput"><span class="identifier">add</span></code>
383 and <code class="computeroutput"><span class="keyword">operator</span> <span class="special">+=</span></code>.
384 But you can also use them with the <span class="emphasis"><em>traditional</em></span> <a class="link" href="boost_icl/function_reference/insertion.html" title="Insertion">insert semantics</a>
385 that behaves like <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">map</span><span class="special">::</span><span class="identifier">insert</span></code>
386 generalized for interval insertion.
389 <div class="section">
390 <div class="titlepage"><div><div><h3 class="title">
391 <a name="boost_icl.introduction.icl_s_class_templates"></a><a class="link" href="index.html#boost_icl.introduction.icl_s_class_templates" title="Icl's class templates">Icl's class
393 </h3></div></div></div>
395 In addition to interval containers we can work with containers of elements
396 that are <span class="emphasis"><em><span class="bold"><strong>behavioral equal</strong></span></em></span>
397 to the interval containers: On the fundamental aspect they have exactly the
398 same functionality. An <a href="http://www.cplusplus.com/reference/stl/set/" target="_top"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">set</span></code>
399 </a> of the STL is such an equivalent set implementation. Due to the
400 aggregation facilities of the icl's interval maps <a href="http://www.cplusplus.com/reference/stl/set/" target="_top"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">map</span></code>
401 </a> is fundamentally not completely equivalent to an <code class="computeroutput"><a class="link" href="boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code>.
402 Therefore there is an extra <code class="computeroutput"><a class="link" href="boost/icl/map.html" title="Class template map">icl::map</a></code>
403 class template for maps of elements in the icl.
405 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
406 <li class="listitem">
407 The <a href="http://www.cplusplus.com/reference/stl/set/" target="_top"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">set</span></code> </a> is behavioral equal to
408 <code class="computeroutput"><a class="link" href="boost/icl/interval_base_set.html" title="Class template interval_base_set">interval_sets</a></code>
409 on the <span class="emphasis"><em><span class="bold"><strong>fundamental</strong></span></em></span>
412 <li class="listitem">
413 An <code class="computeroutput"><a class="link" href="boost/icl/map.html" title="Class template map">icl::map</a></code> is behavioral
414 equal to <code class="computeroutput"><a class="link" href="boost/icl/interval_base_map.html" title="Class template interval_base_map">interval_maps</a></code>
415 on the <span class="emphasis"><em><span class="bold"><strong>fundamental</strong></span></em></span>
416 aspect. Specifically an <code class="computeroutput"><a class="link" href="boost/icl/map.html" title="Class template map">icl::map</a></code>
417 implements <span class="emphasis"><em><span class="bold"><strong>aggregate on overlap</strong></span></em></span>,
418 which is named <span class="emphasis"><em><span class="bold"><strong>aggregate on collision</strong></span></em></span>
419 for an element container.
423 The following tables give an overview over the main class templates provided
424 by the <span class="bold"><strong>icl</strong></span>.
427 <a name="boost_icl.introduction.icl_s_class_templates.t0"></a><p class="title"><b>Table 1.1. Interval class templates</b></p>
428 <div class="table-contents"><table class="table" summary="Interval class templates">
465 <code class="computeroutput"><a class="link" href="boost/icl/right_open_interval.html" title="Class template right_open_interval">right_open_interval</a></code>
476 <code class="computeroutput"><a class="link" href="boost/icl/left_open_interval.html" title="Class template left_open_interval">left_open_interval</a></code>
490 <code class="computeroutput"><a class="link" href="boost/icl/closed_interval.html" title="Class template closed_interval">closed_interval</a></code>
501 <code class="computeroutput"><a class="link" href="boost/icl/open_interval.html" title="Class template open_interval">open_interval</a></code>
515 <code class="computeroutput"><a class="link" href="boost/icl/discrete_interval.html" title="Class template discrete_interval">discrete_interval</a></code>
526 <code class="computeroutput"><a class="link" href="boost/icl/continuous_interval.html" title="Class template continuous_interval">continuous_interval</a></code>
533 <br class="table-break"><p>
534 Statically bounded intervals always have the same kind of interval borders,
535 e.g. right open borders<code class="computeroutput"><span class="special">[</span><span class="identifier">a</span><span class="special">..</span><span class="identifier">b</span><span class="special">)</span></code>
536 for <code class="computeroutput"><a class="link" href="boost/icl/right_open_interval.html" title="Class template right_open_interval">right_open_interval</a></code>.
537 Dynamically bounded intervals can have different borders. Refer to the chapter
538 about <a class="link" href="boost_icl/interface.html#boost_icl.interface.class_templates.intervals" title="Intervals"><span class="emphasis"><em><span class="bold"><strong>intervals</strong></span></em></span></a> for details.
541 <a name="boost_icl.introduction.icl_s_class_templates.t1"></a><p class="title"><b>Table 1.2. Container class templates</b></p>
542 <div class="table-contents"><table class="table" summary="Container class templates">
585 <code class="computeroutput"><a class="link" href="boost/icl/interval_set.html" title="Class template interval_set">interval_set</a></code>
590 <code class="computeroutput"><a class="link" href="boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code>
604 <code class="computeroutput"><a class="link" href="boost/icl/separate_interval_set.html" title="Class template separate_interval_set">separate_interval_set</a></code>
620 <code class="computeroutput"><a class="link" href="boost/icl/split_interval_set.html" title="Class template split_interval_set">split_interval_set</a></code>
625 <code class="computeroutput"><a class="link" href="boost/icl/split_interval_map.html" title="Class template split_interval_map">split_interval_map</a></code>
639 (<a href="http://www.cplusplus.com/reference/stl/set/" target="_top"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">set</span></code> </a>)
644 <code class="computeroutput"><a class="link" href="boost/icl/map.html" title="Class template map">map</a></code>
651 <br class="table-break"><p>
652 <a href="http://www.cplusplus.com/reference/stl/set/" target="_top"><code class="computeroutput"><span class="identifier">Std</span><span class="special">::</span><span class="identifier">set</span></code>
653 </a> is placed in paretheses, because it is not a class template of the
654 <span class="bold"><strong>ICL</strong></span>. It can be used as element container
655 though that is behavioral equal to the ICL's interval sets on their fundamental
656 aspect. Column <span class="emphasis"><em><span class="bold"><strong>style</strong></span></em></span>
657 refers to the different ways in which interval containers combine added intervals.
658 These <span class="emphasis"><em><span class="bold"><strong>combining styles</strong></span></em></span>
659 are described in the next section.
662 <div class="section">
663 <div class="titlepage"><div><div><h3 class="title">
664 <a name="boost_icl.introduction.interval_combining_styles"></a><a class="link" href="index.html#boost_icl.introduction.interval_combining_styles" title="Interval Combining Styles">Interval
666 </h3></div></div></div>
668 When we add intervals or interval value pairs to interval containers, the
669 intervals can be added in different ways: Intervals can be joined or split
670 or kept separate. The different interval combining styles are shown by example
674 <a name="boost_icl.introduction.interval_combining_styles.t0"></a><p class="title"><b>Table 1.3. Interval container's ways to combine intervals</b></p>
675 <div class="table-contents"><table class="table" summary="Interval container's ways to combine intervals">
710 <code class="computeroutput"><a class="link" href="boost/icl/interval_set.html" title="Class template interval_set">interval_set</a></code>
715 <code class="computeroutput"><a class="link" href="boost/icl/separate_interval_set.html" title="Class template separate_interval_set">separate_interval_set</a></code>
720 <code class="computeroutput"><a class="link" href="boost/icl/split_interval_set.html" title="Class template split_interval_set">split_interval_set</a></code>
732 <code class="computeroutput"><a class="link" href="boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code>
739 <code class="computeroutput"><a class="link" href="boost/icl/split_interval_map.html" title="Class template split_interval_map">split_interval_map</a></code>
748 Intervals are joined on overlap or touch<br> (if associated values
754 Intervals are joined on overlap, not on touch.
759 Intervals are split on overlap.<br> All interval borders are
767 <br class="table-break"><div class="table">
768 <a name="boost_icl.introduction.interval_combining_styles.t1"></a><p class="title"><b>Table 1.4. Interval combining styles by example</b></p>
769 <div class="table-contents"><table class="table" summary="Interval combining styles by example">
804 <code class="computeroutput"><a class="link" href="boost/icl/interval_set.html" title="Class template interval_set">interval_set</a></code>
805 <span class="emphasis"><em>A</em></span>
810 <code class="computeroutput"><a class="link" href="boost/icl/separate_interval_set.html" title="Class template separate_interval_set">separate_interval_set</a></code>
811 <span class="emphasis"><em>B</em></span>
816 <code class="computeroutput"><a class="link" href="boost/icl/split_interval_set.html" title="Class template split_interval_set">split_interval_set</a></code>
817 <span class="emphasis"><em>C</em></span>
827 <pre class="programlisting"> <span class="special">{[</span><span class="number">1</span> <span class="number">3</span><span class="special">)</span> <span class="special">}</span>
828 <span class="special">+</span> <span class="special">[</span><span class="number">2</span> <span class="number">4</span><span class="special">)</span>
829 <span class="special">+</span> <span class="special">[</span><span class="number">4</span> <span class="number">5</span><span class="special">)</span>
830 <span class="special">=</span> <span class="special">{[</span><span class="number">1</span> <span class="number">5</span><span class="special">)}</span></pre>
837 <pre class="programlisting"> <span class="special">{[</span><span class="number">1</span> <span class="number">3</span><span class="special">)}</span> <span class="special">}</span>
838 <span class="special">+</span> <span class="special">[</span><span class="number">2</span> <span class="number">4</span><span class="special">)</span>
839 <span class="special">+</span> <span class="special">[</span><span class="number">4</span> <span class="number">5</span><span class="special">)</span>
840 <span class="special">=</span> <span class="special">{[</span><span class="number">1</span> <span class="number">4</span><span class="special">)[</span><span class="number">4</span> <span class="number">5</span><span class="special">)}</span></pre>
847 <pre class="programlisting"> <span class="special">{[</span><span class="number">1</span> <span class="number">3</span><span class="special">)</span> <span class="special">}</span>
848 <span class="special">+</span> <span class="special">[</span><span class="number">2</span> <span class="number">4</span><span class="special">)</span>
849 <span class="special">+</span> <span class="special">[</span><span class="number">4</span> <span class="number">5</span><span class="special">)</span>
850 <span class="special">=</span> <span class="special">{[</span><span class="number">1</span> <span class="number">2</span><span class="special">)[</span><span class="number">2</span> <span class="number">3</span><span class="special">)[</span><span class="number">3</span> <span class="number">4</span><span class="special">)[</span><span class="number">4</span> <span class="number">5</span><span class="special">)}</span></pre>
863 <code class="computeroutput"><a class="link" href="boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code>
864 <span class="emphasis"><em>D</em></span>
871 <code class="computeroutput"><a class="link" href="boost/icl/split_interval_map.html" title="Class template split_interval_map">split_interval_map</a></code>
872 <span class="emphasis"><em>E</em></span>
882 <pre class="programlisting"> <span class="special">{[</span><span class="number">1</span> <span class="number">3</span><span class="special">)-></span><span class="number">1</span> <span class="special">}</span>
883 <span class="special">+</span> <span class="special">[</span><span class="number">2</span> <span class="number">4</span><span class="special">)-></span><span class="number">1</span>
884 <span class="special">+</span> <span class="special">[</span><span class="number">4</span> <span class="number">5</span><span class="special">)-></span><span class="number">1</span>
885 <span class="special">=</span> <span class="special">{[</span><span class="number">1</span> <span class="number">2</span><span class="special">)[</span><span class="number">2</span> <span class="number">3</span><span class="special">)[</span><span class="number">3</span> <span class="number">5</span><span class="special">)</span> <span class="special">}</span>
886 <span class="special">|</span> <span class="special">-></span><span class="number">1</span> <span class="special">-></span><span class="number">2</span> <span class="special">-></span><span class="number">1</span> <span class="special">|</span></pre>
895 <pre class="programlisting"> <span class="special">{[</span><span class="number">1</span> <span class="number">3</span><span class="special">)-></span><span class="number">1</span> <span class="special">}</span>
896 <span class="special">+</span> <span class="special">[</span><span class="number">2</span> <span class="number">4</span><span class="special">)-></span><span class="number">1</span>
897 <span class="special">+</span> <span class="special">[</span><span class="number">4</span> <span class="number">5</span><span class="special">)-></span><span class="number">1</span>
898 <span class="special">=</span> <span class="special">{[</span><span class="number">1</span> <span class="number">2</span><span class="special">)[</span><span class="number">2</span> <span class="number">3</span><span class="special">)[</span><span class="number">3</span> <span class="number">4</span><span class="special">)[</span><span class="number">4</span> <span class="number">5</span><span class="special">)</span> <span class="special">}</span>
899 <span class="special">|</span> <span class="special">-></span><span class="number">1</span> <span class="special">-></span><span class="number">2</span> <span class="special">-></span><span class="number">1</span> <span class="special">-></span><span class="number">1</span> <span class="special">|</span></pre>
907 <br class="table-break"><p>
908 Note that <code class="literal">interval_sets</code> <span class="emphasis"><em>A</em></span>, <span class="emphasis"><em>B</em></span>
909 and <span class="emphasis"><em>C</em></span> represent the same set of elements <code class="literal">{1,2,3,4}</code>
910 and <code class="literal">interval_maps</code> <span class="emphasis"><em>D</em></span> and <span class="emphasis"><em>E</em></span>
911 represent the same map of elements <code class="literal">{1->1, 2->2, 3->1, 4->1}</code>.
912 See example program <a class="link" href="boost_icl/examples/interval_container.html" title="Interval container">Interval
913 container</a> for an additional demo.
916 <a name="boost_icl.introduction.interval_combining_styles.h0"></a>
917 <span class="phrase"><a name="boost_icl.introduction.interval_combining_styles.joining_interval_containers"></a></span><a class="link" href="index.html#boost_icl.introduction.interval_combining_styles.joining_interval_containers">Joining
918 interval containers</a>
921 <code class="computeroutput"><a class="link" href="boost/icl/interval_set.html" title="Class template interval_set">Interval_set</a></code> and <code class="computeroutput"><a class="link" href="boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code> are always in a
922 <span class="emphasis"><em><span class="bold"><strong>minimal representation</strong></span></em></span>.
923 This is useful in many cases, where the points of insertion or intersection
924 of intervals are not relevant. So in most instances <code class="computeroutput"><a class="link" href="boost/icl/interval_set.html" title="Class template interval_set">interval_set</a></code>
925 and <code class="computeroutput"><a class="link" href="boost/icl/interval_map.html" title="Class template interval_map">interval_map</a></code> will
926 be the first choice for an interval container.
929 <a name="boost_icl.introduction.interval_combining_styles.h1"></a>
930 <span class="phrase"><a name="boost_icl.introduction.interval_combining_styles.splitting_interval_containers"></a></span><a class="link" href="index.html#boost_icl.introduction.interval_combining_styles.splitting_interval_containers">Splitting
931 interval containers</a>
934 <code class="computeroutput"><a class="link" href="boost/icl/split_interval_set.html" title="Class template split_interval_set">Split_interval_set</a></code>
935 and <code class="computeroutput"><a class="link" href="boost/icl/split_interval_map.html" title="Class template split_interval_map">split_interval_map</a></code>
936 on the contrary have an <span class="emphasis"><em><span class="bold"><strong>insertion memory</strong></span></em></span>.
937 They do accumulate interval borders both from additions and intersections.
938 This is specifically useful, if we want to enrich an interval container with
939 certain time grids, like e.g. months or calendar weeks or both. See example
940 <a class="link" href="boost_icl/examples/time_grids.html" title="Time grids for months and weeks">time grids for months and weeks</a>.
943 <a name="boost_icl.introduction.interval_combining_styles.h2"></a>
944 <span class="phrase"><a name="boost_icl.introduction.interval_combining_styles.separating_interval_containers"></a></span><a class="link" href="index.html#boost_icl.introduction.interval_combining_styles.separating_interval_containers">Separating
945 interval containers</a>
948 <code class="computeroutput"><a class="link" href="boost/icl/separate_interval_set.html" title="Class template separate_interval_set">Separate_interval_set</a></code>
949 implements the separating style. This style preserves borders, that are never
950 passed by an overlapping interval. So if all intervals that are inserted
951 into a <code class="computeroutput"><a class="link" href="boost/icl/separate_interval_set.html" title="Class template separate_interval_set">separate_interval_set</a></code>
952 are generated form a certain grid that never pass say month borders, then
953 these borders are preserved in the <code class="computeroutput"><a class="link" href="boost/icl/separate_interval_set.html" title="Class template separate_interval_set">separate_interval_set</a></code>.
961 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
962 <td align="left"><p><small>Last revised: December 10, 2019 at 00:22:43 GMT</small></p></td>
963 <td align="right"><div class="copyright-footer"></div></td>
966 <div class="spirit-nav"><a accesskey="n" href="boost_icl/examples.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a></div>