associative iterators & views (Fixes #3473)

[SVN r57242]
This commit is contained in:
Christopher Schmidt
2009-10-30 00:19:19 +00:00
parent 9b26b4a0f7
commit dab67207cf
242 changed files with 3182 additions and 1556 deletions

View File

@ -27,7 +27,7 @@
<a name="fusion.view.iterator_range"></a><a class="link" href="iterator_range.html" title="iterator_range">iterator_range</a>
</h3></div></div></div>
<a name="fusion.view.iterator_range.description"></a><h5>
<a name="id771397"></a>
<a name="id733426"></a>
<a class="link" href="iterator_range.html#fusion.view.iterator_range.description">Description</a>
</h5>
<p>
@ -35,21 +35,21 @@
sub-range of its underlying sequence delimited by a pair of iterators.
</p>
<a name="fusion.view.iterator_range.header"></a><h5>
<a name="id771421"></a>
<a name="id733450"></a>
<a class="link" href="iterator_range.html#fusion.view.iterator_range.header">Header</a>
</h5>
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">view</span><span class="special">/</span><span class="identifier">iterator_range</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">iterator_range</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<a name="fusion.view.iterator_range.synopsis"></a><h5>
<a name="id771529"></a>
<a name="id733558"></a>
<a class="link" href="iterator_range.html#fusion.view.iterator_range.synopsis">Synopsis</a>
</h5>
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">First</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Last</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">iterator_range</span><span class="special">;</span>
</pre>
<a name="fusion.view.iterator_range.template_parameters"></a><h5>
<a name="id771594"></a>
<a name="id733623"></a>
<a class="link" href="iterator_range.html#fusion.view.iterator_range.template_parameters">Template parameters</a>
</h5>
<div class="informaltable"><table class="table">
@ -111,17 +111,26 @@
</tbody>
</table></div>
<a name="fusion.view.iterator_range.model_of"></a><h5>
<a name="id771717"></a>
<a name="id733745"></a>
<a class="link" href="iterator_range.html#fusion.view.iterator_range.model_of">Model of</a>
</h5>
<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem">
<a class="link" href="../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward Sequence</a>,
<a class="link" href="../sequence/concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional
Sequence</a> or <a class="link" href="../sequence/concepts/random_access_sequence.html" title="Random Access Sequence">Random
Access Sequence</a> depending on the traversal characteristics (see
<a class="link" href="../sequence/concepts.html#fusion.sequence.concepts.traversal">Sequence Traversal Concept</a>)
of its underlying sequence.
</li></ul></div>
</li>
<li class="listitem">
<a class="link" href="../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative
Sequence</a> if <code class="computeroutput"><span class="identifier">First</span></code>
and <code class="computeroutput"><span class="identifier">Last</span></code> implement the
<a class="link" href="../iterator/concepts/associative_iterator.html" title="Associative Iterator">Associative
Iterator</a> model.
</li>
</ul></div>
<div class="variablelist" title="Notation">
<p class="title"><b>Notation</b></p>
<dl>
@ -145,14 +154,13 @@
</dl>
</div>
<a name="fusion.view.iterator_range.expression_semantics"></a><h5>
<a name="id771873"></a>
<a name="id733929"></a>
<a class="link" href="iterator_range.html#fusion.view.iterator_range.expression_semantics">Expression
Semantics</a>
</h5>
<p>
Semantics of an expression is defined only where it differs from, or is not
defined in <a class="link" href="../sequence/concepts/forward_sequence.html" title="Forward Sequence">Forward
Sequence</a>.
defined in the implemented models.
</p>
<div class="informaltable"><table class="table">
<colgroup>
@ -219,7 +227,7 @@
</tbody>
</table></div>
<a name="fusion.view.iterator_range.example"></a><h5>
<a name="id772111"></a>
<a name="id734163"></a>
<a class="link" href="iterator_range.html#fusion.view.iterator_range.example">Example</a>
</h5>
<pre class="programlisting"><span class="keyword">char</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">s</span> <span class="special">=</span> <span class="string">"Ruby"</span><span class="special">;</span>