fusion: merge of associative iterators/views and the new fold interface

[SVN r58618]
This commit is contained in:
Christopher Schmidt committed 2010-01-01 22:00:21 +00:00
1 parent b605617c4f
commit cda74605fc
379 files changed
+28481 -2185

No files matched your search

+71
View File
@@ -3,7 +3,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>filter_view</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<<<<<<< .working
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
=======
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
>>>>>>> .merge-right.r57125
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
<link rel="up" href="../view.html" title="View">
<link rel="previous" href="single_view.html" title="single_view">
@@ -22,6 +26,7 @@
<div class="spirit-nav">
<a accesskey="p" href="single_view.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../view.html"><img src="../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="iterator_range.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<<<<<<< .working
<div class="section" lang="en">
<div class="titlepage">
<div><div><h3 class="title">
@@ -33,6 +38,16 @@
<a name="id518972"></a>
<a href="filter_view.html#fusion.view.filter_view.description">Description</a>
</h4>
=======
<div class="section" title="filter_view">
<div class="titlepage"><div><div><h3 class="title">
<a name="fusion.view.filter_view"></a><a class="link" href="filter_view.html" title="filter_view">filter_view</a>
</h3></div></div></div>
<a name="fusion.view.filter_view.description"></a><h5>
<a name="id723629"></a>
<a class="link" href="filter_view.html#fusion.view.filter_view.description">Description</a>
</h5>
>>>>>>> .merge-right.r57125
<p>
<tt class="computeroutput"><span class="identifier">filter_view</span></tt> is a view into
a subset of its underlying sequence's elements satisfying a given predicate
@@ -40,24 +55,45 @@
The <tt class="computeroutput"><span class="identifier">filter_view</span></tt> presents
only those elements for which its predicate evaluates to <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>.
</p>
<<<<<<< .working
<a name="fusion.view.filter_view.header"></a><h4>
<a name="id519054"></a>
<a href="filter_view.html#fusion.view.filter_view.header">Header</a>
</h4>
=======
<a name="fusion.view.filter_view.header"></a><h5>
<a name="id723679"></a>
<a class="link" href="filter_view.html#fusion.view.filter_view.header">Header</a>
</h5>
>>>>>>> .merge-right.r57125
<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">filter_view</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">filter_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<<<<<<< .working
<a name="fusion.view.filter_view.synopsis"></a><h4>
<a name="id519209"></a>
<a href="filter_view.html#fusion.view.filter_view.synopsis">Synopsis</a>
</h4>
=======
<a name="fusion.view.filter_view.synopsis"></a><h5>
<a name="id723787"></a>
<a class="link" href="filter_view.html#fusion.view.filter_view.synopsis">Synopsis</a>
</h5>
>>>>>>> .merge-right.r57125
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Pred</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">filter_view</span><span class="special">;</span>
</pre>
<<<<<<< .working
<a name="fusion.view.filter_view.template_parameters"></a><h4>
<a name="id519305"></a>
<a href="filter_view.html#fusion.view.filter_view.template_parameters">Template parameters</a>
</h4>
=======
<a name="fusion.view.filter_view.template_parameters"></a><h5>
<a name="id724954"></a>
<a class="link" href="filter_view.html#fusion.view.filter_view.template_parameters">Template parameters</a>
</h5>
>>>>>>> .merge-right.r57125
<div class="informaltable"><table class="table">
<colgroup>
<col>
@@ -100,6 +136,7 @@
</tr>
</tbody>
</table></div>
<<<<<<< .working
<a name="fusion.view.filter_view.model_of"></a><h4>
<a name="id519472"></a>
<a href="filter_view.html#fusion.view.filter_view.model_of">Model of</a>
@@ -107,6 +144,22 @@
<div class="itemizedlist"><ul type="disc"><li><a href="../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence</a></li></ul></div>
<div class="variablelist">
=======
<a name="fusion.view.filter_view.model_of"></a><h5>
<a name="id725086"></a>
<a class="link" href="filter_view.html#fusion.view.filter_view.model_of">Model of</a>
</h5>
<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></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">Sequence</span></code>
implements the <a class="link" href="../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative
Sequence</a> model.
</li>
</ul></div>
<div class="variablelist" title="Notation">
>>>>>>> .merge-right.r57125
<p class="title"><b>Notation</b></p>
<dl>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">F</span></tt></span></dt>
@@ -125,15 +178,26 @@
</p></dd>
</dl>
</div>
<<<<<<< .working
<a name="fusion.view.filter_view.expression_semantics"></a><h4>
<a name="id519632"></a>
<a href="filter_view.html#fusion.view.filter_view.expression_semantics">Expression Semantics</a>
</h4>
=======
<a name="fusion.view.filter_view.expression_semantics"></a><h5>
<a name="id725220"></a>
<a class="link" href="filter_view.html#fusion.view.filter_view.expression_semantics">Expression Semantics</a>
</h5>
>>>>>>> .merge-right.r57125
<p>
Semantics of an expression is defined only where it differs from, or is not
<<<<<<< .working
defined in <a href="../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward
Sequence</a>.
=======
defined in the implemented models.
>>>>>>> .merge-right.r57242
</p>
<div class="informaltable"><table class="table">
<colgroup>
@@ -181,10 +245,17 @@
</tr>
</tbody>
</table></div>
<<<<<<< .working
<a name="fusion.view.filter_view.example"></a><h4>
<a name="id519942"></a>
<a href="filter_view.html#fusion.view.filter_view.example">Example</a>
</h4>
=======
<a name="fusion.view.filter_view.example"></a><h5>
<a name="id725438"></a>
<a class="link" href="filter_view.html#fusion.view.filter_view.example">Example</a>
</h5>
>>>>>>> .merge-right.r57125
<pre class="programlisting"><span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">;</span>
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">not_</span><span class="special">;</span>
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_class</span><span class="special">;</span>
+74 -1
View File
@@ -3,7 +3,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>iterator_range</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<<<<<<< .working
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
=======
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
>>>>>>> .merge-right.r57125
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
<link rel="up" href="../view.html" title="View">
<link rel="previous" href="filter_view.html" title="filter_view">
@@ -22,6 +26,7 @@
<div class="spirit-nav">
<a accesskey="p" href="filter_view.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../view.html"><img src="../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="joint_view.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<<<<<<< .working
<div class="section" lang="en">
<div class="titlepage">
<div><div><h3 class="title">
@@ -33,28 +38,59 @@
<a name="id520416"></a>
<a href="iterator_range.html#fusion.view.iterator_range.description">Description</a>
</h4>
=======
<div class="section" title="iterator_range">
<div class="titlepage"><div><div><h3 class="title">
<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="id725780"></a>
<a class="link" href="iterator_range.html#fusion.view.iterator_range.description">Description</a>
</h5>
>>>>>>> .merge-right.r57125
<p>
<tt class="computeroutput"><span class="identifier">iterator_range</span></tt> presents a
sub-range of its underlying sequence delimited by a pair of iterators.
</p>
<<<<<<< .working
<a name="fusion.view.iterator_range.header"></a><h4>
<a name="id520456"></a>
<a href="iterator_range.html#fusion.view.iterator_range.header">Header</a>
</h4>
=======
<a name="fusion.view.iterator_range.header"></a><h5>
<a name="id725804"></a>
<a class="link" href="iterator_range.html#fusion.view.iterator_range.header">Header</a>
</h5>
>>>>>>> .merge-right.r57125
<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>
<<<<<<< .working
<a name="fusion.view.iterator_range.synopsis"></a><h4>
<a name="id520612"></a>
<a href="iterator_range.html#fusion.view.iterator_range.synopsis">Synopsis</a>
</h4>
=======
<a name="fusion.view.iterator_range.synopsis"></a><h5>
<a name="id725912"></a>
<a class="link" href="iterator_range.html#fusion.view.iterator_range.synopsis">Synopsis</a>
</h5>
>>>>>>> .merge-right.r57125
<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>
<<<<<<< .working
<a name="fusion.view.iterator_range.template_parameters"></a><h4>
<a name="id520708"></a>
<a href="iterator_range.html#fusion.view.iterator_range.template_parameters">Template parameters</a>
</h4>
=======
<a name="fusion.view.iterator_range.template_parameters"></a><h5>
<a name="id725977"></a>
<a class="link" href="iterator_range.html#fusion.view.iterator_range.template_parameters">Template parameters</a>
</h5>
>>>>>>> .merge-right.r57125
<div class="informaltable"><table class="table">
<colgroup>
<col>
@@ -95,6 +131,7 @@
</tr>
</tbody>
</table></div>
<<<<<<< .working
<a name="fusion.view.iterator_range.model_of"></a><h4>
<a name="id520861"></a>
<a href="iterator_range.html#fusion.view.iterator_range.model_of">Model of</a>
@@ -106,10 +143,29 @@
Sequence">Bidirectional
Sequence</a> or <a href="../sequence/concepts/random_access_sequence.html" title="Random
Access Sequence">Random
=======
<a name="fusion.view.iterator_range.model_of"></a><h5>
<a name="id726099"></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">
<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
>>>>>>> .merge-right.r57125
Access Sequence</a> depending on the traversal characteristics (see
<a 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">
<p class="title"><b>Notation</b></p>
<dl>
@@ -132,16 +188,26 @@
</p></dd>
</dl>
</div>
<<<<<<< .working
<a name="fusion.view.iterator_range.expression_semantics"></a><h4>
<a name="id521090"></a>
<a href="iterator_range.html#fusion.view.iterator_range.expression_semantics">Expression
=======
<a name="fusion.view.iterator_range.expression_semantics"></a><h5>
<a name="id726283"></a>
<a class="link" href="iterator_range.html#fusion.view.iterator_range.expression_semantics">Expression
>>>>>>> .merge-right.r57125
Semantics</a>
</h4>
<p>
Semantics of an expression is defined only where it differs from, or is not
<<<<<<< .working
defined in <a href="../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward
Sequence</a>.
=======
defined in the implemented models.
>>>>>>> .merge-right.r57242
</p>
<div class="informaltable"><table class="table">
<colgroup>
@@ -191,10 +257,17 @@
</tr>
</tbody>
</table></div>
<<<<<<< .working
<a name="fusion.view.iterator_range.example"></a><h4>
<a name="id521424"></a>
<a href="iterator_range.html#fusion.view.iterator_range.example">Example</a>
</h4>
=======
<a name="fusion.view.iterator_range.example"></a><h5>
<a name="id726517"></a>
<a class="link" href="iterator_range.html#fusion.view.iterator_range.example">Example</a>
</h5>
>>>>>>> .merge-right.r57125
<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>
<span class="keyword">typedef</span> <a href="../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span> <span class="keyword">const</span><span class="special">*&gt;</span> <span class="identifier">vector_type</span><span class="special">;</span>
<span class="identifier">vector_type</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'x'</span><span class="special">,</span> <span class="number">3.3</span><span class="special">,</span> <span class="identifier">s</span><span class="special">);</span>
+74
View File
@@ -3,7 +3,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>joint_view</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<<<<<<< .working
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
=======
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
>>>>>>> .merge-right.r57125
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
<link rel="up" href="../view.html" title="View">
<link rel="previous" href="iterator_range.html" title="iterator_range">
@@ -22,6 +26,7 @@
<div class="spirit-nav">
<a accesskey="p" href="iterator_range.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../view.html"><img src="../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="zip_view.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<<<<<<< .working
<div class="section" lang="en">
<div class="titlepage">
<div><div><h3 class="title">
@@ -33,28 +38,59 @@
<a name="id522089"></a>
<a href="joint_view.html#fusion.view.joint_view.description">Description</a>
</h4>
=======
<div class="section" title="joint_view">
<div class="titlepage"><div><div><h3 class="title">
<a name="fusion.view.joint_view"></a><a class="link" href="joint_view.html" title="joint_view">joint_view</a>
</h3></div></div></div>
<a name="fusion.view.joint_view.description"></a><h5>
<a name="id726993"></a>
<a class="link" href="joint_view.html#fusion.view.joint_view.description">Description</a>
</h5>
>>>>>>> .merge-right.r57125
<p>
<tt class="computeroutput"><span class="identifier">joint_view</span></tt> presents a view
which is a concatenation of two sequences.
</p>
<<<<<<< .working
<a name="fusion.view.joint_view.header"></a><h4>
<a name="id522129"></a>
<a href="joint_view.html#fusion.view.joint_view.header">Header</a>
</h4>
=======
<a name="fusion.view.joint_view.header"></a><h5>
<a name="id727017"></a>
<a class="link" href="joint_view.html#fusion.view.joint_view.header">Header</a>
</h5>
>>>>>>> .merge-right.r57125
<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">joint_view</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">joint_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<<<<<<< .working
<a name="fusion.view.joint_view.synopsis"></a><h4>
<a name="id522285"></a>
<a href="joint_view.html#fusion.view.joint_view.synopsis">Synopsis</a>
</h4>
=======
<a name="fusion.view.joint_view.synopsis"></a><h5>
<a name="id730770"></a>
<a class="link" href="joint_view.html#fusion.view.joint_view.synopsis">Synopsis</a>
</h5>
>>>>>>> .merge-right.r57125
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sequence1</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence2</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">joint_view</span><span class="special">;</span>
</pre>
<<<<<<< .working
<a name="fusion.view.joint_view.template_parameters"></a><h4>
<a name="id522380"></a>
<a href="joint_view.html#fusion.view.joint_view.template_parameters">Template parameters</a>
</h4>
=======
<a name="fusion.view.joint_view.template_parameters"></a><h5>
<a name="id730834"></a>
<a class="link" href="joint_view.html#fusion.view.joint_view.template_parameters">Template parameters</a>
</h5>
>>>>>>> .merge-right.r57125
<div class="informaltable"><table class="table">
<colgroup>
<col>
@@ -99,6 +135,7 @@
</tr>
</tbody>
</table></div>
<<<<<<< .working
<a name="fusion.view.joint_view.model_of"></a><h4>
<a name="id522535"></a>
<a href="joint_view.html#fusion.view.joint_view.model_of">Model of</a>
@@ -106,6 +143,23 @@
<div class="itemizedlist"><ul type="disc"><li><a href="../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence</a></li></ul></div>
<div class="variablelist">
=======
<a name="fusion.view.joint_view.model_of"></a><h5>
<a name="id730957"></a>
<a class="link" href="joint_view.html#fusion.view.joint_view.model_of">Model of</a>
</h5>
<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></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">Sequence1</span></code>
and <code class="computeroutput"><span class="identifier">Sequence2</span></code> implement
the <a class="link" href="../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative
Sequence</a> model.
</li>
</ul></div>
<div class="variablelist" title="Notation">
>>>>>>> .merge-right.r57125
<p class="title"><b>Notation</b></p>
<dl>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">JV</span></tt></span></dt>
@@ -127,15 +181,26 @@
</p></dd>
</dl>
</div>
<<<<<<< .working
<a name="fusion.view.joint_view.expression_semantics"></a><h4>
<a name="id522734"></a>
<a href="joint_view.html#fusion.view.joint_view.expression_semantics">Expression Semantics</a>
</h4>
=======
<a name="fusion.view.joint_view.expression_semantics"></a><h5>
<a name="id731125"></a>
<a class="link" href="joint_view.html#fusion.view.joint_view.expression_semantics">Expression Semantics</a>
</h5>
>>>>>>> .merge-right.r57125
<p>
Semantics of an expression is defined only where it differs from, or is not
<<<<<<< .working
defined in <a href="../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward
Sequence</a>.
=======
defined in the implemented models.
>>>>>>> .merge-right.r57242
</p>
<div class="informaltable"><table class="table">
<colgroup>
@@ -184,12 +249,21 @@
</tr>
</tbody>
</table></div>
<<<<<<< .working
<a name="fusion.view.joint_view.example"></a><h4>
<a name="id523069"></a>
<a href="joint_view.html#fusion.view.joint_view.example">Example</a>
</h4>
<pre class="programlisting"><a href="../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">v1</span><span class="special">(</span><span class="number">3</span><span class="special">,</span> <span class="char">'x'</span><span class="special">);</span>
<a href="../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">v2</span><span class="special">(</span><span class="string">"hello"</span><span class="special">,</span> <span class="number">123</span><span class="special">);</span>
=======
<a name="fusion.view.joint_view.example"></a><h5>
<a name="id731359"></a>
<a class="link" href="joint_view.html#fusion.view.joint_view.example">Example</a>
</h5>
<pre class="programlisting"><a class="link" href="../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">v1</span><span class="special">(</span><span class="number">3</span><span class="special">,</span> <span class="char">'x'</span><span class="special">);</span>
<a class="link" href="../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">v2</span><span class="special">(</span><span class="string">"hello"</span><span class="special">,</span> <span class="number">123</span><span class="special">);</span>
>>>>>>> .merge-right.r57125
<span class="identifier">joint_view</span><span class="special">&lt;</span>
<a href="../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&gt;</span>
<span class="special">,</span> <a href="../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&gt;</span>
+61
View File
@@ -3,7 +3,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>nview</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<<<<<<< .working
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
=======
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
>>>>>>> .merge-right.r57125
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
<link rel="up" href="../view.html" title="View">
<link rel="previous" href="reverse_view.html" title="reverse_view">
@@ -22,6 +26,7 @@
<div class="spirit-nav">
<a accesskey="p" href="reverse_view.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../view.html"><img src="../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="../adapted.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<<<<<<< .working
<div class="section" lang="en">
<div class="titlepage">
<div><div><h3 class="title">
@@ -33,6 +38,16 @@
<a name="id528240"></a>
<a href="nview.html#fusion.view.nview.description">Description</a>
</h4>
=======
<div class="section" title="nview">
<div class="titlepage"><div><div><h3 class="title">
<a name="fusion.view.nview"></a><a class="link" href="nview.html" title="nview">nview</a>
</h3></div></div></div>
<a name="fusion.view.nview.description"></a><h5>
<a name="id735048"></a>
<a class="link" href="nview.html#fusion.view.nview.description">Description</a>
</h5>
>>>>>>> .merge-right.r57125
<p>
<tt class="computeroutput"><span class="identifier">nview</span></tt> presents a view which
iterates over a given <a href="../sequence.html" title="Sequence">Sequence</a> in
@@ -40,17 +55,31 @@
is constructed from an arbitrary <a href="../sequence.html" title="Sequence">Sequence</a>
and a list of indicies specifying the elements to iterate over.
</p>
<<<<<<< .working
<a name="fusion.view.nview.header"></a><h4>
<a name="id528309"></a>
<a href="nview.html#fusion.view.nview.header">Header</a>
</h4>
=======
<a name="fusion.view.nview.header"></a><h5>
<a name="id735089"></a>
<a class="link" href="nview.html#fusion.view.nview.header">Header</a>
</h5>
>>>>>>> .merge-right.r57125
<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">nview</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">nview</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<<<<<<< .working
<a name="fusion.view.nview.synopsis"></a><h4>
<a name="id528464"></a>
<a href="nview.html#fusion.view.nview.synopsis">Synopsis</a>
</h4>
=======
<a name="fusion.view.nview.synopsis"></a><h5>
<a name="id736290"></a>
<a class="link" href="nview.html#fusion.view.nview.synopsis">Synopsis</a>
</h5>
>>>>>>> .merge-right.r57125
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Indicies</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">nview</span><span class="special">;</span>
@@ -58,10 +87,17 @@
<span class="keyword">typename</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">nview</span><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">I1</span><span class="special">,</span> <span class="identifier">I2</span><span class="special">,</span> <span class="special">...&gt;::</span><span class="identifier">type</span>
<span class="identifier">as_nview</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">s</span><span class="special">);</span>
</pre>
<<<<<<< .working
<a name="fusion.view.nview.template_parameters"></a><h4>
<a name="id528750"></a>
<a href="nview.html#fusion.view.nview.template_parameters">Template parameters</a>
</h4>
=======
<a name="fusion.view.nview.template_parameters"></a><h5>
<a name="id736497"></a>
<a class="link" href="nview.html#fusion.view.nview.template_parameters">Template parameters</a>
</h5>
>>>>>>> .merge-right.r57125
<div class="informaltable"><table class="table">
<colgroup>
<col>
@@ -116,6 +152,7 @@
</tr>
</tbody>
</table></div>
<<<<<<< .working
<a name="fusion.view.nview.model_of"></a><h4>
<a name="id529035"></a>
<a href="nview.html#fusion.view.nview.model_of">Model of</a>
@@ -124,6 +161,15 @@
<a href="../sequence/concepts/random_access_sequence.html" title="Random
Access Sequence">Random
Access Sequence</a> (see <a href="../sequence/concepts.html#fusion.sequence.concepts.traversal">Sequence
=======
<a name="fusion.view.nview.model_of"></a><h5>
<a name="id736711"></a>
<a class="link" href="nview.html#fusion.view.nview.model_of">Model of</a>
</h5>
<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
<a class="link" href="../sequence/concepts/random_access_sequence.html" title="Random Access Sequence">Random
Access Sequence</a> (see <a class="link" href="../sequence/concepts.html#fusion.sequence.concepts.traversal">Sequence
>>>>>>> .merge-right.r57125
Traversal Concept</a>)
</li></ul></div>
<div class="variablelist">
@@ -144,10 +190,17 @@
</p></dd>
</dl>
</div>
<<<<<<< .working
<a name="fusion.view.nview.expression_semantics"></a><h4>
<a name="id529208"></a>
<a href="nview.html#fusion.view.nview.expression_semantics">Expression Semantics</a>
</h4>
=======
<a name="fusion.view.nview.expression_semantics"></a><h5>
<a name="id736831"></a>
<a class="link" href="nview.html#fusion.view.nview.expression_semantics">Expression Semantics</a>
</h5>
>>>>>>> .merge-right.r57125
<p>
Semantics of an expression is defined only where it differs from, or is not
defined in <a href="../sequence/concepts/random_access_sequence.html" title="Random
@@ -205,11 +258,19 @@
a Fusion <a href="../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>
of references to the elements of the original Fusion <a href="../sequence.html" title="Sequence">Sequence</a>
</p>
<<<<<<< .working
<a name="fusion.view.nview.example"></a><h4>
<a name="id529549"></a>
<a href="nview.html#fusion.view.nview.example">Example</a>
</h4>
<pre class="programlisting"><span class="keyword">typedef</span> <a href="../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
=======
<a name="fusion.view.nview.example"></a><h5>
<a name="id737073"></a>
<a class="link" href="nview.html#fusion.view.nview.example">Example</a>
</h5>
<pre class="programlisting"><span class="keyword">typedef</span> <a class="link" href="../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
>>>>>>> .merge-right.r57125
<span class="keyword">typedef</span> <span class="identifier">mpl</span><span class="special">::</span><span class="identifier">vector_c</span><span class="special">&lt;</span><span class="keyword">int</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">0</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <span class="number">0</span><span class="special">&gt;</span> <span class="identifier">indicies</span><span class="special">;</span>
<span class="identifier">vec</span> <span class="identifier">v1</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'c'</span><span class="special">,</span> <span class="number">2.0</span><span class="special">);</span>
+70
View File
@@ -3,7 +3,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>reverse_view</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<<<<<<< .working
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
=======
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
>>>>>>> .merge-right.r57125
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
<link rel="up" href="../view.html" title="View">
<link rel="previous" href="transform_view.html" title="transform_view">
@@ -34,24 +38,45 @@
view of underlying sequence. The first element will be its last and the last
element will be its first.
</p>
<<<<<<< .working
<a name="fusion.view.reverse_view.header"></a><h4>
<a name="id527152"></a>
<a href="reverse_view.html#fusion.view.reverse_view.header">Header</a>
</h4>
=======
<a name="fusion.view.reverse_view.header"></a><h5>
<a name="id734258"></a>
<a class="link" href="reverse_view.html#fusion.view.reverse_view.header">Header</a>
</h5>
>>>>>>> .merge-right.r57125
<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">reverse_view</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">reverse_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<<<<<<< .working
<a name="fusion.view.reverse_view.synopsis"></a><h4>
<a name="id527307"></a>
<a href="reverse_view.html#fusion.view.reverse_view.synopsis">Synopsis</a>
</h4>
=======
<a name="fusion.view.reverse_view.synopsis"></a><h5>
<a name="id734366"></a>
<a class="link" href="reverse_view.html#fusion.view.reverse_view.synopsis">Synopsis</a>
</h5>
>>>>>>> .merge-right.r57125
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">reverse_view</span><span class="special">;</span>
</pre>
<<<<<<< .working
<a name="fusion.view.reverse_view.template_parameters"></a><h4>
<a name="id527385"></a>
<a href="reverse_view.html#fusion.view.reverse_view.template_parameters">Template parameters</a>
</h4>
=======
<a name="fusion.view.reverse_view.template_parameters"></a><h5>
<a name="id734418"></a>
<a class="link" href="reverse_view.html#fusion.view.reverse_view.template_parameters">Template parameters</a>
</h5>
>>>>>>> .merge-right.r57125
<div class="informaltable"><table class="table">
<colgroup>
<col>
@@ -82,13 +107,40 @@
</p></td>
</tr></tbody>
</table></div>
<<<<<<< .working
<a name="fusion.view.reverse_view.model_of"></a><h4>
<a name="id527497"></a>
<a href="reverse_view.html#fusion.view.reverse_view.model_of">Model of</a>
</h4>
<div class="itemizedlist"><ul type="disc"><li><a href="../sequence/concepts/bidirectional_sequence.html" title="Bidirectional
Sequence">Bidirectional
=======
<a name="fusion.view.reverse_view.model_of"></a><h5>
<a name="id734506"></a>
<a class="link" href="reverse_view.html#fusion.view.reverse_view.model_of">Model of</a>
</h5>
<<<<<<< .working
<<<<<<< .working
<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><a class="link" href="../sequence/concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional
>>>>>>> .merge-right.r57125
Sequence</a></li></ul></div>
=======
<p>
A model of the same sequence concept as <code class="computeroutput"><span class="identifier">Sequence</span></code>.
</p>
=======
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><a class="link" href="../sequence/concepts/bidirectional_sequence.html" title="Bidirectional Sequence">Bidirectional
Sequence</a></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">Sequence</span></code>
implements the <a class="link" href="../sequence/concepts/associative_sequence.html" title="Associative Sequence">Associative
Sequence</a> model.
</li>
</ul></div>
>>>>>>> .merge-right.r57337
>>>>>>> .merge-right.r57242
<div class="variablelist">
<p class="title"><b>Notation</b></p>
<dl>
@@ -107,16 +159,26 @@
</p></dd>
</dl>
</div>
<<<<<<< .working
<a name="fusion.view.reverse_view.expression_semantics"></a><h4>
<a name="id527661"></a>
<a href="reverse_view.html#fusion.view.reverse_view.expression_semantics">Expression
=======
<a name="fusion.view.reverse_view.expression_semantics"></a><h5>
<a name="id734641"></a>
<a class="link" href="reverse_view.html#fusion.view.reverse_view.expression_semantics">Expression
>>>>>>> .merge-right.r57125
Semantics</a>
</h4>
<p>
Semantics of an expression is defined only where it differs from, or is not
<<<<<<< .working
defined in <a href="../sequence/concepts/bidirectional_sequence.html" title="Bidirectional
Sequence">Bidirectional
Sequence</a>.
=======
defined in the implemented models.
>>>>>>> .merge-right.r57242
</p>
<div class="informaltable"><table class="table">
<colgroup>
@@ -164,11 +226,19 @@
</tr>
</tbody>
</table></div>
<<<<<<< .working
<a name="fusion.view.reverse_view.example"></a><h4>
<a name="id527974"></a>
<a href="reverse_view.html#fusion.view.reverse_view.example">Example</a>
</h4>
<pre class="programlisting"><span class="keyword">typedef</span> <a href="../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">short</span><span class="special">,</span> <span class="keyword">double</span><span class="special">&gt;</span> <span class="identifier">vector_type</span><span class="special">;</span>
=======
<a name="fusion.view.reverse_view.example"></a><h5>
<a name="id734860"></a>
<a class="link" href="reverse_view.html#fusion.view.reverse_view.example">Example</a>
</h5>
<pre class="programlisting"><span class="keyword">typedef</span> <a class="link" href="../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">short</span><span class="special">,</span> <span class="keyword">double</span><span class="special">&gt;</span> <span class="identifier">vector_type</span><span class="special">;</span>
>>>>>>> .merge-right.r57125
<span class="identifier">vector_type</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="number">5</span><span class="special">,</span> <span class="number">3.3</span><span class="special">);</span>
<span class="identifier">reverse_view</span><span class="special">&lt;</span><span class="identifier">vector_type</span><span class="special">&gt;</span> <span class="identifier">reverse</span><span class="special">(</span><span class="identifier">vec</span><span class="special">);</span>
+48
View File
@@ -3,7 +3,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>single_view</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<<<<<<< .working
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
=======
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
>>>>>>> .merge-right.r57125
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
<link rel="up" href="../view.html" title="View">
<link rel="previous" href="../view.html" title="View">
@@ -33,24 +37,45 @@
<tt class="computeroutput"><span class="identifier">single_view</span></tt> is a view into
a value as a single element sequence.
</p>
<<<<<<< .working
<a name="fusion.view.single_view.header"></a><h4>
<a name="id353110"></a>
<a href="single_view.html#fusion.view.single_view.header">Header</a>
</h4>
=======
<a name="fusion.view.single_view.header"></a><h5>
<a name="id722947"></a>
<a class="link" href="single_view.html#fusion.view.single_view.header">Header</a>
</h5>
>>>>>>> .merge-right.r57125
<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">single_view</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">single_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<<<<<<< .working
<a name="fusion.view.single_view.synopsis"></a><h4>
<a name="id518175"></a>
<a href="single_view.html#fusion.view.single_view.synopsis">Synopsis</a>
</h4>
=======
<a name="fusion.view.single_view.synopsis"></a><h5>
<a name="id723055"></a>
<a class="link" href="single_view.html#fusion.view.single_view.synopsis">Synopsis</a>
</h5>
>>>>>>> .merge-right.r57125
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">single_view</span><span class="special">;</span>
</pre>
<<<<<<< .working
<a name="fusion.view.single_view.template_parameters"></a><h4>
<a name="id518253"></a>
<a href="single_view.html#fusion.view.single_view.template_parameters">Template parameters</a>
</h4>
=======
<a name="fusion.view.single_view.template_parameters"></a><h5>
<a name="id723107"></a>
<a class="link" href="single_view.html#fusion.view.single_view.template_parameters">Template parameters</a>
</h5>
>>>>>>> .merge-right.r57125
<div class="informaltable"><table class="table">
<colgroup>
<col>
@@ -79,6 +104,7 @@
</p></td>
</tr></tbody>
</table></div>
<<<<<<< .working
<a name="fusion.view.single_view.model_of"></a><h4>
<a name="id518355"></a>
<a href="single_view.html#fusion.view.single_view.model_of">Model of</a>
@@ -86,6 +112,14 @@
<div class="itemizedlist"><ul type="disc"><li><a href="../sequence/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence</a></li></ul></div>
<div class="variablelist">
=======
<a name="fusion.view.single_view.model_of"></a><h5>
<a name="id723190"></a>
<a class="link" href="single_view.html#fusion.view.single_view.model_of">Model of</a>
</h5>
<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></li></ul></div>
<div class="variablelist" title="Notation">
>>>>>>> .merge-right.r57125
<p class="title"><b>Notation</b></p>
<dl>
<dt><span class="term"><tt class="computeroutput"><span class="identifier">S</span></tt></span></dt>
@@ -103,10 +137,17 @@
</p></dd>
</dl>
</div>
<<<<<<< .working
<a name="fusion.view.single_view.expression_semantics"></a><h4>
<a name="id518518"></a>
<a href="single_view.html#fusion.view.single_view.expression_semantics">Expression Semantics</a>
</h4>
=======
<a name="fusion.view.single_view.expression_semantics"></a><h5>
<a name="id723305"></a>
<a class="link" href="single_view.html#fusion.view.single_view.expression_semantics">Expression Semantics</a>
</h5>
>>>>>>> .merge-right.r57125
<p>
Semantics of an expression is defined only where it differs from, or is not
defined in <a href="../sequence/concepts/forward_sequence.html" title="Forward
@@ -159,10 +200,17 @@
</tr>
</tbody>
</table></div>
<<<<<<< .working
<a name="fusion.view.single_view.example"></a><h4>
<a name="id518828"></a>
<a href="single_view.html#fusion.view.single_view.example">Example</a>
</h4>
=======
<a name="fusion.view.single_view.example"></a><h5>
<a name="id723528"></a>
<a class="link" href="single_view.html#fusion.view.single_view.example">Example</a>
</h5>
>>>>>>> .merge-right.r57125
<pre class="programlisting"><span class="identifier">single_view</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">view</span><span class="special">(</span><span class="number">3</span><span class="special">);</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special">&lt;&lt;</span> <span class="identifier">view</span> <span class="special">&lt;&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
</pre>
+49
View File
@@ -3,7 +3,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>transform_view</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<<<<<<< .working
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
=======
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
>>>>>>> .merge-right.r57125
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
<link rel="up" href="../view.html" title="View">
<link rel="previous" href="zip_view.html" title="zip_view">
@@ -38,17 +42,31 @@
inherits the traversal characteristics (see <a href="../sequence/concepts.html#fusion.sequence.concepts.traversal">Sequence
Traversal Concept</a>) of its underlying sequence or sequences.
</p>
<<<<<<< .working
<a name="fusion.view.transform_view.header"></a><h4>
<a name="id524861"></a>
<a href="transform_view.html#fusion.view.transform_view.header">Header</a>
</h4>
=======
<a name="fusion.view.transform_view.header"></a><h5>
<a name="id732614"></a>
<a class="link" href="transform_view.html#fusion.view.transform_view.header">Header</a>
</h5>
>>>>>>> .merge-right.r57125
<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">transform_view</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">transform_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<<<<<<< .working
<a name="fusion.view.transform_view.synopsis"></a><h4>
<a name="id525017"></a>
<a href="transform_view.html#fusion.view.transform_view.synopsis">Synopsis</a>
</h4>
=======
<a name="fusion.view.transform_view.synopsis"></a><h5>
<a name="id732722"></a>
<a class="link" href="transform_view.html#fusion.view.transform_view.synopsis">Synopsis</a>
</h5>
>>>>>>> .merge-right.r57125
<p>
<span class="bold"><b>Unary Version</b></span>
</p>
@@ -61,10 +79,17 @@
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sequence1</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence2</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">F2</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">transform_view</span><span class="special">;</span>
</pre>
<<<<<<< .working
<a name="fusion.view.transform_view.template_parameters"></a><h4>
<a name="id525221"></a>
<a href="transform_view.html#fusion.view.transform_view.template_parameters">Template parameters</a>
</h4>
=======
<a name="fusion.view.transform_view.template_parameters"></a><h5>
<a name="id732868"></a>
<a class="link" href="transform_view.html#fusion.view.transform_view.template_parameters">Template parameters</a>
</h5>
>>>>>>> .merge-right.r57125
<div class="informaltable"><table class="table">
<colgroup>
<col>
@@ -147,6 +172,7 @@
</tr>
</tbody>
</table></div>
<<<<<<< .working
<a name="fusion.view.transform_view.model_of"></a><h4>
<a name="id525686"></a>
<a href="transform_view.html#fusion.view.transform_view.model_of">Model of</a>
@@ -158,6 +184,16 @@
Sequence">Bidirectional
Sequence</a> or <a href="../sequence/concepts/random_access_sequence.html" title="Random
Access Sequence">Random
=======
<a name="fusion.view.transform_view.model_of"></a><h5>
<a name="id733216"></a>
<a class="link" href="transform_view.html#fusion.view.transform_view.model_of">Model of</a>
</h5>
<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
>>>>>>> .merge-right.r57125
Access Sequence</a> depending on the traversal characteristics (see
<a href="../sequence/concepts.html#fusion.sequence.concepts.traversal">Sequence Traversal Concept</a>)
of its underlying sequence.
@@ -206,9 +242,15 @@
</p></dd>
</dl>
</div>
<<<<<<< .working
<a name="fusion.view.transform_view.expression_semantics"></a><h4>
<a name="id526088"></a>
<a href="transform_view.html#fusion.view.transform_view.expression_semantics">Expression
=======
<a name="fusion.view.transform_view.expression_semantics"></a><h5>
<a name="id733498"></a>
<a class="link" href="transform_view.html#fusion.view.transform_view.expression_semantics">Expression
>>>>>>> .merge-right.r57125
Semantics</a>
</h4>
<p>
@@ -281,10 +323,17 @@
</tr>
</tbody>
</table></div>
<<<<<<< .working
<a name="fusion.view.transform_view.example"></a><h4>
<a name="id526566"></a>
<a href="transform_view.html#fusion.view.transform_view.example">Example</a>
</h4>
=======
<a name="fusion.view.transform_view.example"></a><h5>
<a name="id733832"></a>
<a class="link" href="transform_view.html#fusion.view.transform_view.example">Example</a>
</h5>
>>>>>>> .merge-right.r57125
<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">square</span>
<span class="special">{</span>
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sig</span><span class="special">&gt;</span>
+63
View File
@@ -3,7 +3,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>zip_view</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
<<<<<<< .working
<meta name="generator" content="DocBook XSL Stylesheets V1.65.1">
=======
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
>>>>>>> .merge-right.r57125
<link rel="home" href="../../index.html" title="Chapter 1. Fusion 2.0">
<link rel="up" href="../view.html" title="View">
<link rel="previous" href="joint_view.html" title="joint_view">
@@ -22,6 +26,7 @@
<div class="spirit-nav">
<a accesskey="p" href="joint_view.html"><img src="../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../view.html"><img src="../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="transform_view.html"><img src="../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<<<<<<< .working
<div class="section" lang="en">
<div class="titlepage">
<div><div><h3 class="title">
@@ -33,6 +38,16 @@
<a name="id523475"></a>
<a href="zip_view.html#fusion.view.zip_view.description">Description</a>
</h4>
=======
<div class="section" title="zip_view">
<div class="titlepage"><div><div><h3 class="title">
<a name="fusion.view.zip_view"></a><a class="link" href="zip_view.html" title="zip_view">zip_view</a>
</h3></div></div></div>
<a name="fusion.view.zip_view.description"></a><h5>
<a name="id731648"></a>
<a class="link" href="zip_view.html#fusion.view.zip_view.description">Description</a>
</h5>
>>>>>>> .merge-right.r57125
<p>
<tt class="computeroutput"><span class="identifier">zip_view</span></tt> presents a view
which iterates over a collection of <a href="../sequence.html" title="Sequence">Sequence</a>(s)
@@ -40,24 +55,45 @@
constructed from a <a href="../sequence.html" title="Sequence">Sequence</a> of references
to the component <span class="underline">_sequence</span>_s.
</p>
<<<<<<< .working
<a name="fusion.view.zip_view.header"></a><h4>
<a name="id523552"></a>
<a href="zip_view.html#fusion.view.zip_view.header">Header</a>
</h4>
=======
<a name="fusion.view.zip_view.header"></a><h5>
<a name="id731695"></a>
<a class="link" href="zip_view.html#fusion.view.zip_view.header">Header</a>
</h5>
>>>>>>> .merge-right.r57125
<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">zip_view</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">zip_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<<<<<<< .working
<a name="fusion.view.zip_view.synopsis"></a><h4>
<a name="id523707"></a>
<a href="zip_view.html#fusion.view.zip_view.synopsis">Synopsis</a>
</h4>
=======
<a name="fusion.view.zip_view.synopsis"></a><h5>
<a name="id731803"></a>
<a class="link" href="zip_view.html#fusion.view.zip_view.synopsis">Synopsis</a>
</h5>
>>>>>>> .merge-right.r57125
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sequences</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">zip_view</span><span class="special">;</span>
</pre>
<<<<<<< .working
<a name="fusion.view.zip_view.template_parameters"></a><h4>
<a name="id523785"></a>
<a href="zip_view.html#fusion.view.zip_view.template_parameters">Template parameters</a>
</h4>
=======
<a name="fusion.view.zip_view.template_parameters"></a><h5>
<a name="id731854"></a>
<a class="link" href="zip_view.html#fusion.view.zip_view.template_parameters">Template parameters</a>
</h5>
>>>>>>> .merge-right.r57125
<div class="informaltable"><table class="table">
<colgroup>
<col>
@@ -88,6 +124,7 @@
</p></td>
</tr></tbody>
</table></div>
<<<<<<< .working
<a name="fusion.view.zip_view.model_of"></a><h4>
<a name="id523904"></a>
<a href="zip_view.html#fusion.view.zip_view.model_of">Model of</a>
@@ -99,6 +136,16 @@
Sequence">Bidirectional
Sequence</a> or <a href="../sequence/concepts/random_access_sequence.html" title="Random
Access Sequence">Random
=======
<a name="fusion.view.zip_view.model_of"></a><h5>
<a name="id731947"></a>
<a class="link" href="zip_view.html#fusion.view.zip_view.model_of">Model of</a>
</h5>
<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
>>>>>>> .merge-right.r57125
Access Sequence</a> depending on the traversal characteristics (see
<a href="../sequence/concepts.html#fusion.sequence.concepts.traversal">Sequence Traversal Concept</a>)
of its underlying sequence.
@@ -121,10 +168,17 @@
</p></dd>
</dl>
</div>
<<<<<<< .working
<a name="fusion.view.zip_view.expression_semantics"></a><h4>
<a name="id524097"></a>
<a href="zip_view.html#fusion.view.zip_view.expression_semantics">Expression Semantics</a>
</h4>
=======
<a name="fusion.view.zip_view.expression_semantics"></a><h5>
<a name="id732078"></a>
<a class="link" href="zip_view.html#fusion.view.zip_view.expression_semantics">Expression Semantics</a>
</h5>
>>>>>>> .merge-right.r57125
<p>
Semantics of an expression is defined only where it differs from, or is not
defined in <a href="../sequence/concepts/forward_sequence.html" title="Forward
@@ -177,12 +231,21 @@
</tr>
</tbody>
</table></div>
<<<<<<< .working
<a name="fusion.view.zip_view.example"></a><h4>
<a name="id524404"></a>
<a href="zip_view.html#fusion.view.zip_view.example">Example</a>
</h4>
<pre class="programlisting"><span class="keyword">typedef</span> <a href="../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec1</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">char</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">vec2</span><span class="special">;</span>
=======
<a name="fusion.view.zip_view.example"></a><h5>
<a name="id732298"></a>
<a class="link" href="zip_view.html#fusion.view.zip_view.example">Example</a>
</h5>
<pre class="programlisting"><span class="keyword">typedef</span> <a class="link" href="../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec1</span><span class="special">;</span>
<span class="keyword">typedef</span> <a class="link" href="../container/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">char</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">vec2</span><span class="special">;</span>
>>>>>>> .merge-right.r57125
<span class="identifier">vec1</span> <span class="identifier">v1</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="identifier">vec2</span> <span class="identifier">v2</span><span class="special">(</span><span class="char">'a'</span><span class="special">,</span><span class="char">'b'</span><span class="special">);</span>
<span class="keyword">typedef</span> <a href="../container/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="identifier">vec1</span><span class="special">&amp;,</span> <span class="identifier">vec2</span><span class="special">&amp;&gt;</span> <span class="identifier">sequences</span><span class="special">;</span>