[SVN r36908]
This commit is contained in:
Joel de Guzman
2007-02-07 22:59:25 +00:00
parent a0a0613e36
commit 693200182f
214 changed files with 3795 additions and 3806 deletions

View File

@ -54,9 +54,6 @@ types.
[[`t1 ...tN`][Objects with types `T1 ...TN`]] [[`t1 ...tN`][Objects with types `T1 ...TN`]]
] ]
[heading Refinement of]
__mpl_metafunction_class__
[heading Expression requirements] [heading Expression requirements]
[table [table
@ -515,14 +512,14 @@ Finds the first element of a given type within a sequence.
[heading Synopsis] [heading Synopsis]
template< template<
typename Sequence, typename T,
typename T typename Sequence
> >
__unspecified__ find(Sequence const& seq); __unspecified__ find(Sequence const& seq);
template< template<
typename Sequence, typename T,
typename T typename Sequence
> >
__unspecified__ find(Sequence& seq); __unspecified__ find(Sequence& seq);
@ -561,14 +558,14 @@ Finds the first element within a sequence with a type for which a given __mpl_la
[heading Synopsis] [heading Synopsis]
template< template<
typename Sequence, typename F,
typename F typename Sequence
> >
__unspecified__ find_if(Sequence const& seq); __unspecified__ find_if(Sequence const& seq);
template< template<
typename Sequence, typename F,
typename F typename Sequence
> >
__unspecified__ find_if(Sequence& seq); __unspecified__ find_if(Sequence& seq);

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Acknowledgements</title> <title>Acknowledgements</title>
<link rel="stylesheet" href="../boostbook.css" type="text/css"> <link rel="stylesheet" href="../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="prev" href="change_log.html" title="Change log"> <link rel="prev" href="change_log.html" title="Change log">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Algorithms</title> <title>Algorithms</title>
<link rel="stylesheet" href="../boostbook.css" type="text/css"> <link rel="stylesheet" href="../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="prev" href="sequences/operators/comparison/greater_than_equal.html" title="greater <link rel="prev" href="sequences/operators/comparison/greater_than_equal.html" title="greater
@ -47,7 +47,7 @@
</dl></dd> </dl></dd>
</dl></div> </dl></div>
<a name="fusion.algorithms.lazy_evaluation"></a><h3> <a name="fusion.algorithms.lazy_evaluation"></a><h3>
<a name="id1080122"></a> <a name="id552698"></a>
<a href="algorithms.html#fusion.algorithms.lazy_evaluation">Lazy Evaluation</a> <a href="algorithms.html#fusion.algorithms.lazy_evaluation">Lazy Evaluation</a>
</h3> </h3>
<p> <p>
@ -61,39 +61,39 @@
fusion algorithms are functional in nature such that algorithms are non mutating fusion algorithms are functional in nature such that algorithms are non mutating
(no side effects). However, due to the high cost of returning full sequences (no side effects). However, due to the high cost of returning full sequences
such as vectors and lists, <span class="emphasis"><em>Views</em></span> are returned from Fusion such as vectors and lists, <span class="emphasis"><em>Views</em></span> are returned from Fusion
algorithms instead. For example, the <a href="algorithms/transformation/functions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a> algorithm does not actually algorithms instead. For example, the <a href="algorithms/transformation/functions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a> algorithm does not actually
return a transformed version of the original sequence. <a href="algorithms/transformation/functions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a> returns a <a href="sequences/views/transform_view.html" title="transform_view"><code class="computeroutput"><span class="identifier">transform_view</span></code></a>. This view holds a return a transformed version of the original sequence. <a href="algorithms/transformation/functions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a> returns a <a href="sequences/views/transform_view.html" title="transform_view"><tt class="computeroutput"><span class="identifier">transform_view</span></tt></a>. This view holds a
reference to the original sequence plus the transform function. Iteration over reference to the original sequence plus the transform function. Iteration over
the <a href="sequences/views/transform_view.html" title="transform_view"><code class="computeroutput"><span class="identifier">transform_view</span></code></a> the <a href="sequences/views/transform_view.html" title="transform_view"><tt class="computeroutput"><span class="identifier">transform_view</span></tt></a>
will apply the transform function over the sequence elements on demand. This will apply the transform function over the sequence elements on demand. This
<span class="emphasis"><em>lazy</em></span> evaluation scheme allows us to chain as many algorithms <span class="emphasis"><em>lazy</em></span> evaluation scheme allows us to chain as many algorithms
as we want without incurring a high runtime penalty. as we want without incurring a high runtime penalty.
</p> </p>
<a name="fusion.algorithms.sequence_extension"></a><h3> <a name="fusion.algorithms.sequence_extension"></a><h3>
<a name="id1080250"></a> <a name="id552838"></a>
<a href="algorithms.html#fusion.algorithms.sequence_extension">Sequence Extension</a> <a href="algorithms.html#fusion.algorithms.sequence_extension">Sequence Extension</a>
</h3> </h3>
<p> <p>
The <span class="emphasis"><em>lazy</em></span> evaluation scheme where <a href="algorithms.html" title="Algorithms">Algorithms</a> The <span class="emphasis"><em>lazy</em></span> evaluation scheme where <a href="algorithms.html" title="Algorithms">Algorithms</a>
return <a href="sequences/views.html" title="Views">Views</a> also allows operations return <a href="sequences/views.html" title="Views">Views</a> also allows operations
such as <a href="algorithms/transformation/functions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a> to be totally generic. In such as <a href="algorithms/transformation/functions/push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a> to be totally generic. In
Fusion, <a href="algorithms/transformation/functions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a> is actually a generic algorithm Fusion, <a href="algorithms/transformation/functions/push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a> is actually a generic algorithm
that works on all sequences. Given an input sequence <code class="computeroutput"><span class="identifier">s</span></code> that works on all sequences. Given an input sequence <tt class="computeroutput"><span class="identifier">s</span></tt>
and a value <code class="computeroutput"><span class="identifier">x</span></code>, Fusion's <a href="algorithms/transformation/functions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a> algorithm simply returns and a value <tt class="computeroutput"><span class="identifier">x</span></tt>, Fusion's <a href="algorithms/transformation/functions/push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a> algorithm simply returns
a <a href="sequences/views/joint_view.html" title="joint_view"><code class="computeroutput"><span class="identifier">joint_view</span></code></a>: a <a href="sequences/views/joint_view.html" title="joint_view"><tt class="computeroutput"><span class="identifier">joint_view</span></tt></a>:
a view that holds a reference to the original sequence <code class="computeroutput"><span class="identifier">s</span></code> a view that holds a reference to the original sequence <tt class="computeroutput"><span class="identifier">s</span></tt>
and the value <code class="computeroutput"><span class="identifier">x</span></code>. Functions and the value <tt class="computeroutput"><span class="identifier">x</span></tt>. Functions
that were once sequence specific and need to be implemented N times over N that were once sequence specific and need to be implemented N times over N
different sequences are now implemented only once. That is to say that Fusion different sequences are now implemented only once. That is to say that Fusion
sequences are cheaply extensible. However, an important caveat is that the sequences are cheaply extensible. However, an important caveat is that the
result of a sequence extending operation like <a href="algorithms/transformation/functions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a> does not retain the properties result of a sequence extending operation like <a href="algorithms/transformation/functions/push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a> does not retain the properties
of the original sequence such as associativity of <span class="underline">_set</span>_s. of the original sequence such as associativity of <span class="underline">_set</span>_s.
To regain the original sequence, <a href="sequences/conversion/functions.html" title="Functions">Conversion</a> To regain the original sequence, <a href="sequences/conversion/functions.html" title="Functions">Conversion</a>
functions are provided. You may use one of the <a href="sequences/conversion/functions.html" title="Functions">Conversion</a> functions are provided. You may use one of the <a href="sequences/conversion/functions.html" title="Functions">Conversion</a>
functions to convert back to the original sequence type. functions to convert back to the original sequence type.
</p> </p>
<a name="fusion.algorithms.header"></a><h3> <a name="fusion.algorithms.header"></a><h3>
<a name="id1080438"></a> <a name="id553049"></a>
<a href="algorithms.html#fusion.algorithms.header">Header</a> <a href="algorithms.html#fusion.algorithms.header">Header</a>
</h3> </h3>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Concepts</title> <title>Concepts</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../algorithms.html" title="Algorithms"> <link rel="up" href="../algorithms.html" title="Algorithms">
<link rel="prev" href="../algorithms.html" title="Algorithms"> <link rel="prev" href="../algorithms.html" title="Algorithms">

View File

@ -4,7 +4,7 @@
<title> Polymorphic Function <title> Polymorphic Function
Object</title> Object</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../concepts.html" title="Concepts"> <link rel="up" href="../concepts.html" title="Concepts">
<link rel="prev" href="../concepts.html" title="Concepts"> <link rel="prev" href="../concepts.html" title="Concepts">
@ -29,47 +29,39 @@
Object"> Polymorphic Function Object"> Polymorphic Function
Object</a></h4></div></div></div> Object</a></h4></div></div></div>
<a name="fusion.algorithms.concepts.poly.description"></a><h5> <a name="fusion.algorithms.concepts.poly.description"></a><h5>
<a name="id1080544"></a> <a name="id553170"></a>
<a href="poly.html#fusion.algorithms.concepts.poly.description">Description</a> <a href="poly.html#fusion.algorithms.concepts.poly.description">Description</a>
</h5> </h5>
<p> <p>
A type of function object with a nested metafunction <code class="computeroutput"><span class="identifier">result</span></code>. A type of function object with a nested metafunction <tt class="computeroutput"><span class="identifier">result</span></tt>.
<code class="computeroutput"><span class="identifier">result</span></code> returns the result <tt class="computeroutput"><span class="identifier">result</span></tt> returns the result
type of calling the function object, given the argument types. type of calling the function object, given the argument types.
</p> </p>
<div class="variablelist"> <div class="variablelist">
<p class="title"><b>Notation</b></p> <p class="title"><b>Notation</b></p>
<dl> <dl>
<dt><span class="term"><code class="computeroutput"><span class="identifier">F</span></code></span></dt> <dt><span class="term"><tt class="computeroutput"><span class="identifier">F</span></tt></span></dt>
<dd> <dd>
A Polymorphic Function Object type A Polymorphic Function Object type
</dd> </dd>
<dt><span class="term"><code class="computeroutput"><span class="identifier">f</span></code></span></dt> <dt><span class="term"><tt class="computeroutput"><span class="identifier">f</span></tt></span></dt>
<dd> <dd>
A Polymorphic Function Object A Polymorphic Function Object
</dd> </dd>
<dt><span class="term"><code class="computeroutput"><span class="identifier">T1</span> <dt><span class="term"><tt class="computeroutput"><span class="identifier">T1</span>
<span class="special">...</span><span class="identifier">TN</span></code></span></dt> <span class="special">...</span><span class="identifier">TN</span></tt></span></dt>
<dd> <dd>
Arbitrary types Arbitrary types
</dd> </dd>
<dt><span class="term"><code class="computeroutput"><span class="identifier">t1</span> <dt><span class="term"><tt class="computeroutput"><span class="identifier">t1</span>
<span class="special">...</span><span class="identifier">tN</span></code></span></dt> <span class="special">...</span><span class="identifier">tN</span></tt></span></dt>
<dd> <dd>
Objects with types <code class="computeroutput"><span class="identifier">T1</span> <span class="special">...</span><span class="identifier">TN</span></code> Objects with types <tt class="computeroutput"><span class="identifier">T1</span> <span class="special">...</span><span class="identifier">TN</span></tt>
</dd> </dd>
</dl> </dl>
</div> </div>
<a name="fusion.algorithms.concepts.poly.refinement_of"></a><h5>
<a name="id1080698"></a>
<a href="poly.html#fusion.algorithms.concepts.poly.refinement_of">Refinement
of</a>
</h5>
<p>
MPL Metafunction Class
</p>
<a name="fusion.algorithms.concepts.poly.expression_requirements"></a><h5> <a name="fusion.algorithms.concepts.poly.expression_requirements"></a><h5>
<a name="id1080725"></a> <a name="id553345"></a>
<a href="poly.html#fusion.algorithms.concepts.poly.expression_requirements">Expression <a href="poly.html#fusion.algorithms.concepts.poly.expression_requirements">Expression
requirements</a> requirements</a>
</h5> </h5>
@ -86,8 +78,8 @@
Complexity</th> Complexity</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">t1</span><span class="special">,</span> <span class="special">...</span><span class="identifier">tN</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">t1</span><span class="special">,</span> <span class="special">...</span><span class="identifier">tN</span><span class="special">)</span></tt></td>
<td><code class="computeroutput"><span class="identifier">F</span><span class="special">::</span><span class="identifier">result</span><span class="special">&lt;</span><span class="identifier">T1</span><span class="special">,</span> <span class="special">...</span><span class="identifier">TN</span><span class="special">&gt;::</span><span class="identifier">type</span></code></td> <td><tt class="computeroutput"><span class="identifier">F</span><span class="special">::</span><span class="identifier">result</span><span class="special">&lt;</span><span class="identifier">T1</span><span class="special">,</span> <span class="special">...</span><span class="identifier">TN</span><span class="special">&gt;::</span><span class="identifier">type</span></tt></td>
<td>Unspecified</td> <td>Unspecified</td>
</tr></tbody> </tr></tbody>
</table></div> </table></div>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Iteration</title> <title>Iteration</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../algorithms.html" title="Algorithms"> <link rel="up" href="../algorithms.html" title="Algorithms">
<link rel="prev" href="concepts/poly.html" title=" Polymorphic Function <link rel="prev" href="concepts/poly.html" title=" Polymorphic Function
@ -35,7 +35,7 @@
a sequence repeatedly applying an operation to its elements. a sequence repeatedly applying an operation to its elements.
</p> </p>
<a name="fusion.algorithms.iteration.header"></a><h4> <a name="fusion.algorithms.iteration.header"></a><h4>
<a name="id1080893"></a> <a name="id553535"></a>
<a href="iteration.html#fusion.algorithms.iteration.header">Header</a> <a href="iteration.html#fusion.algorithms.iteration.header">Header</a>
</h4> </h4>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Functions</title> <title>Functions</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../iteration.html" title="Iteration"> <link rel="up" href="../iteration.html" title="Iteration">
<link rel="prev" href="../iteration.html" title="Iteration"> <link rel="prev" href="../iteration.html" title="Iteration">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>accumulate</title> <title>accumulate</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="fold.html" title="fold"> <link rel="prev" href="fold.html" title="fold">
@ -26,18 +26,18 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.iteration.functions.accumulate"></a><a href="accumulate.html" title="accumulate">accumulate</a></h5></div></div></div> <a name="fusion.algorithms.iteration.functions.accumulate"></a><a href="accumulate.html" title="accumulate">accumulate</a></h5></div></div></div>
<a name="fusion.algorithms.iteration.functions.accumulate.description"></a><h6> <a name="fusion.algorithms.iteration.functions.accumulate.description"></a><h6>
<a name="id1082295"></a> <a name="id555122"></a>
<a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.description">Description</a> <a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.description">Description</a>
</h6> </h6>
<p> <p>
Repeatedly applies binary <a href="../../concepts/poly.html" title=" Polymorphic Function Repeatedly applies binary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> <code class="computeroutput"><span class="identifier">f</span></code> Function Object</a> <tt class="computeroutput"><span class="identifier">f</span></tt>
to each element of a sequence and the previous state. <a href="accumulate.html" title="accumulate"><code class="computeroutput"><span class="identifier">accumulate</span></code></a> is equivalent to to each element of a sequence and the previous state. <a href="accumulate.html" title="accumulate"><tt class="computeroutput"><span class="identifier">accumulate</span></tt></a> is equivalent to
<a href="fold.html" title="fold"><code class="computeroutput"><span class="identifier">fold</span></code></a>. <a href="fold.html" title="fold"><tt class="computeroutput"><span class="identifier">fold</span></tt></a>.
</p> </p>
<a name="fusion.algorithms.iteration.functions.accumulate.synopsis"></a><h6> <a name="fusion.algorithms.iteration.functions.accumulate.synopsis"></a><h6>
<a name="id1082370"></a> <a name="id555207"></a>
<a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.synopsis">Synopsis</a> <a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -46,11 +46,11 @@
<span class="keyword">typename</span> <span class="identifier">State</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">State</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/accumulate.html" title="accumulate"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">accumulate</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">accumulate</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/accumulate.html" title="accumulate"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">accumulate</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">accumulate</span><span class="special">(</span>
<span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1082598"></a><p class="title"><b>Table<EFBFBD>1.33.<2E>Parameters</b></p> <a name="id555466"></a><p class="title"><b>Table<EFBFBD>1.33.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -64,24 +64,24 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">eN</span> <span class="special">....</span><span class="identifier">f</span><span class="special">(</span><span class="identifier">e2</span><span class="special">,</span><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span><span class="identifier">initial_state</span><span class="special">)))</span></code> must be a valid expression for Sequence</a>, <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">eN</span> <span class="special">....</span><span class="identifier">f</span><span class="special">(</span><span class="identifier">e2</span><span class="special">,</span><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span><span class="identifier">initial_state</span><span class="special">)))</span></tt> must be a valid expression for
each element <code class="computeroutput"><span class="identifier">e1</span></code> to each element <tt class="computeroutput"><span class="identifier">e1</span></tt> to
<code class="computeroutput"><span class="identifier">eN</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code> <tt class="computeroutput"><span class="identifier">eN</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</td> </td>
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">initial_state</span></code></td> <td><tt class="computeroutput"><span class="identifier">initial_state</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Initial state</td> <td>Initial state</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">f</span></code></td> <td><tt class="computeroutput"><span class="identifier">f</span></tt></td>
<td>A <td>A
model of binary <a href="../../concepts/poly.html" title=" Polymorphic Function model of binary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
@ -93,7 +93,7 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.iteration.functions.accumulate.expression_semantics"></a><h6> <a name="fusion.algorithms.iteration.functions.accumulate.expression_semantics"></a><h6>
<a name="id1082801"></a> <a name="id555697"></a>
<a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.expression_semantics">Expression <a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
@ -101,28 +101,28 @@
<span class="identifier">accumulate</span><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">accumulate</span><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: Any type <span class="bold"><b>Return type</b></span>: Any type
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Equivalent to <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">eN</span> <span class="special">....</span><span class="identifier">f</span><span class="special">(</span><span class="identifier">e2</span><span class="special">,</span><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span><span class="identifier">initial_state</span><span class="special">)))</span></code> <span class="bold"><b>Semantics</b></span>: Equivalent to <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">eN</span> <span class="special">....</span><span class="identifier">f</span><span class="special">(</span><span class="identifier">e2</span><span class="special">,</span><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span><span class="identifier">initial_state</span><span class="special">)))</span></tt>
where <code class="computeroutput"><span class="identifier">e1</span> <span class="special">...</span><span class="identifier">eN</span></code> are the elements of <code class="computeroutput"><span class="identifier">seq</span></code>. where <tt class="computeroutput"><span class="identifier">e1</span> <span class="special">...</span><span class="identifier">eN</span></tt> are the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.iteration.functions.accumulate.complexity"></a><h6> <a name="fusion.algorithms.iteration.functions.accumulate.complexity"></a><h6>
<a name="id1082808"></a> <a name="id555903"></a>
<a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.complexity">Complexity</a> <a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, exactly <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">f</span></code>. Linear, exactly <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> applications of <tt class="computeroutput"><span class="identifier">f</span></tt>.
</p> </p>
<a name="fusion.algorithms.iteration.functions.accumulate.header"></a><h6> <a name="fusion.algorithms.iteration.functions.accumulate.header"></a><h6>
<a name="id1083062"></a> <a name="id555994"></a>
<a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.header">Header</a> <a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span><span class="identifier">accumulate</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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span><span class="identifier">accumulate</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.iteration.functions.accumulate.example"></a><h6> <a name="fusion.algorithms.iteration.functions.accumulate.example"></a><h6>
<a name="id1083155"></a> <a name="id556100"></a>
<a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.example">Example</a> <a href="accumulate.html#fusion.algorithms.iteration.functions.accumulate.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -141,8 +141,8 @@
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<span class="keyword">const</span> <a href="../../../sequences/containers/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">vec</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="keyword">const</span> <a href="../../../sequences/containers/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">vec</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">assert</span><span class="special">(</span><a href="accumulate.html" title="accumulate"><code class="computeroutput"><span class="identifier">accumulate</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">(</span><span class="string">""</span><span class="special">),</span> <span class="identifier">make_string</span><span class="special">())</span> <span class="special">==</span> <span class="string">"12"</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="accumulate.html" title="accumulate"><tt class="computeroutput"><span class="identifier">accumulate</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">(</span><span class="string">""</span><span class="special">),</span> <span class="identifier">make_string</span><span class="special">())</span> <span class="special">==</span> <span class="string">"12"</span><span class="special">);</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>fold</title> <title>fold</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="../functions.html" title="Functions"> <link rel="prev" href="../functions.html" title="Functions">
@ -26,17 +26,17 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.iteration.functions.fold"></a><a href="fold.html" title="fold">fold</a></h5></div></div></div> <a name="fusion.algorithms.iteration.functions.fold"></a><a href="fold.html" title="fold">fold</a></h5></div></div></div>
<a name="fusion.algorithms.iteration.functions.fold.description"></a><h6> <a name="fusion.algorithms.iteration.functions.fold.description"></a><h6>
<a name="id1081011"></a> <a name="id553670"></a>
<a href="fold.html#fusion.algorithms.iteration.functions.fold.description">Description</a> <a href="fold.html#fusion.algorithms.iteration.functions.fold.description">Description</a>
</h6> </h6>
<p> <p>
Repeatedly applies binary <a href="../../concepts/poly.html" title=" Polymorphic Function Repeatedly applies binary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> <code class="computeroutput"><span class="identifier">f</span></code> Function Object</a> <tt class="computeroutput"><span class="identifier">f</span></tt>
to each element of a sequence and the previous state. to each element of a sequence and the previous state.
</p> </p>
<a name="fusion.algorithms.iteration.functions.fold.synopsis"></a><h6> <a name="fusion.algorithms.iteration.functions.fold.synopsis"></a><h6>
<a name="id1081057"></a> <a name="id553719"></a>
<a href="fold.html#fusion.algorithms.iteration.functions.fold.synopsis">Synopsis</a> <a href="fold.html#fusion.algorithms.iteration.functions.fold.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -45,11 +45,11 @@
<span class="keyword">typename</span> <span class="identifier">State</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">State</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/fold.html" title="fold"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">fold</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">fold</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/fold.html" title="fold"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">fold</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">fold</span><span class="special">(</span>
<span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">State</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">F</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1081284"></a><p class="title"><b>Table<EFBFBD>1.32.<2E>Parameters</b></p> <a name="id553977"></a><p class="title"><b>Table<EFBFBD>1.32.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -63,23 +63,23 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>,<code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> must be a valid expression for each Sequence</a>,<tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> must be a valid expression for each
element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code> element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</td> </td>
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">initial_state</span></code></td> <td><tt class="computeroutput"><span class="identifier">initial_state</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Initial state</td> <td>Initial state</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">f</span></code></td> <td><tt class="computeroutput"><span class="identifier">f</span></tt></td>
<td>A <td>A
model of binary <a href="../../concepts/poly.html" title=" Polymorphic Function model of binary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
@ -91,7 +91,7 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.iteration.functions.fold.expression_semantics"></a><h6> <a name="fusion.algorithms.iteration.functions.fold.expression_semantics"></a><h6>
<a name="id1081432"></a> <a name="id554145"></a>
<a href="fold.html#fusion.algorithms.iteration.functions.fold.expression_semantics">Expression <a href="fold.html#fusion.algorithms.iteration.functions.fold.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
@ -99,28 +99,28 @@
<span class="identifier">fold</span><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">fold</span><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">initial_state</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: Any type <span class="bold"><b>Return type</b></span>: Any type
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Equivalent to <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">eN</span> <span class="special">....</span><span class="identifier">f</span><span class="special">(</span><span class="identifier">e2</span><span class="special">,</span><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span><span class="identifier">initial_state</span><span class="special">)))</span></code> <span class="bold"><b>Semantics</b></span>: Equivalent to <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">eN</span> <span class="special">....</span><span class="identifier">f</span><span class="special">(</span><span class="identifier">e2</span><span class="special">,</span><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span><span class="identifier">initial_state</span><span class="special">)))</span></tt>
where <code class="computeroutput"><span class="identifier">e1</span> <span class="special">...</span><span class="identifier">eN</span></code> are the elements of <code class="computeroutput"><span class="identifier">seq</span></code>. where <tt class="computeroutput"><span class="identifier">e1</span> <span class="special">...</span><span class="identifier">eN</span></tt> are the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.iteration.functions.fold.complexity"></a><h6> <a name="fusion.algorithms.iteration.functions.fold.complexity"></a><h6>
<a name="id1081612"></a> <a name="id554349"></a>
<a href="fold.html#fusion.algorithms.iteration.functions.fold.complexity">Complexity</a> <a href="fold.html#fusion.algorithms.iteration.functions.fold.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, exactly <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">f</span></code>. Linear, exactly <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> applications of <tt class="computeroutput"><span class="identifier">f</span></tt>.
</p> </p>
<a name="fusion.algorithms.iteration.functions.fold.header"></a><h6> <a name="fusion.algorithms.iteration.functions.fold.header"></a><h6>
<a name="id1081693"></a> <a name="id554441"></a>
<a href="fold.html#fusion.algorithms.iteration.functions.fold.header">Header</a> <a href="fold.html#fusion.algorithms.iteration.functions.fold.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span><span class="identifier">fold</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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span><span class="identifier">fold</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.iteration.functions.fold.example"></a><h6> <a name="fusion.algorithms.iteration.functions.fold.example"></a><h6>
<a name="id1081786"></a> <a name="id554546"></a>
<a href="fold.html#fusion.algorithms.iteration.functions.fold.example">Example</a> <a href="fold.html#fusion.algorithms.iteration.functions.fold.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -139,8 +139,8 @@
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<span class="keyword">const</span> <a href="../../../sequences/containers/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">vec</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="keyword">const</span> <a href="../../../sequences/containers/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">vec</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">assert</span><span class="special">(</span><a href="fold.html" title="fold"><code class="computeroutput"><span class="identifier">fold</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">(</span><span class="string">""</span><span class="special">),</span> <span class="identifier">make_string</span><span class="special">())</span> <span class="special">==</span> <span class="string">"12"</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="fold.html" title="fold"><tt class="computeroutput"><span class="identifier">fold</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">(</span><span class="string">""</span><span class="special">),</span> <span class="identifier">make_string</span><span class="special">())</span> <span class="special">==</span> <span class="string">"12"</span><span class="special">);</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>for_each</title> <title>for_each</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="accumulate.html" title="accumulate"> <link rel="prev" href="accumulate.html" title="accumulate">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.iteration.functions.for_each"></a><a href="for_each.html" title="for_each">for_each</a></h5></div></div></div> <a name="fusion.algorithms.iteration.functions.for_each"></a><a href="for_each.html" title="for_each">for_each</a></h5></div></div></div>
<a name="fusion.algorithms.iteration.functions.for_each.description"></a><h6> <a name="fusion.algorithms.iteration.functions.for_each.description"></a><h6>
<a name="id1101136"></a> <a name="id556673"></a>
<a href="for_each.html#fusion.algorithms.iteration.functions.for_each.description">Description</a> <a href="for_each.html#fusion.algorithms.iteration.functions.for_each.description">Description</a>
</h6> </h6>
<p> <p>
Applies a unary function object to each element of a sequence. Applies a unary function object to each element of a sequence.
</p> </p>
<a name="fusion.algorithms.iteration.functions.for_each.synopsis"></a><h6> <a name="fusion.algorithms.iteration.functions.for_each.synopsis"></a><h6>
<a name="id1101165"></a> <a name="id556705"></a>
<a href="for_each.html#fusion.algorithms.iteration.functions.for_each.synopsis">Synopsis</a> <a href="for_each.html#fusion.algorithms.iteration.functions.for_each.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -41,11 +41,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">for_each</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">for_each</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">for_each</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">for_each</span><span class="special">(</span>
<span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1101342"></a><p class="title"><b>Table<EFBFBD>1.34.<2E>Parameters</b></p> <a name="id556906"></a><p class="title"><b>Table<EFBFBD>1.34.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -59,17 +59,17 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> must be a valid expression for each Sequence</a>, <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> must be a valid expression for each
element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code> element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</td> </td>
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">f</span></code></td> <td><tt class="computeroutput"><span class="identifier">f</span></tt></td>
<td>A <td>A
unary function object</td> unary function object</td>
<td>Operation's argument</td> <td>Operation's argument</td>
@ -78,36 +78,36 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.iteration.functions.for_each.expression_semantics"></a><h6> <a name="fusion.algorithms.iteration.functions.for_each.expression_semantics"></a><h6>
<a name="id1101467"></a> <a name="id557045"></a>
<a href="for_each.html#fusion.algorithms.iteration.functions.for_each.expression_semantics">Expression <a href="for_each.html#fusion.algorithms.iteration.functions.for_each.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> <a href="for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">for_each</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">void</span></code> <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">void</span></tt>
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Calls <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> for each element <code class="computeroutput"><span class="identifier">e</span></code> <span class="bold"><b>Semantics</b></span>: Calls <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> for each element <tt class="computeroutput"><span class="identifier">e</span></tt>
in <code class="computeroutput"><span class="identifier">seq</span></code>. in <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.iteration.functions.for_each.complexity"></a><h6> <a name="fusion.algorithms.iteration.functions.for_each.complexity"></a><h6>
<a name="id1101600"></a> <a name="id557197"></a>
<a href="for_each.html#fusion.algorithms.iteration.functions.for_each.complexity">Complexity</a> <a href="for_each.html#fusion.algorithms.iteration.functions.for_each.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, exactly <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">f</span></code>. Linear, exactly <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> applications of <tt class="computeroutput"><span class="identifier">f</span></tt>.
</p> </p>
<a name="fusion.algorithms.iteration.functions.for_each.header"></a><h6> <a name="fusion.algorithms.iteration.functions.for_each.header"></a><h6>
<a name="id1101681"></a> <a name="id557289"></a>
<a href="for_each.html#fusion.algorithms.iteration.functions.for_each.header">Header</a> <a href="for_each.html#fusion.algorithms.iteration.functions.for_each.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span><span class="identifier">for_each</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">algorithm</span><span class="special">/</span><span class="identifier">iteration</span><span class="special">/</span><span class="identifier">for_each</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.iteration.functions.for_each.example"></a><h6> <a name="fusion.algorithms.iteration.functions.for_each.example"></a><h6>
<a name="id1101774"></a> <a name="id557395"></a>
<a href="for_each.html#fusion.algorithms.iteration.functions.for_each.example">Example</a> <a href="for_each.html#fusion.algorithms.iteration.functions.for_each.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -120,9 +120,9 @@
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<a href="../../../sequences/containers/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">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">);</span> <a href="../../../sequences/containers/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">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">);</span>
<a href="for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <span class="identifier">increment</span><span class="special">());</span> <a href="for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">for_each</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <span class="identifier">increment</span><span class="special">());</span>
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">vec</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><span class="identifier">vec</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Metafunctions</title> <title>Metafunctions</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../iteration.html" title="Iteration"> <link rel="up" href="../iteration.html" title="Iteration">
<link rel="prev" href="functions/for_each.html" title="for_each"> <link rel="prev" href="functions/for_each.html" title="for_each">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>accumulate</title> <title>accumulate</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="fold.html" title="fold"> <link rel="prev" href="fold.html" title="fold">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.iteration.metafunctions.accumulate"></a><a href="accumulate.html" title="accumulate">accumulate</a></h5></div></div></div> <a name="fusion.algorithms.iteration.metafunctions.accumulate"></a><a href="accumulate.html" title="accumulate">accumulate</a></h5></div></div></div>
<a name="fusion.algorithms.iteration.metafunctions.accumulate.description"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.accumulate.description"></a><h6>
<a name="id1102740"></a> <a name="id558486"></a>
<a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.description">Description</a> <a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/accumulate.html" title="accumulate"><code class="computeroutput"><span class="identifier">accumulate</span></code></a>. Returns the result type of <a href="../functions/accumulate.html" title="accumulate"><tt class="computeroutput"><span class="identifier">accumulate</span></tt></a>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.accumulate.synopsis"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.accumulate.synopsis"></a><h6>
<a name="id1102781"></a> <a name="id558534"></a>
<a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.synopsis">Synopsis</a> <a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1102900"></a><p class="title"><b>Table<EFBFBD>1.36.<2E>Parameters</b></p> <a name="id558669"></a><p class="title"><b>Table<EFBFBD>1.36.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -61,7 +61,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -70,15 +70,15 @@
<td>The sequence to iterate</td> <td>The sequence to iterate</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">State</span></code></td> <td><tt class="computeroutput"><span class="identifier">State</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>The initial state for the first application of <td>The initial state for the first application of
<code class="computeroutput"><span class="identifier">F</span></code> <tt class="computeroutput"><span class="identifier">F</span></tt>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">F</span></code></td> <td><tt class="computeroutput"><span class="identifier">F</span></tt></td>
<td>A <td>A
model of binary <a href="../../concepts/poly.html" title=" Polymorphic Function model of binary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
@ -91,34 +91,34 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.iteration.metafunctions.accumulate.expression_semantics"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.accumulate.expression_semantics"></a><h6>
<a name="id1103020"></a> <a name="id558804"></a>
<a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.expression_semantics">Expression <a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="accumulate.html" title="accumulate"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">accumulate</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="accumulate.html" title="accumulate"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">accumulate</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: Any type <span class="bold"><b>Return type</b></span>: Any type
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the result of applying <span class="bold"><b>Semantics</b></span>: Returns the result of applying
<code class="computeroutput"><span class="identifier">accumulate</span></code> to a sequence <tt class="computeroutput"><span class="identifier">accumulate</span></tt> to a sequence
of type <code class="computeroutput"><span class="identifier">Sequence</span></code>, with of type <tt class="computeroutput"><span class="identifier">Sequence</span></tt>, with
an initial state of type <code class="computeroutput"><span class="identifier">State</span></code> an initial state of type <tt class="computeroutput"><span class="identifier">State</span></tt>
and binary <a href="../../concepts/poly.html" title=" Polymorphic Function and binary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> of type <code class="computeroutput"><span class="identifier">F</span></code>. Function Object</a> of type <tt class="computeroutput"><span class="identifier">F</span></tt>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.accumulate.complexity"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.accumulate.complexity"></a><h6>
<a name="id1103174"></a> <a name="id558982"></a>
<a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.complexity">Complexity</a> <a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, exactly <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">F</span></code>. Linear, exactly <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> applications of <tt class="computeroutput"><span class="identifier">F</span></tt>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.accumulate.header"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.accumulate.header"></a><h6>
<a name="id1103256"></a> <a name="id559074"></a>
<a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.header">Header</a> <a href="accumulate.html#fusion.algorithms.iteration.metafunctions.accumulate.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>fold</title> <title>fold</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="../metafunctions.html" title="Metafunctions"> <link rel="prev" href="../metafunctions.html" title="Metafunctions">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.iteration.metafunctions.fold"></a><a href="fold.html" title="fold">fold</a></h5></div></div></div> <a name="fusion.algorithms.iteration.metafunctions.fold"></a><a href="fold.html" title="fold">fold</a></h5></div></div></div>
<a name="fusion.algorithms.iteration.metafunctions.fold.description"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.fold.description"></a><h6>
<a name="id1102111"></a> <a name="id557777"></a>
<a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.description">Description</a> <a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/fold.html" title="fold"><code class="computeroutput"><span class="identifier">fold</span></code></a>. Returns the result type of <a href="../functions/fold.html" title="fold"><tt class="computeroutput"><span class="identifier">fold</span></tt></a>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.fold.synopsis"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.fold.synopsis"></a><h6>
<a name="id1102153"></a> <a name="id557824"></a>
<a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.synopsis">Synopsis</a> <a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1102272"></a><p class="title"><b>Table<EFBFBD>1.35.<2E>Parameters</b></p> <a name="id557959"></a><p class="title"><b>Table<EFBFBD>1.35.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -61,7 +61,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -70,15 +70,15 @@
<td>The sequence to iterate</td> <td>The sequence to iterate</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">State</span></code></td> <td><tt class="computeroutput"><span class="identifier">State</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>The initial state for the first application of <td>The initial state for the first application of
<code class="computeroutput"><span class="identifier">F</span></code> <tt class="computeroutput"><span class="identifier">F</span></tt>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">F</span></code></td> <td><tt class="computeroutput"><span class="identifier">F</span></tt></td>
<td>A <td>A
model of binary <a href="../../concepts/poly.html" title=" Polymorphic Function model of binary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
@ -91,34 +91,34 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.iteration.metafunctions.fold.expression_semantics"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.fold.expression_semantics"></a><h6>
<a name="id1102392"></a> <a name="id558092"></a>
<a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.expression_semantics">Expression <a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="fold.html" title="fold"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">fold</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="fold.html" title="fold"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">fold</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">State</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: Any type <span class="bold"><b>Return type</b></span>: Any type
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the result of applying <span class="bold"><b>Semantics</b></span>: Returns the result of applying
<code class="computeroutput"><span class="identifier">fold</span></code> to a sequence of <tt class="computeroutput"><span class="identifier">fold</span></tt> to a sequence of
type <code class="computeroutput"><span class="identifier">Sequence</span></code>, with an type <tt class="computeroutput"><span class="identifier">Sequence</span></tt>, with an
initial state of type <code class="computeroutput"><span class="identifier">State</span></code> initial state of type <tt class="computeroutput"><span class="identifier">State</span></tt>
and binary <a href="../../concepts/poly.html" title=" Polymorphic Function and binary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> of type <code class="computeroutput"><span class="identifier">F</span></code>. Function Object</a> of type <tt class="computeroutput"><span class="identifier">F</span></tt>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.fold.complexity"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.fold.complexity"></a><h6>
<a name="id1102546"></a> <a name="id558269"></a>
<a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.complexity">Complexity</a> <a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, exactly <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> applications of <code class="computeroutput"><span class="identifier">F</span></code>. Linear, exactly <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> applications of <tt class="computeroutput"><span class="identifier">F</span></tt>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.fold.header"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.fold.header"></a><h6>
<a name="id1102626"></a> <a name="id558360"></a>
<a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.header">Header</a> <a href="fold.html#fusion.algorithms.iteration.metafunctions.fold.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>for_each</title> <title>for_each</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="accumulate.html" title="accumulate"> <link rel="prev" href="accumulate.html" title="accumulate">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.iteration.metafunctions.for_each"></a><a href="for_each.html" title="for_each">for_each</a></h5></div></div></div> <a name="fusion.algorithms.iteration.metafunctions.for_each"></a><a href="for_each.html" title="for_each">for_each</a></h5></div></div></div>
<p> <p>
A metafunction returning the result type of applying <a href="../functions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a> to a sequence. The A metafunction returning the result type of applying <a href="../functions/for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">for_each</span></tt></a> to a sequence. The
return type of <a href="../functions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a> is always <code class="computeroutput"><span class="keyword">void</span></code>. return type of <a href="../functions/for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">for_each</span></tt></a> is always <tt class="computeroutput"><span class="keyword">void</span></tt>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.for_each.description"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.for_each.description"></a><h6>
<a name="id1103410"></a> <a name="id559249"></a>
<a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.description">Description</a> <a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.description">Description</a>
</h6> </h6>
<a name="fusion.algorithms.iteration.metafunctions.for_each.synopsis"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.for_each.synopsis"></a><h6>
<a name="id1103434"></a> <a name="id559277"></a>
<a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.synopsis">Synopsis</a> <a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1103541"></a><p class="title"><b>Table<EFBFBD>1.37.<2E>Parameters</b></p> <a name="id559397"></a><p class="title"><b>Table<EFBFBD>1.37.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -71,7 +71,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">F</span></code></td> <td><tt class="computeroutput"><span class="identifier">F</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Operation's argument</td> <td>Operation's argument</td>
@ -80,32 +80,32 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.iteration.metafunctions.for_each.expression_semantics"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.for_each.expression_semantics"></a><h6>
<a name="id1103626"></a> <a name="id559494"></a>
<a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.expression_semantics">Expression <a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">for_each</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">for_each</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">void</span></code>. <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">void</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the return type of <span class="bold"><b>Semantics</b></span>: Returns the return type of
<a href="../functions/for_each.html" title="for_each"><code class="computeroutput"><span class="identifier">for_each</span></code></a> for a sequence of type <a href="../functions/for_each.html" title="for_each"><tt class="computeroutput"><span class="identifier">for_each</span></tt></a> for a sequence of type
<code class="computeroutput"><span class="identifier">Sequence</span></code> and a unary <tt class="computeroutput"><span class="identifier">Sequence</span></tt> and a unary
function object <code class="computeroutput"><span class="identifier">F</span></code>. The function object <tt class="computeroutput"><span class="identifier">F</span></tt>. The
return type is always <code class="computeroutput"><span class="keyword">void</span></code>. return type is always <tt class="computeroutput"><span class="keyword">void</span></tt>.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.for_each.complexity"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.for_each.complexity"></a><h6>
<a name="id1103777"></a> <a name="id559666"></a>
<a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.complexity">Complexity</a> <a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.iteration.metafunctions.for_each.header"></a><h6> <a name="fusion.algorithms.iteration.metafunctions.for_each.header"></a><h6>
<a name="id1103805"></a> <a name="id559698"></a>
<a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.header">Header</a> <a href="for_each.html#fusion.algorithms.iteration.metafunctions.for_each.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Query</title> <title>Query</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../algorithms.html" title="Algorithms"> <link rel="up" href="../algorithms.html" title="Algorithms">
<link rel="prev" href="iteration/metafunctions/for_each.html" title="for_each"> <link rel="prev" href="iteration/metafunctions/for_each.html" title="for_each">
@ -33,7 +33,7 @@
The query algorithms provide support for searching and analyzing sequences. The query algorithms provide support for searching and analyzing sequences.
</p> </p>
<a name="fusion.algorithms.query.header"></a><h4> <a name="fusion.algorithms.query.header"></a><h4>
<a name="id1103922"></a> <a name="id559831"></a>
<a href="query.html#fusion.algorithms.query.header">Header</a> <a href="query.html#fusion.algorithms.query.header">Header</a>
</h4> </h4>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Functions</title> <title>Functions</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../query.html" title="Query"> <link rel="up" href="../query.html" title="Query">
<link rel="prev" href="../query.html" title="Query"> <link rel="prev" href="../query.html" title="Query">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>all</title> <title>all</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="any.html" title="any"> <link rel="prev" href="any.html" title="any">
@ -26,18 +26,18 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.functions.all"></a><a href="all.html" title="all">all</a></h5></div></div></div> <a name="fusion.algorithms.query.functions.all"></a><a href="all.html" title="all">all</a></h5></div></div></div>
<a name="fusion.algorithms.query.functions.all.description"></a><h6> <a name="fusion.algorithms.query.functions.all.description"></a><h6>
<a name="id1105034"></a> <a name="id561092"></a>
<a href="all.html#fusion.algorithms.query.functions.all.description">Description</a> <a href="all.html#fusion.algorithms.query.functions.all.description">Description</a>
</h6> </h6>
<p> <p>
For a sequence <code class="computeroutput"><span class="identifier">seq</span></code> and For a sequence <tt class="computeroutput"><span class="identifier">seq</span></tt> and
unary function object <code class="computeroutput"><span class="identifier">f</span></code>, unary function object <tt class="computeroutput"><span class="identifier">f</span></tt>,
<code class="computeroutput"><span class="identifier">all</span></code> returns true if <tt class="computeroutput"><span class="identifier">all</span></tt> returns true if
<code class="computeroutput"><span class="identifier">f</span></code> returns true for every <tt class="computeroutput"><span class="identifier">f</span></tt> returns true for every
element of <code class="computeroutput"><span class="identifier">seq</span></code>. element of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.query.functions.all.synopsis"></a><h6> <a name="fusion.algorithms.query.functions.all.synopsis"></a><h6>
<a name="id1105108"></a> <a name="id561174"></a>
<a href="all.html#fusion.algorithms.query.functions.all.synopsis">Synopsis</a> <a href="all.html#fusion.algorithms.query.functions.all.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -45,11 +45,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/all.html" title="all"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">all</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">all</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/all.html" title="all"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">all</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">all</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1105276"></a><p class="title"><b>Table<EFBFBD>1.39.<2E>Parameters</b></p> <a name="id561366"></a><p class="title"><b>Table<EFBFBD>1.39.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -63,19 +63,19 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> is a valid expression, convertible Sequence</a>, <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> is a valid expression, convertible
to <code class="computeroutput"><span class="keyword">bool</span></code>, for every element to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for every element
<code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code> <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</td> </td>
<td>The sequence <td>The sequence
to search</td> to search</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">f</span></code></td> <td><tt class="computeroutput"><span class="identifier">f</span></tt></td>
<td>A <td>A
unary function object</td> unary function object</td>
<td>The search predicate</td> <td>The search predicate</td>
@ -84,38 +84,38 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.functions.all.expression_semantics"></a><h6> <a name="fusion.algorithms.query.functions.all.expression_semantics"></a><h6>
<a name="id1105409"></a> <a name="id561516"></a>
<a href="all.html#fusion.algorithms.query.functions.all.expression_semantics">Expression <a href="all.html#fusion.algorithms.query.functions.all.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="all.html" title="all"><code class="computeroutput"><span class="identifier">all</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> <a href="all.html" title="all"><tt class="computeroutput"><span class="identifier">all</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code> <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns true if and only <span class="bold"><b>Semantics</b></span>: Returns true if and only
if <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> if <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt>
evaluates to <code class="computeroutput"><span class="keyword">true</span></code> for every evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt> for every
element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>. element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.query.functions.all.complexity"></a><h6> <a name="fusion.algorithms.query.functions.all.complexity"></a><h6>
<a name="id1105551"></a> <a name="id561678"></a>
<a href="all.html#fusion.algorithms.query.functions.all.complexity">Complexity</a> <a href="all.html#fusion.algorithms.query.functions.all.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons. Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithms.query.functions.all.header"></a><h6> <a name="fusion.algorithms.query.functions.all.header"></a><h6>
<a name="id1105624"></a> <a name="id561761"></a>
<a href="all.html#fusion.algorithms.query.functions.all.header">Header</a> <a href="all.html#fusion.algorithms.query.functions.all.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">all</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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">all</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.query.functions.all.example"></a><h6> <a name="fusion.algorithms.query.functions.all.example"></a><h6>
<a name="id1105715"></a> <a name="id561865"></a>
<a href="all.html#fusion.algorithms.query.functions.all.example">Example</a> <a href="all.html#fusion.algorithms.query.functions.all.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -128,8 +128,8 @@
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<span class="identifier">assert</span><span class="special">(</span><a href="all.html" title="all"><code class="computeroutput"><span class="identifier">all</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">()));</span> <span class="identifier">assert</span><span class="special">(</span><a href="all.html" title="all"><tt class="computeroutput"><span class="identifier">all</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">()));</span>
<span class="identifier">assert</span><span class="special">(!</span><a href="all.html" title="all"><code class="computeroutput"><span class="identifier">all</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">odd</span><span class="special">()));</span> <span class="identifier">assert</span><span class="special">(!</span><a href="all.html" title="all"><tt class="computeroutput"><span class="identifier">all</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">odd</span><span class="special">()));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>any</title> <title>any</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="../functions.html" title="Functions"> <link rel="prev" href="../functions.html" title="Functions">
@ -26,18 +26,18 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.functions.any"></a><a href="any.html" title="any">any</a></h5></div></div></div> <a name="fusion.algorithms.query.functions.any"></a><a href="any.html" title="any">any</a></h5></div></div></div>
<a name="fusion.algorithms.query.functions.any.description"></a><h6> <a name="fusion.algorithms.query.functions.any.description"></a><h6>
<a name="id1104041"></a> <a name="id559966"></a>
<a href="any.html#fusion.algorithms.query.functions.any.description">Description</a> <a href="any.html#fusion.algorithms.query.functions.any.description">Description</a>
</h6> </h6>
<p> <p>
For a sequence <code class="computeroutput"><span class="identifier">seq</span></code> and For a sequence <tt class="computeroutput"><span class="identifier">seq</span></tt> and
unary function object <code class="computeroutput"><span class="identifier">f</span></code>, unary function object <tt class="computeroutput"><span class="identifier">f</span></tt>,
<code class="computeroutput"><span class="identifier">any</span></code> returns true if <tt class="computeroutput"><span class="identifier">any</span></tt> returns true if
<code class="computeroutput"><span class="identifier">f</span></code> returns true for at <tt class="computeroutput"><span class="identifier">f</span></tt> returns true for at
least one element of <code class="computeroutput"><span class="identifier">seq</span></code>. least one element of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.query.functions.any.synopsis"></a><h6> <a name="fusion.algorithms.query.functions.any.synopsis"></a><h6>
<a name="id1104114"></a> <a name="id560046"></a>
<a href="any.html#fusion.algorithms.query.functions.any.synopsis">Synopsis</a> <a href="any.html#fusion.algorithms.query.functions.any.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -45,11 +45,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/any.html" title="any"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">any</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">any</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/any.html" title="any"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">any</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">any</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1104282"></a><p class="title"><b>Table<EFBFBD>1.38.<2E>Parameters</b></p> <a name="id560239"></a><p class="title"><b>Table<EFBFBD>1.38.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -63,19 +63,19 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> must be a valid expression, convertible Sequence</a>, <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> must be a valid expression, convertible
to <code class="computeroutput"><span class="keyword">bool</span></code>, for each element to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for each element
<code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code> <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</td> </td>
<td>The sequence <td>The sequence
to search</td> to search</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">f</span></code></td> <td><tt class="computeroutput"><span class="identifier">f</span></tt></td>
<td>A <td>A
unary function object</td> unary function object</td>
<td>The search predicate</td> <td>The search predicate</td>
@ -84,38 +84,38 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.functions.any.expression_semantics"></a><h6> <a name="fusion.algorithms.query.functions.any.expression_semantics"></a><h6>
<a name="id1104415"></a> <a name="id560389"></a>
<a href="any.html#fusion.algorithms.query.functions.any.expression_semantics">Expression <a href="any.html#fusion.algorithms.query.functions.any.expression_semantics">Expression
semantics</a> semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="any.html" title="any"><code class="computeroutput"><span class="identifier">any</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> <a href="any.html" title="any"><tt class="computeroutput"><span class="identifier">any</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code> <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns true if and only <span class="bold"><b>Semantics</b></span>: Returns true if and only
if <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> if <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt>
evaluates to <code class="computeroutput"><span class="keyword">true</span></code> for some evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt> for some
element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>. element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.query.functions.any.complexity"></a><h6> <a name="fusion.algorithms.query.functions.any.complexity"></a><h6>
<a name="id1104557"></a> <a name="id560552"></a>
<a href="any.html#fusion.algorithms.query.functions.any.complexity">Complexity</a> <a href="any.html#fusion.algorithms.query.functions.any.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons. Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithms.query.functions.any.header"></a><h6> <a name="fusion.algorithms.query.functions.any.header"></a><h6>
<a name="id1104630"></a> <a name="id560634"></a>
<a href="any.html#fusion.algorithms.query.functions.any.header">Header</a> <a href="any.html#fusion.algorithms.query.functions.any.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">any</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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">any</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.query.functions.any.example"></a><h6> <a name="fusion.algorithms.query.functions.any.example"></a><h6>
<a name="id1104721"></a> <a name="id560739"></a>
<a href="any.html#fusion.algorithms.query.functions.any.example">Example</a> <a href="any.html#fusion.algorithms.query.functions.any.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -128,8 +128,8 @@
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<span class="identifier">assert</span><span class="special">(</span><a href="any.html" title="any"><code class="computeroutput"><span class="identifier">any</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">odd</span><span class="special">()));</span> <span class="identifier">assert</span><span class="special">(</span><a href="any.html" title="any"><tt class="computeroutput"><span class="identifier">any</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">odd</span><span class="special">()));</span>
<span class="identifier">assert</span><span class="special">(!</span><a href="any.html" title="any"><code class="computeroutput"><span class="identifier">any</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">4</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">()));</span> <span class="identifier">assert</span><span class="special">(!</span><a href="any.html" title="any"><tt class="computeroutput"><span class="identifier">any</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">4</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">()));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>count</title> <title>count</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="find_if.html" title="find_if"> <link rel="prev" href="find_if.html" title="find_if">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.functions.count"></a><a href="count.html" title="count">count</a></h5></div></div></div> <a name="fusion.algorithms.query.functions.count"></a><a href="count.html" title="count">count</a></h5></div></div></div>
<a name="fusion.algorithms.query.functions.count.description"></a><h6> <a name="fusion.algorithms.query.functions.count.description"></a><h6>
<a name="id1108928"></a> <a name="id565502"></a>
<a href="count.html#fusion.algorithms.query.functions.count.description">Description</a> <a href="count.html#fusion.algorithms.query.functions.count.description">Description</a>
</h6> </h6>
<p> <p>
Returns the number of elements of a given type within a sequence. Returns the number of elements of a given type within a sequence.
</p> </p>
<a name="fusion.algorithms.query.functions.count.synopsis"></a><h6> <a name="fusion.algorithms.query.functions.count.synopsis"></a><h6>
<a name="id1108957"></a> <a name="id565533"></a>
<a href="count.html#fusion.algorithms.query.functions.count.synopsis">Synopsis</a> <a href="count.html#fusion.algorithms.query.functions.count.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -41,11 +41,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">T</span> <span class="keyword">typename</span> <span class="identifier">T</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/count.html" title="count"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">count</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/count.html" title="count"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">count</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1109138"></a><p class="title"><b>Table<EFBFBD>1.43.<2E>Parameters</b></p> <a name="id565740"></a><p class="title"><b>Table<EFBFBD>1.43.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -59,20 +59,20 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>, <code class="computeroutput"><span class="identifier">e</span> <span class="special">==</span> <span class="identifier">t</span></code> Sequence</a>, <tt class="computeroutput"><span class="identifier">e</span> <span class="special">==</span> <span class="identifier">t</span></tt>
must be a valid expression, convertible to <code class="computeroutput"><span class="keyword">bool</span></code>, must be a valid expression, convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>,
for each element <code class="computeroutput"><span class="identifier">e</span></code> for each element <tt class="computeroutput"><span class="identifier">e</span></tt>
in <code class="computeroutput"><span class="identifier">seq</span></code> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</td> </td>
<td>The <td>The
sequence to search</td> sequence to search</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">T</span></code></td> <td><tt class="computeroutput"><span class="identifier">T</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>The type to count</td> <td>The type to count</td>
@ -81,42 +81,42 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.functions.count.expression_semantics"></a><h6> <a name="fusion.algorithms.query.functions.count.expression_semantics"></a><h6>
<a name="id1109269"></a> <a name="id565888"></a>
<a href="count.html#fusion.algorithms.query.functions.count.expression_semantics">Expression <a href="count.html#fusion.algorithms.query.functions.count.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="count.html" title="count"><code class="computeroutput"><span class="identifier">count</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span> <a href="count.html" title="count"><tt class="computeroutput"><span class="identifier">count</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">int</span></code> <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt>
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the number of elements <span class="bold"><b>Semantics</b></span>: Returns the number of elements
of type <code class="computeroutput"><span class="identifier">T</span></code> and equal to of type <tt class="computeroutput"><span class="identifier">T</span></tt> and equal to
<code class="computeroutput"><span class="identifier">t</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>. <tt class="computeroutput"><span class="identifier">t</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.query.functions.count.complexity"></a><h6> <a name="fusion.algorithms.query.functions.count.complexity"></a><h6>
<a name="id1109390"></a> <a name="id566024"></a>
<a href="count.html#fusion.algorithms.query.functions.count.complexity">Complexity</a> <a href="count.html#fusion.algorithms.query.functions.count.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons. Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithms.query.functions.count.header"></a><h6> <a name="fusion.algorithms.query.functions.count.header"></a><h6>
<a name="id1109462"></a> <a name="id566107"></a>
<a href="count.html#fusion.algorithms.query.functions.count.header">Header</a> <a href="count.html#fusion.algorithms.query.functions.count.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">count</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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">count</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.query.functions.count.example"></a><h6> <a name="fusion.algorithms.query.functions.count.example"></a><h6>
<a name="id1109554"></a> <a name="id566211"></a>
<a href="count.html#fusion.algorithms.query.functions.count.example">Example</a> <a href="count.html#fusion.algorithms.query.functions.count.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">,</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1.0</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">,</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1.0</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="count.html" title="count"><code class="computeroutput"><span class="identifier">count</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span><span class="number">2</span><span class="special">)</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="count.html" title="count"><tt class="computeroutput"><span class="identifier">count</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span><span class="number">2</span><span class="special">)</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>count_if</title> <title>count_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="count.html" title="count"> <link rel="prev" href="count.html" title="count">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.functions.count_if"></a><a href="count_if.html" title="count_if">count_if</a></h5></div></div></div> <a name="fusion.algorithms.query.functions.count_if"></a><a href="count_if.html" title="count_if">count_if</a></h5></div></div></div>
<a name="fusion.algorithms.query.functions.count_if.description"></a><h6> <a name="fusion.algorithms.query.functions.count_if.description"></a><h6>
<a name="id1109745"></a> <a name="id566427"></a>
<a href="count_if.html#fusion.algorithms.query.functions.count_if.description">Description</a> <a href="count_if.html#fusion.algorithms.query.functions.count_if.description">Description</a>
</h6> </h6>
<p> <p>
Returns the number of elements within a sequence with a type for which Returns the number of elements within a sequence with a type for which
a given unary function object evaluates to <code class="computeroutput"><span class="keyword">true</span></code>. a given unary function object evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt>.
</p> </p>
<a name="fusion.algorithms.query.functions.count_if.synopsis"></a><h6> <a name="fusion.algorithms.query.functions.count_if.synopsis"></a><h6>
<a name="id1109783"></a> <a name="id566469"></a>
<a href="count_if.html#fusion.algorithms.query.functions.count_if.synopsis">Synopsis</a> <a href="count_if.html#fusion.algorithms.query.functions.count_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -42,11 +42,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/count_if.html" title="count_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">count_if</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/count_if.html" title="count_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">count_if</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1109955"></a><p class="title"><b>Table<EFBFBD>1.44.<2E>Parameters</b></p> <a name="id566665"></a><p class="title"><b>Table<EFBFBD>1.44.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -60,19 +60,19 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> is a valid expression, convertible Sequence</a>, <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> is a valid expression, convertible
to <code class="computeroutput"><span class="keyword">bool</span></code>, for each element to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for each element
<code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code> <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</td> </td>
<td>The sequence <td>The sequence
to search</td> to search</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">f</span></code></td> <td><tt class="computeroutput"><span class="identifier">f</span></tt></td>
<td>A <td>A
unary function object</td> unary function object</td>
<td>The search predicate</td> <td>The search predicate</td>
@ -81,41 +81,41 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.functions.count_if.expression_semantics"></a><h6> <a name="fusion.algorithms.query.functions.count_if.expression_semantics"></a><h6>
<a name="id1110088"></a> <a name="id566813"></a>
<a href="count_if.html#fusion.algorithms.query.functions.count_if.expression_semantics">Expression <a href="count_if.html#fusion.algorithms.query.functions.count_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="count_if.html" title="count_if"><code class="computeroutput"><span class="identifier">count_if</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">)</span> <a href="count_if.html" title="count_if"><tt class="computeroutput"><span class="identifier">count_if</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">)</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">int</span></code> <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt>
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the number of elements <span class="bold"><b>Semantics</b></span>: Returns the number of elements
in <code class="computeroutput"><span class="identifier">seq</span></code> where <code class="computeroutput"><span class="identifier">f</span></code> evaluates to <code class="computeroutput"><span class="keyword">true</span></code>. in <tt class="computeroutput"><span class="identifier">seq</span></tt> where <tt class="computeroutput"><span class="identifier">f</span></tt> evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt>.
</p> </p>
<a name="fusion.algorithms.query.functions.count_if.complexity"></a><h6> <a name="fusion.algorithms.query.functions.count_if.complexity"></a><h6>
<a name="id1110208"></a> <a name="id566950"></a>
<a href="count_if.html#fusion.algorithms.query.functions.count_if.complexity">Complexity</a> <a href="count_if.html#fusion.algorithms.query.functions.count_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons. Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithms.query.functions.count_if.header"></a><h6> <a name="fusion.algorithms.query.functions.count_if.header"></a><h6>
<a name="id1110281"></a> <a name="id567032"></a>
<a href="count_if.html#fusion.algorithms.query.functions.count_if.header">Header</a> <a href="count_if.html#fusion.algorithms.query.functions.count_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">count_if</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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">count_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.query.functions.count_if.example"></a><h6> <a name="fusion.algorithms.query.functions.count_if.example"></a><h6>
<a name="id1110374"></a> <a name="id567138"></a>
<a href="count_if.html#fusion.algorithms.query.functions.count_if.example">Example</a> <a href="count_if.html#fusion.algorithms.query.functions.count_if.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/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">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</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">3</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/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">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</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">3</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="count_if.html" title="count_if"><code class="computeroutput"><span class="identifier">count_if</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span><span class="identifier">odd</span><span class="special">())</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="count_if.html" title="count_if"><tt class="computeroutput"><span class="identifier">count_if</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span><span class="identifier">odd</span><span class="special">())</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>find</title> <title>find</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="none.html" title="none"> <link rel="prev" href="none.html" title="none">
@ -26,31 +26,31 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.functions.find"></a><a href="find.html" title="find">find</a></h5></div></div></div> <a name="fusion.algorithms.query.functions.find"></a><a href="find.html" title="find">find</a></h5></div></div></div>
<a name="fusion.algorithms.query.functions.find.description"></a><h6> <a name="fusion.algorithms.query.functions.find.description"></a><h6>
<a name="id1107060"></a> <a name="id563388"></a>
<a href="find.html#fusion.algorithms.query.functions.find.description">Description</a> <a href="find.html#fusion.algorithms.query.functions.find.description">Description</a>
</h6> </h6>
<p> <p>
Finds the first element of a given type within a sequence. Finds the first element of a given type within a sequence.
</p> </p>
<a name="fusion.algorithms.query.functions.find.synopsis"></a><h6> <a name="fusion.algorithms.query.functions.find.synopsis"></a><h6>
<a name="id1107089"></a> <a name="id563420"></a>
<a href="find.html#fusion.algorithms.query.functions.find.synopsis">Synopsis</a> <a href="find.html#fusion.algorithms.query.functions.find.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <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">T</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">T</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="emphasis"><em>unspecified</em></span> <span class="identifier">find</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">find</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
<span class="keyword">template</span><span class="special">&lt;</span> <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">T</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">T</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="emphasis"><em>unspecified</em></span> <span class="identifier">find</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">find</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1107262"></a><p class="title"><b>Table<EFBFBD>1.41.<2E>Parameters</b></p> <a name="id563618"></a><p class="title"><b>Table<EFBFBD>1.41.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -64,7 +64,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -73,7 +73,7 @@
<td>The sequence to search</td> <td>The sequence to search</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">T</span></code></td> <td><tt class="computeroutput"><span class="identifier">T</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>The type to search for</td> <td>The type to search for</td>
@ -82,45 +82,45 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.functions.find.expression_semantics"></a><h6> <a name="fusion.algorithms.query.functions.find.expression_semantics"></a><h6>
<a name="id1107345"></a> <a name="id563712"></a>
<a href="find.html#fusion.algorithms.query.functions.find.expression_semantics">Expression <a href="find.html#fusion.algorithms.query.functions.find.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="find.html" title="find"><code class="computeroutput"><span class="identifier">find</span></code></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span> <a href="find.html" title="find"><tt class="computeroutput"><span class="identifier">find</span></tt></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of the same iterator <span class="bold"><b>Return type</b></span>: A model of the same iterator
category as the iterators of <code class="computeroutput"><span class="identifier">seq</span></code>. category as the iterators of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the <span class="bold"><b>Semantics</b></span>: Returns an iterator to the
first element of <code class="computeroutput"><span class="identifier">seq</span></code> first element of <tt class="computeroutput"><span class="identifier">seq</span></tt>
of type <code class="computeroutput"><span class="identifier">T</span></code>, or <code class="computeroutput"><a href="../../../sequences/intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span></code> if there is no such element. Equivalent of type <tt class="computeroutput"><span class="identifier">T</span></tt>, or <tt class="computeroutput"><a href="../../../sequences/intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span></tt> if there is no such element. Equivalent
to <code class="computeroutput"><a href="find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">find_if</span></code></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></code> to <tt class="computeroutput"><a href="find_if.html" title="find_if"><tt class="computeroutput"><span class="identifier">find_if</span></tt></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></tt>
</p> </p>
<a name="fusion.algorithms.query.functions.find.complexity"></a><h6> <a name="fusion.algorithms.query.functions.find.complexity"></a><h6>
<a name="id1107563"></a> <a name="id563958"></a>
<a href="find.html#fusion.algorithms.query.functions.find.complexity">Complexity</a> <a href="find.html#fusion.algorithms.query.functions.find.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons. Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithms.query.functions.find.header"></a><h6> <a name="fusion.algorithms.query.functions.find.header"></a><h6>
<a name="id1107636"></a> <a name="id564040"></a>
<a href="find.html#fusion.algorithms.query.functions.find.header">Header</a> <a href="find.html#fusion.algorithms.query.functions.find.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">find</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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">find</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.query.functions.find.example"></a><h6> <a name="fusion.algorithms.query.functions.find.example"></a><h6>
<a name="id1107727"></a> <a name="id564145"></a>
<a href="find.html#fusion.algorithms.query.functions.find.example">Example</a> <a href="find.html#fusion.algorithms.query.functions.find.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/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">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="char">'a'</span><span class="special">,</span><span class="char">'0'</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/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">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="char">'a'</span><span class="special">,</span><span class="char">'0'</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(*</span><a href="find.html" title="find"><code class="computeroutput"><span class="identifier">find</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <span class="char">'0'</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(*</span><a href="find.html" title="find"><tt class="computeroutput"><span class="identifier">find</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <span class="char">'0'</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="find.html" title="find"><code class="computeroutput"><span class="identifier">find</span></code></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="find.html" title="find"><tt class="computeroutput"><span class="identifier">find</span></tt></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>find_if</title> <title>find_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="find.html" title="find"> <link rel="prev" href="find.html" title="find">
@ -27,31 +27,31 @@
<a name="fusion.algorithms.query.functions.find_if"></a><a href="find_if.html" title="find_if">find_if</a></h5></div></div></div> <a name="fusion.algorithms.query.functions.find_if"></a><a href="find_if.html" title="find_if">find_if</a></h5></div></div></div>
<p> <p>
Finds the first element within a sequence with a type for which a given Finds the first element within a sequence with a type for which a given
MPL Lambda Expression evaluates to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>. MPL Lambda Expression evaluates to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>.
</p> </p>
<a name="fusion.algorithms.query.functions.find_if.description"></a><h6> <a name="fusion.algorithms.query.functions.find_if.description"></a><h6>
<a name="id1108010"></a> <a name="id564463"></a>
<a href="find_if.html#fusion.algorithms.query.functions.find_if.description">Description</a> <a href="find_if.html#fusion.algorithms.query.functions.find_if.description">Description</a>
</h6> </h6>
<a name="fusion.algorithms.query.functions.find_if.synopsis"></a><h6> <a name="fusion.algorithms.query.functions.find_if.synopsis"></a><h6>
<a name="id1108034"></a> <a name="id564490"></a>
<a href="find_if.html#fusion.algorithms.query.functions.find_if.synopsis">Synopsis</a> <a href="find_if.html#fusion.algorithms.query.functions.find_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <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">F</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">F</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="emphasis"><em>unspecified</em></span> <span class="identifier">find_if</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">find_if</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
<span class="keyword">template</span><span class="special">&lt;</span> <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">F</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">F</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="emphasis"><em>unspecified</em></span> <span class="identifier">find_if</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">find_if</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1108209"></a><p class="title"><b>Table<EFBFBD>1.42.<2E>Parameters</b></p> <a name="id564689"></a><p class="title"><b>Table<EFBFBD>1.42.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -65,7 +65,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -74,7 +74,7 @@
<td>The sequence to search</td> <td>The sequence to search</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">F</span></code></td> <td><tt class="computeroutput"><span class="identifier">F</span></tt></td>
<td>A <td>A
unary MPL Lambda Expression</td> unary MPL Lambda Expression</td>
<td>The search predicate</td> <td>The search predicate</td>
@ -83,46 +83,46 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.functions.find_if.expression_semantics"></a><h6> <a name="fusion.algorithms.query.functions.find_if.expression_semantics"></a><h6>
<a name="id1108292"></a> <a name="id564782"></a>
<a href="find_if.html#fusion.algorithms.query.functions.find_if.expression_semantics">Expression <a href="find_if.html#fusion.algorithms.query.functions.find_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">find_if</span></code></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span> <a href="find_if.html" title="find_if"><tt class="computeroutput"><span class="identifier">find_if</span></tt></a><span class="special">&lt;</span><span class="identifier">F</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: An iterator of the same <span class="bold"><b>Return type</b></span>: An iterator of the same
iterator category as the iterators of <code class="computeroutput"><span class="identifier">seq</span></code>. iterator category as the iterators of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the first element <span class="bold"><b>Semantics</b></span>: Returns the first element
of <code class="computeroutput"><span class="identifier">seq</span></code> for which MPL of <tt class="computeroutput"><span class="identifier">seq</span></tt> for which MPL
Lambda Expression <code class="computeroutput"><span class="identifier">F</span></code> evaluates Lambda Expression <tt class="computeroutput"><span class="identifier">F</span></tt> evaluates
to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>, or <code class="computeroutput"><a href="../../../sequences/intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span></code> to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>, or <tt class="computeroutput"><a href="../../../sequences/intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span></tt>
if there is no such element. if there is no such element.
</p> </p>
<a name="fusion.algorithms.query.functions.find_if.complexity"></a><h6> <a name="fusion.algorithms.query.functions.find_if.complexity"></a><h6>
<a name="id1108462"></a> <a name="id564975"></a>
<a href="find_if.html#fusion.algorithms.query.functions.find_if.complexity">Complexity</a> <a href="find_if.html#fusion.algorithms.query.functions.find_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons. Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithms.query.functions.find_if.header"></a><h6> <a name="fusion.algorithms.query.functions.find_if.header"></a><h6>
<a name="id1108535"></a> <a name="id565057"></a>
<a href="find_if.html#fusion.algorithms.query.functions.find_if.header">Header</a> <a href="find_if.html#fusion.algorithms.query.functions.find_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">find_if</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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">find_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.query.functions.find_if.example"></a><h6> <a name="fusion.algorithms.query.functions.find_if.example"></a><h6>
<a name="id1108628"></a> <a name="id565162"></a>
<a href="find_if.html#fusion.algorithms.query.functions.find_if.example">Example</a> <a href="find_if.html#fusion.algorithms.query.functions.find_if.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1.0</span><span class="special">,</span><span class="number">2</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1.0</span><span class="special">,</span><span class="number">2</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(*</span><a href="find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">find_if</span></code></a><span class="special">&lt;</span><span class="identifier">is_integral</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(*</span><a href="find_if.html" title="find_if"><tt class="computeroutput"><span class="identifier">find_if</span></tt></a><span class="special">&lt;</span><span class="identifier">is_integral</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">find_if</span></code></a><span class="special">&lt;</span><span class="identifier">is_class</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="find_if.html" title="find_if"><tt class="computeroutput"><span class="identifier">find_if</span></tt></a><span class="special">&lt;</span><span class="identifier">is_class</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>none</title> <title>none</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="all.html" title="all"> <link rel="prev" href="all.html" title="all">
@ -26,18 +26,18 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.functions.none"></a><a href="none.html" title="none">none</a></h5></div></div></div> <a name="fusion.algorithms.query.functions.none"></a><a href="none.html" title="none">none</a></h5></div></div></div>
<a name="fusion.algorithms.query.functions.none.description"></a><h6> <a name="fusion.algorithms.query.functions.none.description"></a><h6>
<a name="id1106028"></a> <a name="id562218"></a>
<a href="none.html#fusion.algorithms.query.functions.none.description">Description</a> <a href="none.html#fusion.algorithms.query.functions.none.description">Description</a>
</h6> </h6>
<p> <p>
For a sequence <code class="computeroutput"><span class="identifier">seq</span></code> and For a sequence <tt class="computeroutput"><span class="identifier">seq</span></tt> and
unary function object <code class="computeroutput"><span class="identifier">f</span></code>, unary function object <tt class="computeroutput"><span class="identifier">f</span></tt>,
<code class="computeroutput"><span class="identifier">none</span></code> returns true if <tt class="computeroutput"><span class="identifier">none</span></tt> returns true if
<code class="computeroutput"><span class="identifier">f</span></code> returns false for every <tt class="computeroutput"><span class="identifier">f</span></tt> returns false for every
element of <code class="computeroutput"><span class="identifier">seq</span></code>. element of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.query.functions.none.synopsis"></a><h6> <a name="fusion.algorithms.query.functions.none.synopsis"></a><h6>
<a name="id1106102"></a> <a name="id562300"></a>
<a href="none.html#fusion.algorithms.query.functions.none.synopsis">Synopsis</a> <a href="none.html#fusion.algorithms.query.functions.none.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -45,11 +45,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/none.html" title="none"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">none</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">none</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/none.html" title="none"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">none</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">none</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1106271"></a><p class="title"><b>Table<EFBFBD>1.40.<2E>Parameters</b></p> <a name="id562493"></a><p class="title"><b>Table<EFBFBD>1.40.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -63,19 +63,19 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>, <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> is a valid expression, convertible Sequence</a>, <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> is a valid expression, convertible
to <code class="computeroutput"><span class="keyword">bool</span></code>, for every element to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for every element
<code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code> <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</td> </td>
<td>The sequence <td>The sequence
to search</td> to search</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">f</span></code></td> <td><tt class="computeroutput"><span class="identifier">f</span></tt></td>
<td>A <td>A
unary function object</td> unary function object</td>
<td>The search predicate</td> <td>The search predicate</td>
@ -84,38 +84,38 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.functions.none.expression_semantics"></a><h6> <a name="fusion.algorithms.query.functions.none.expression_semantics"></a><h6>
<a name="id1106404"></a> <a name="id562643"></a>
<a href="none.html#fusion.algorithms.query.functions.none.expression_semantics">Expression <a href="none.html#fusion.algorithms.query.functions.none.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="none.html" title="none"><code class="computeroutput"><span class="identifier">none</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> <a href="none.html" title="none"><tt class="computeroutput"><span class="identifier">none</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code> <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns true if and only <span class="bold"><b>Semantics</b></span>: Returns true if and only
if <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> if <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt>
evaluates to <code class="computeroutput"><span class="keyword">false</span></code> for every evaluates to <tt class="computeroutput"><span class="keyword">false</span></tt> for every
element <code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code>. Result equivalent to <code class="computeroutput"><span class="special">!</span><span class="identifier">any</span><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">)</span></code>. element <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>. Result equivalent to <tt class="computeroutput"><span class="special">!</span><span class="identifier">any</span><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">)</span></tt>.
</p> </p>
<a name="fusion.algorithms.query.functions.none.complexity"></a><h6> <a name="fusion.algorithms.query.functions.none.complexity"></a><h6>
<a name="id1106582"></a> <a name="id562848"></a>
<a href="none.html#fusion.algorithms.query.functions.none.complexity">Complexity</a> <a href="none.html#fusion.algorithms.query.functions.none.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons. Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithms.query.functions.none.header"></a><h6> <a name="fusion.algorithms.query.functions.none.header"></a><h6>
<a name="id1106654"></a> <a name="id562930"></a>
<a href="none.html#fusion.algorithms.query.functions.none.header">Header</a> <a href="none.html#fusion.algorithms.query.functions.none.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">none</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">algorithm</span><span class="special">/</span><span class="identifier">query</span><span class="special">/</span><span class="identifier">none</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.query.functions.none.example"></a><h6> <a name="fusion.algorithms.query.functions.none.example"></a><h6>
<a name="id1106746"></a> <a name="id563035"></a>
<a href="none.html#fusion.algorithms.query.functions.none.example">Example</a> <a href="none.html#fusion.algorithms.query.functions.none.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -128,8 +128,8 @@
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<span class="identifier">assert</span><span class="special">(</span><a href="none.html" title="none"><code class="computeroutput"><span class="identifier">none</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">4</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">()));</span> <span class="identifier">assert</span><span class="special">(</span><a href="none.html" title="none"><tt class="computeroutput"><span class="identifier">none</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">4</span><span class="special">),</span> <span class="identifier">odd</span><span class="special">()));</span>
<span class="identifier">assert</span><span class="special">(!</span><a href="none.html" title="none"><code class="computeroutput"><span class="identifier">none</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">odd</span><span class="special">()));</span> <span class="identifier">assert</span><span class="special">(!</span><a href="none.html" title="none"><tt class="computeroutput"><span class="identifier">none</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">odd</span><span class="special">()));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Metafunctions</title> <title>Metafunctions</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../query.html" title="Query"> <link rel="up" href="../query.html" title="Query">
<link rel="prev" href="functions/count_if.html" title="count_if"> <link rel="prev" href="functions/count_if.html" title="count_if">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>all</title> <title>all</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="any.html" title="any"> <link rel="prev" href="any.html" title="any">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.metafunctions.all"></a><a href="all.html" title="all">all</a></h5></div></div></div> <a name="fusion.algorithms.query.metafunctions.all"></a><a href="all.html" title="all">all</a></h5></div></div></div>
<a name="fusion.algorithms.query.metafunctions.all.description"></a><h6> <a name="fusion.algorithms.query.metafunctions.all.description"></a><h6>
<a name="id1111119"></a> <a name="id567979"></a>
<a href="all.html#fusion.algorithms.query.metafunctions.all.description">Description</a> <a href="all.html#fusion.algorithms.query.metafunctions.all.description">Description</a>
</h6> </h6>
<p> <p>
A metafunction returning the result type of <a href="../functions/all.html" title="all"><code class="computeroutput"><span class="identifier">all</span></code></a>. A metafunction returning the result type of <a href="../functions/all.html" title="all"><tt class="computeroutput"><span class="identifier">all</span></tt></a>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.all.synopsis"></a><h6> <a name="fusion.algorithms.query.metafunctions.all.synopsis"></a><h6>
<a name="id1111161"></a> <a name="id568027"></a>
<a href="all.html#fusion.algorithms.query.metafunctions.all.synopsis">Synopsis</a> <a href="all.html#fusion.algorithms.query.metafunctions.all.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1111267"></a><p class="title"><b>Table<EFBFBD>1.46.<2E>Parameters</b></p> <a name="id568147"></a><p class="title"><b>Table<EFBFBD>1.46.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -61,7 +61,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -70,7 +70,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">F</span></code></td> <td><tt class="computeroutput"><span class="identifier">F</span></tt></td>
<td>A <td>A
model of unary <a href="../../concepts/poly.html" title=" Polymorphic Function model of unary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
@ -82,34 +82,34 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.metafunctions.all.expression_semantics"></a><h6> <a name="fusion.algorithms.query.metafunctions.all.expression_semantics"></a><h6>
<a name="id1111358"></a> <a name="id568248"></a>
<a href="all.html#fusion.algorithms.query.metafunctions.all.expression_semantics">Expression <a href="all.html#fusion.algorithms.query.metafunctions.all.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="all.html" title="all"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">all</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="all.html" title="all"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">all</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>. <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the return type of <span class="bold"><b>Semantics</b></span>: Returns the return type of
<a href="../functions/all.html" title="all"><code class="computeroutput"><span class="identifier">all</span></code></a> <a href="../functions/all.html" title="all"><tt class="computeroutput"><span class="identifier">all</span></tt></a>
given a sequence of type <code class="computeroutput"><span class="identifier">Sequence</span></code> given a sequence of type <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
and a unary <a href="../../concepts/poly.html" title=" Polymorphic Function and a unary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> of type <code class="computeroutput"><span class="identifier">F</span></code>. Function Object</a> of type <tt class="computeroutput"><span class="identifier">F</span></tt>.
The return type is always <code class="computeroutput"><span class="keyword">bool</span></code>. The return type is always <tt class="computeroutput"><span class="keyword">bool</span></tt>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.all.complexity"></a><h6> <a name="fusion.algorithms.query.metafunctions.all.complexity"></a><h6>
<a name="id1111516"></a> <a name="id568428"></a>
<a href="all.html#fusion.algorithms.query.metafunctions.all.complexity">Complexity</a> <a href="all.html#fusion.algorithms.query.metafunctions.all.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.all.header"></a><h6> <a name="fusion.algorithms.query.metafunctions.all.header"></a><h6>
<a name="id1111544"></a> <a name="id568459"></a>
<a href="all.html#fusion.algorithms.query.metafunctions.all.header">Header</a> <a href="all.html#fusion.algorithms.query.metafunctions.all.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>any</title> <title>any</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="../metafunctions.html" title="Metafunctions"> <link rel="prev" href="../metafunctions.html" title="Metafunctions">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.metafunctions.any"></a><a href="any.html" title="any">any</a></h5></div></div></div> <a name="fusion.algorithms.query.metafunctions.any"></a><a href="any.html" title="any">any</a></h5></div></div></div>
<a name="fusion.algorithms.query.metafunctions.any.description"></a><h6> <a name="fusion.algorithms.query.metafunctions.any.description"></a><h6>
<a name="id1110584"></a> <a name="id567375"></a>
<a href="any.html#fusion.algorithms.query.metafunctions.any.description">Description</a> <a href="any.html#fusion.algorithms.query.metafunctions.any.description">Description</a>
</h6> </h6>
<p> <p>
A metafunction returning the result type of <a href="../functions/any.html" title="any"><code class="computeroutput"><span class="identifier">any</span></code></a>. A metafunction returning the result type of <a href="../functions/any.html" title="any"><tt class="computeroutput"><span class="identifier">any</span></tt></a>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.any.synopsis"></a><h6> <a name="fusion.algorithms.query.metafunctions.any.synopsis"></a><h6>
<a name="id1110626"></a> <a name="id567422"></a>
<a href="any.html#fusion.algorithms.query.metafunctions.any.synopsis">Synopsis</a> <a href="any.html#fusion.algorithms.query.metafunctions.any.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1110732"></a><p class="title"><b>Table<EFBFBD>1.45.<2E>Parameters</b></p> <a name="id567542"></a><p class="title"><b>Table<EFBFBD>1.45.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -61,7 +61,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -70,7 +70,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">F</span></code></td> <td><tt class="computeroutput"><span class="identifier">F</span></tt></td>
<td>A <td>A
model of unary <a href="../../concepts/poly.html" title=" Polymorphic Function model of unary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
@ -82,34 +82,34 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.metafunctions.any.expression_semantics"></a><h6> <a name="fusion.algorithms.query.metafunctions.any.expression_semantics"></a><h6>
<a name="id1110823"></a> <a name="id567644"></a>
<a href="any.html#fusion.algorithms.query.metafunctions.any.expression_semantics">Expression <a href="any.html#fusion.algorithms.query.metafunctions.any.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="any.html" title="any"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">any</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="any.html" title="any"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">any</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>. <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the return type of <span class="bold"><b>Semantics</b></span>: Returns the return type of
<a href="../functions/any.html" title="any"><code class="computeroutput"><span class="identifier">any</span></code></a> <a href="../functions/any.html" title="any"><tt class="computeroutput"><span class="identifier">any</span></tt></a>
given a sequence of type <code class="computeroutput"><span class="identifier">Sequence</span></code> given a sequence of type <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
and a unary <a href="../../concepts/poly.html" title=" Polymorphic Function and a unary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> of type <code class="computeroutput"><span class="identifier">F</span></code>. Function Object</a> of type <tt class="computeroutput"><span class="identifier">F</span></tt>.
The return type is always <code class="computeroutput"><span class="keyword">bool</span></code>. The return type is always <tt class="computeroutput"><span class="keyword">bool</span></tt>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.any.complexity"></a><h6> <a name="fusion.algorithms.query.metafunctions.any.complexity"></a><h6>
<a name="id1110981"></a> <a name="id567824"></a>
<a href="any.html#fusion.algorithms.query.metafunctions.any.complexity">Complexity</a> <a href="any.html#fusion.algorithms.query.metafunctions.any.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.any.header"></a><h6> <a name="fusion.algorithms.query.metafunctions.any.header"></a><h6>
<a name="id1111009"></a> <a name="id567854"></a>
<a href="any.html#fusion.algorithms.query.metafunctions.any.header">Header</a> <a href="any.html#fusion.algorithms.query.metafunctions.any.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>count</title> <title>count</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="find_if.html" title="find_if"> <link rel="prev" href="find_if.html" title="find_if">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.metafunctions.count"></a><a href="count.html" title="count">count</a></h5></div></div></div> <a name="fusion.algorithms.query.metafunctions.count"></a><a href="count.html" title="count">count</a></h5></div></div></div>
<a name="fusion.algorithms.query.metafunctions.count.description"></a><h6> <a name="fusion.algorithms.query.metafunctions.count.description"></a><h6>
<a name="id1113359"></a> <a name="id570511"></a>
<a href="count.html#fusion.algorithms.query.metafunctions.count.description">Description</a> <a href="count.html#fusion.algorithms.query.metafunctions.count.description">Description</a>
</h6> </h6>
<p> <p>
A metafunction that returns the result type of <code class="computeroutput"><span class="identifier">count</span></code> A metafunction that returns the result type of <tt class="computeroutput"><span class="identifier">count</span></tt>
given the sequence and search types. given the sequence and search types.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.count.synopsis"></a><h6> <a name="fusion.algorithms.query.metafunctions.count.synopsis"></a><h6>
<a name="id1113397"></a> <a name="id570554"></a>
<a href="count.html#fusion.algorithms.query.metafunctions.count.synopsis">Synopsis</a> <a href="count.html#fusion.algorithms.query.metafunctions.count.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1113503"></a><p class="title"><b>Table<EFBFBD>1.50.<2E>Parameters</b></p> <a name="id570674"></a><p class="title"><b>Table<EFBFBD>1.50.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -63,7 +63,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -72,7 +72,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">T</span></code></td> <td><tt class="computeroutput"><span class="identifier">T</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Operation's argument</td> <td>Operation's argument</td>
@ -81,30 +81,30 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.metafunctions.count.expression_semantics"></a><h6> <a name="fusion.algorithms.query.metafunctions.count.expression_semantics"></a><h6>
<a name="id1113589"></a> <a name="id570769"></a>
<a href="count.html#fusion.algorithms.query.metafunctions.count.expression_semantics">Expression <a href="count.html#fusion.algorithms.query.metafunctions.count.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="count.html" title="count"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count</span></code></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="count.html" title="count"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count</span></tt></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">int</span></code>. <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the return type of <span class="bold"><b>Semantics</b></span>: Returns the return type of
<a href="../functions/count.html" title="count"><code class="computeroutput"><span class="identifier">count</span></code></a>. The return type is always <a href="../functions/count.html" title="count"><tt class="computeroutput"><span class="identifier">count</span></tt></a>. The return type is always
<code class="computeroutput"><span class="keyword">int</span></code>. <tt class="computeroutput"><span class="keyword">int</span></tt>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.count.complexity"></a><h6> <a name="fusion.algorithms.query.metafunctions.count.complexity"></a><h6>
<a name="id1113710"></a> <a name="id570908"></a>
<a href="count.html#fusion.algorithms.query.metafunctions.count.complexity">Complexity</a> <a href="count.html#fusion.algorithms.query.metafunctions.count.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.count.header"></a><h6> <a name="fusion.algorithms.query.metafunctions.count.header"></a><h6>
<a name="id1113738"></a> <a name="id570938"></a>
<a href="count.html#fusion.algorithms.query.metafunctions.count.header">Header</a> <a href="count.html#fusion.algorithms.query.metafunctions.count.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>count_if</title> <title>count_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="count.html" title="count"> <link rel="prev" href="count.html" title="count">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.metafunctions.count_if"></a><a href="count_if.html" title="count_if">count_if</a></h5></div></div></div> <a name="fusion.algorithms.query.metafunctions.count_if"></a><a href="count_if.html" title="count_if">count_if</a></h5></div></div></div>
<a name="fusion.algorithms.query.metafunctions.count_if.description"></a><h6> <a name="fusion.algorithms.query.metafunctions.count_if.description"></a><h6>
<a name="id1113849"></a> <a name="id571064"></a>
<a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.description">Description</a> <a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.description">Description</a>
</h6> </h6>
<p> <p>
A metafunction that returns the result type of <code class="computeroutput"><span class="identifier">count_if</span></code> A metafunction that returns the result type of <tt class="computeroutput"><span class="identifier">count_if</span></tt>
given the sequence and predicate types. given the sequence and predicate types.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.count_if.synopsis"></a><h6> <a name="fusion.algorithms.query.metafunctions.count_if.synopsis"></a><h6>
<a name="id1113887"></a> <a name="id571106"></a>
<a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.synopsis">Synopsis</a> <a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1113993"></a><p class="title"><b>Table<EFBFBD>1.51.<2E>Parameters</b></p> <a name="id571227"></a><p class="title"><b>Table<EFBFBD>1.51.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -71,7 +71,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Pred</span></code></td> <td><tt class="computeroutput"><span class="identifier">Pred</span></tt></td>
<td>A <td>A
unary function object</td> unary function object</td>
<td>Operation's argument</td> <td>Operation's argument</td>
@ -80,30 +80,30 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.metafunctions.count_if.expression_semantics"></a><h6> <a name="fusion.algorithms.query.metafunctions.count_if.expression_semantics"></a><h6>
<a name="id1114080"></a> <a name="id571322"></a>
<a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.expression_semantics">Expression <a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="count_if.html" title="count_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="count_if.html" title="count_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">count_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">int</span></code>. <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the return type of <span class="bold"><b>Semantics</b></span>: Returns the return type of
<a href="../functions/count_if.html" title="count_if"><code class="computeroutput"><span class="identifier">count_if</span></code></a>. The return type is <a href="../functions/count_if.html" title="count_if"><tt class="computeroutput"><span class="identifier">count_if</span></tt></a>. The return type is
always <code class="computeroutput"><span class="keyword">int</span></code>. always <tt class="computeroutput"><span class="keyword">int</span></tt>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.count_if.complexity"></a><h6> <a name="fusion.algorithms.query.metafunctions.count_if.complexity"></a><h6>
<a name="id1114211"></a> <a name="id571473"></a>
<a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.complexity">Complexity</a> <a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.count_if.header"></a><h6> <a name="fusion.algorithms.query.metafunctions.count_if.header"></a><h6>
<a name="id1114239"></a> <a name="id571504"></a>
<a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.header">Header</a> <a href="count_if.html#fusion.algorithms.query.metafunctions.count_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>find</title> <title>find</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="none.html" title="none"> <link rel="prev" href="none.html" title="none">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.metafunctions.find"></a><a href="find.html" title="find">find</a></h5></div></div></div> <a name="fusion.algorithms.query.metafunctions.find"></a><a href="find.html" title="find">find</a></h5></div></div></div>
<a name="fusion.algorithms.query.metafunctions.find.description"></a><h6> <a name="fusion.algorithms.query.metafunctions.find.description"></a><h6>
<a name="id1112193"></a> <a name="id569192"></a>
<a href="find.html#fusion.algorithms.query.metafunctions.find.description">Description</a> <a href="find.html#fusion.algorithms.query.metafunctions.find.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <code class="computeroutput"><span class="identifier">find</span></code>, Returns the result type of <tt class="computeroutput"><span class="identifier">find</span></tt>,
given the sequence and search types. given the sequence and search types.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.find.synopsis"></a><h6> <a name="fusion.algorithms.query.metafunctions.find.synopsis"></a><h6>
<a name="id1112230"></a> <a name="id569234"></a>
<a href="find.html#fusion.algorithms.query.metafunctions.find.synopsis">Synopsis</a> <a href="find.html#fusion.algorithms.query.metafunctions.find.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1112333"></a><p class="title"><b>Table<EFBFBD>1.48.<2E>Parameters</b></p> <a name="id569351"></a><p class="title"><b>Table<EFBFBD>1.48.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>Model <td>Model
of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -71,7 +71,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">T</span></code></td> <td><tt class="computeroutput"><span class="identifier">T</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Operation's argument</td> <td>Operation's argument</td>
@ -80,31 +80,31 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.metafunctions.find.expression_semantics"></a><h6> <a name="fusion.algorithms.query.metafunctions.find.expression_semantics"></a><h6>
<a name="id1112417"></a> <a name="id569445"></a>
<a href="find.html#fusion.algorithms.query.metafunctions.find.expression_semantics">Expression <a href="find.html#fusion.algorithms.query.metafunctions.find.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="find.html" title="find"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">find</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="find.html" title="find"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">find</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of the same iterator <span class="bold"><b>Return type</b></span>: A model of the same iterator
category as the iterators of <code class="computeroutput"><span class="identifier">Sequence</span></code>. category as the iterators of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the <span class="bold"><b>Semantics</b></span>: Returns an iterator to the
first element of type <code class="computeroutput"><span class="identifier">T</span></code> first element of type <tt class="computeroutput"><span class="identifier">T</span></tt>
in <code class="computeroutput"><span class="identifier">Sequence</span></code>, or <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/end.html" title="end"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></code> if there is no such element. in <tt class="computeroutput"><span class="identifier">Sequence</span></tt>, or <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/end.html" title="end"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></tt> if there is no such element.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.find.complexity"></a><h6> <a name="fusion.algorithms.query.metafunctions.find.complexity"></a><h6>
<a name="id1112589"></a> <a name="id569641"></a>
<a href="find.html#fusion.algorithms.query.metafunctions.find.complexity">Complexity</a> <a href="find.html#fusion.algorithms.query.metafunctions.find.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear, at most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons. Linear, at most <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.find.header"></a><h6> <a name="fusion.algorithms.query.metafunctions.find.header"></a><h6>
<a name="id1112662"></a> <a name="id569723"></a>
<a href="find.html#fusion.algorithms.query.metafunctions.find.header">Header</a> <a href="find.html#fusion.algorithms.query.metafunctions.find.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>find_if</title> <title>find_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="find.html" title="find"> <link rel="prev" href="find.html" title="find">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.metafunctions.find_if"></a><a href="find_if.html" title="find_if">find_if</a></h5></div></div></div> <a name="fusion.algorithms.query.metafunctions.find_if"></a><a href="find_if.html" title="find_if">find_if</a></h5></div></div></div>
<a name="fusion.algorithms.query.metafunctions.find_if.description"></a><h6> <a name="fusion.algorithms.query.metafunctions.find_if.description"></a><h6>
<a name="id1112774"></a> <a name="id569851"></a>
<a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.description">Description</a> <a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <code class="computeroutput"><span class="identifier">find_if</span></code> Returns the result type of <tt class="computeroutput"><span class="identifier">find_if</span></tt>
given the sequence and predicate types. given the sequence and predicate types.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.find_if.synopsis"></a><h6> <a name="fusion.algorithms.query.metafunctions.find_if.synopsis"></a><h6>
<a name="id1112812"></a> <a name="id569893"></a>
<a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.synopsis">Synopsis</a> <a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1112917"></a><p class="title"><b>Table<EFBFBD>1.49.<2E>Parameters</b></p> <a name="id570011"></a><p class="title"><b>Table<EFBFBD>1.49.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -71,7 +71,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Pred</span></code></td> <td><tt class="computeroutput"><span class="identifier">Pred</span></tt></td>
<td>A <td>A
model of MPL Lambda Expression</td> model of MPL Lambda Expression</td>
<td>Operation's arguments</td> <td>Operation's arguments</td>
@ -80,32 +80,32 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.metafunctions.find_if.expression_semantics"></a><h6> <a name="fusion.algorithms.query.metafunctions.find_if.expression_semantics"></a><h6>
<a name="id1113003"></a> <a name="id570105"></a>
<a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.expression_semantics">Expression <a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="find_if.html" title="find_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">find_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="find_if.html" title="find_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">find_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of the same iterator <span class="bold"><b>Return type</b></span>: A model of the same iterator
category as the iterators of <code class="computeroutput"><span class="identifier">Sequence</span></code>. category as the iterators of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the <span class="bold"><b>Semantics</b></span>: Returns an iterator to the
first element in <code class="computeroutput"><span class="identifier">Sequence</span></code> first element in <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
for which <code class="computeroutput"><span class="identifier">Pred</span></code> evaluates for which <tt class="computeroutput"><span class="identifier">Pred</span></tt> evaluates
to true. Returns <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/end.html" title="end"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></code> if there is no such element. to true. Returns <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/end.html" title="end"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span></tt> if there is no such element.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.find_if.complexity"></a><h6> <a name="fusion.algorithms.query.metafunctions.find_if.complexity"></a><h6>
<a name="id1113176"></a> <a name="id570303"></a>
<a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.complexity">Complexity</a> <a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Linear. At most <code class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></code> comparisons. Linear. At most <tt class="computeroutput"><a href="../../../sequences/intrinsics/metafunctions/size.html" title="size"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">value</span></tt> comparisons.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.find_if.header"></a><h6> <a name="fusion.algorithms.query.metafunctions.find_if.header"></a><h6>
<a name="id1113249"></a> <a name="id570386"></a>
<a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.header">Header</a> <a href="find_if.html#fusion.algorithms.query.metafunctions.find_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>none</title> <title>none</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="all.html" title="all"> <link rel="prev" href="all.html" title="all">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.query.metafunctions.none"></a><a href="none.html" title="none">none</a></h5></div></div></div> <a name="fusion.algorithms.query.metafunctions.none"></a><a href="none.html" title="none">none</a></h5></div></div></div>
<a name="fusion.algorithms.query.metafunctions.none.description"></a><h6> <a name="fusion.algorithms.query.metafunctions.none.description"></a><h6>
<a name="id1111654"></a> <a name="id568583"></a>
<a href="none.html#fusion.algorithms.query.metafunctions.none.description">Description</a> <a href="none.html#fusion.algorithms.query.metafunctions.none.description">Description</a>
</h6> </h6>
<p> <p>
A metafunction returning the result type of <a href="../functions/none.html" title="none"><code class="computeroutput"><span class="identifier">none</span></code></a>. A metafunction returning the result type of <a href="../functions/none.html" title="none"><tt class="computeroutput"><span class="identifier">none</span></tt></a>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.none.synopsis"></a><h6> <a name="fusion.algorithms.query.metafunctions.none.synopsis"></a><h6>
<a name="id1111697"></a> <a name="id568632"></a>
<a href="none.html#fusion.algorithms.query.metafunctions.none.synopsis">Synopsis</a> <a href="none.html#fusion.algorithms.query.metafunctions.none.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1111803"></a><p class="title"><b>Table<EFBFBD>1.47.<2E>Parameters</b></p> <a name="id568752"></a><p class="title"><b>Table<EFBFBD>1.47.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -61,7 +61,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -70,7 +70,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">F</span></code></td> <td><tt class="computeroutput"><span class="identifier">F</span></tt></td>
<td>A <td>A
model of unary <a href="../../concepts/poly.html" title=" Polymorphic Function model of unary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
@ -82,34 +82,34 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.query.metafunctions.none.expression_semantics"></a><h6> <a name="fusion.algorithms.query.metafunctions.none.expression_semantics"></a><h6>
<a name="id1111893"></a> <a name="id568854"></a>
<a href="none.html#fusion.algorithms.query.metafunctions.none.expression_semantics">Expression <a href="none.html#fusion.algorithms.query.metafunctions.none.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="none.html" title="none"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">none</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="none.html" title="none"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">none</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>. <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the return type of <span class="bold"><b>Semantics</b></span>: Returns the return type of
<a href="../functions/none.html" title="none"><code class="computeroutput"><span class="identifier">none</span></code></a> given a sequence of type <a href="../functions/none.html" title="none"><tt class="computeroutput"><span class="identifier">none</span></tt></a> given a sequence of type
<code class="computeroutput"><span class="identifier">Sequence</span></code> and a unary <tt class="computeroutput"><span class="identifier">Sequence</span></tt> and a unary
<a href="../../concepts/poly.html" title=" Polymorphic Function <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Function Object">Polymorphic Function
Object</a> of type <code class="computeroutput"><span class="identifier">F</span></code>. Object</a> of type <tt class="computeroutput"><span class="identifier">F</span></tt>.
The return type is always <code class="computeroutput"><span class="keyword">bool</span></code>. The return type is always <tt class="computeroutput"><span class="keyword">bool</span></tt>.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.none.complexity"></a><h6> <a name="fusion.algorithms.query.metafunctions.none.complexity"></a><h6>
<a name="id1112052"></a> <a name="id569034"></a>
<a href="none.html#fusion.algorithms.query.metafunctions.none.complexity">Complexity</a> <a href="none.html#fusion.algorithms.query.metafunctions.none.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.query.metafunctions.none.header"></a><h6> <a name="fusion.algorithms.query.metafunctions.none.header"></a><h6>
<a name="id1112080"></a> <a name="id569064"></a>
<a href="none.html#fusion.algorithms.query.metafunctions.none.header">Header</a> <a href="none.html#fusion.algorithms.query.metafunctions.none.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Transformation</title> <title>Transformation</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../algorithms.html" title="Algorithms"> <link rel="up" href="../algorithms.html" title="Algorithms">
<link rel="prev" href="query/metafunctions/count_if.html" title="count_if"> <link rel="prev" href="query/metafunctions/count_if.html" title="count_if">
@ -39,14 +39,14 @@
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../images/note.png"></td> <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../images/note.png"></td>
<th align="left">Note</th> <th align="left">Note</th>
</tr> </tr>
<tr><td align="left" valign="top"><p> <tr><td colspan="2" align="left" valign="top"><p>
As the transformation algorithms return views onto their input arguments, As the transformation algorithms return views onto their input arguments,
it is important that the lifetime of the input arguments is greater than it is important that the lifetime of the input arguments is greater than
the period during which you wish to use the results. the period during which you wish to use the results.
</p></td></tr> </p></td></tr>
</table></div> </table></div>
<a name="fusion.algorithms.transformation.header"></a><h4> <a name="fusion.algorithms.transformation.header"></a><h4>
<a name="id1114371"></a> <a name="id571652"></a>
<a href="transformation.html#fusion.algorithms.transformation.header">Header</a> <a href="transformation.html#fusion.algorithms.transformation.header">Header</a>
</h4> </h4>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Functions</title> <title>Functions</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../transformation.html" title="Transformation"> <link rel="up" href="../transformation.html" title="Transformation">
<link rel="prev" href="../transformation.html" title="Transformation"> <link rel="prev" href="../transformation.html" title="Transformation">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>clear</title> <title>clear</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="reverse.html" title="reverse"> <link rel="prev" href="reverse.html" title="reverse">
@ -26,24 +26,24 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.clear"></a><a href="clear.html" title="clear">clear</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.clear"></a><a href="clear.html" title="clear">clear</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.clear.description"></a><h6> <a name="fusion.algorithms.transformation.functions.clear.description"></a><h6>
<a name="id1139225"></a> <a name="id580001"></a>
<a href="clear.html#fusion.algorithms.transformation.functions.clear.description">Description</a> <a href="clear.html#fusion.algorithms.transformation.functions.clear.description">Description</a>
</h6> </h6>
<p> <p>
<a href="clear.html" title="clear"><code class="computeroutput"><span class="identifier">clear</span></code></a> returns an empty sequence. <a href="clear.html" title="clear"><tt class="computeroutput"><span class="identifier">clear</span></tt></a> returns an empty sequence.
</p> </p>
<a name="fusion.algorithms.transformation.functions.clear.synposis"></a><h6> <a name="fusion.algorithms.transformation.functions.clear.synposis"></a><h6>
<a name="id1139268"></a> <a name="id580049"></a>
<a href="clear.html#fusion.algorithms.transformation.functions.clear.synposis">Synposis</a> <a href="clear.html#fusion.algorithms.transformation.functions.clear.synposis">Synposis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/clear.html" title="clear"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">clear</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">clear</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/clear.html" title="clear"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">clear</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">clear</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1139405"></a><p class="title"><b>Table<EFBFBD>1.61.<2E>Parameters</b></p> <a name="id580205"></a><p class="title"><b>Table<EFBFBD>1.61.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -56,7 +56,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -67,42 +67,42 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.clear.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.clear.expression_semantics"></a><h6>
<a name="id1139472"></a> <a name="id580281"></a>
<a href="clear.html#fusion.algorithms.transformation.functions.clear.expression_semantics">Expression <a href="clear.html#fusion.algorithms.transformation.functions.clear.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="clear.html" title="clear"><code class="computeroutput"><span class="identifier">clear</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span> <a href="clear.html" title="clear"><tt class="computeroutput"><span class="identifier">clear</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Expression Semantics</strong></span>: Returns a sequence <span class="bold"><b>Expression Semantics</b></span>: Returns a sequence
with no elements. with no elements.
</p> </p>
<a name="fusion.algorithms.transformation.functions.clear.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.clear.complexity"></a><h6>
<a name="id1139557"></a> <a name="id580377"></a>
<a href="clear.html#fusion.algorithms.transformation.functions.clear.complexity">Complexity</a> <a href="clear.html#fusion.algorithms.transformation.functions.clear.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.functions.clear.header"></a><h6> <a name="fusion.algorithms.transformation.functions.clear.header"></a><h6>
<a name="id1139585"></a> <a name="id580408"></a>
<a href="clear.html#fusion.algorithms.transformation.functions.clear.header">Header</a> <a href="clear.html#fusion.algorithms.transformation.functions.clear.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">clear</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">clear</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.clear.example"></a><h6> <a name="fusion.algorithms.transformation.functions.clear.example"></a><h6>
<a name="id1139678"></a> <a name="id580514"></a>
<a href="clear.html#fusion.algorithms.transformation.functions.clear.example">Example</a> <a href="clear.html#fusion.algorithms.transformation.functions.clear.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><a href="clear.html" title="clear"><code class="computeroutput"><span class="identifier">clear</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">());</span> <span class="identifier">assert</span><span class="special">(</span><a href="clear.html" title="clear"><tt class="computeroutput"><span class="identifier">clear</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">());</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>erase</title> <title>erase</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="clear.html" title="clear"> <link rel="prev" href="clear.html" title="clear">
@ -26,7 +26,7 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.erase"></a><a href="erase.html" title="erase">erase</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.erase"></a><a href="erase.html" title="erase">erase</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.erase.description"></a><h6> <a name="fusion.algorithms.transformation.functions.erase.description"></a><h6>
<a name="id1139824"></a> <a name="id580678"></a>
<a href="erase.html#fusion.algorithms.transformation.functions.erase.description">Description</a> <a href="erase.html#fusion.algorithms.transformation.functions.erase.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
those at a specified iterator, or between two iterators. those at a specified iterator, or between two iterators.
</p> </p>
<a name="fusion.algorithms.transformation.functions.erase.synposis"></a><h6> <a name="fusion.algorithms.transformation.functions.erase.synposis"></a><h6>
<a name="id1139854"></a> <a name="id580712"></a>
<a href="erase.html#fusion.algorithms.transformation.functions.erase.synposis">Synposis</a> <a href="erase.html#fusion.algorithms.transformation.functions.erase.synposis">Synposis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -42,7 +42,7 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">First</span> <span class="keyword">typename</span> <span class="identifier">First</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/erase.html" title="erase"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">First</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">erase</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/erase.html" title="erase"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">First</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">erase</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">First</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">it1</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">First</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">it1</span><span class="special">);</span>
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
@ -50,11 +50,11 @@
<span class="keyword">typename</span> <span class="identifier">First</span><span class="special">,</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="keyword">typename</span> <span class="identifier">Last</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/erase.html" title="erase"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">First</span><span class="special">,</span> <span class="identifier">Last</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">erase</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/erase.html" title="erase"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">First</span><span class="special">,</span> <span class="identifier">Last</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">erase</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">First</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">it1</span><span class="special">,</span> <span class="identifier">Last</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">it2</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">First</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">it1</span><span class="special">,</span> <span class="identifier">Last</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">it2</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1140260"></a><p class="title"><b>Table<EFBFBD>1.62.<2E>Parameters</b></p> <a name="id581173"></a><p class="title"><b>Table<EFBFBD>1.62.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -68,7 +68,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -77,82 +77,82 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">it1</span></code></td> <td><tt class="computeroutput"><span class="identifier">it1</span></tt></td>
<td>A <td>A
model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
Iterator</a> Iterator</a>
</td> </td>
<td>Iterator into <code class="computeroutput"><span class="identifier">seq</span></code> <td>Iterator into <tt class="computeroutput"><span class="identifier">seq</span></tt>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">it2</span></code></td> <td><tt class="computeroutput"><span class="identifier">it2</span></tt></td>
<td>A <td>A
model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
Iterator</a> Iterator</a>
</td> </td>
<td>Iterator into <code class="computeroutput"><span class="identifier">seq</span></code> <td>Iterator into <tt class="computeroutput"><span class="identifier">seq</span></tt>
after <code class="computeroutput"><span class="identifier">it1</span></code> after <tt class="computeroutput"><span class="identifier">it1</span></tt>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.erase.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.erase.expression_semantics"></a><h6>
<a name="id1140401"></a> <a name="id581331"></a>
<a href="erase.html#fusion.algorithms.transformation.functions.erase.expression_semantics">Expression <a href="erase.html#fusion.algorithms.transformation.functions.erase.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">erase</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">pos</span><span class="special">);</span> <a href="erase.html" title="erase"><tt class="computeroutput"><span class="identifier">erase</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">pos</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing <span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing
all the elements of <code class="computeroutput"><span class="identifier">seq</span></code> all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>
except the element at <code class="computeroutput"><span class="identifier">pos</span></code>. except the element at <tt class="computeroutput"><span class="identifier">pos</span></tt>.
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
<a href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">erase</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">);</span> <a href="erase.html" title="erase"><tt class="computeroutput"><span class="identifier">erase</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, with <span class="bold"><b>Semantics</b></span>: Returns a new sequence, with
all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>,
in their original order, except those in the range [<code class="computeroutput"><span class="identifier">first</span></code>,<code class="computeroutput"><span class="identifier">last</span></code>). in their original order, except those in the range [<tt class="computeroutput"><span class="identifier">first</span></tt>,<tt class="computeroutput"><span class="identifier">last</span></tt>).
</p> </p>
<a name="fusion.algorithms.transformation.functions.erase.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.erase.complexity"></a><h6>
<a name="id1140621"></a> <a name="id581580"></a>
<a href="erase.html#fusion.algorithms.transformation.functions.erase.complexity">Complexity</a> <a href="erase.html#fusion.algorithms.transformation.functions.erase.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.erase.header"></a><h6> <a name="fusion.algorithms.transformation.functions.erase.header"></a><h6>
<a name="id1140649"></a> <a name="id581612"></a>
<a href="erase.html#fusion.algorithms.transformation.functions.erase.header">Header</a> <a href="erase.html#fusion.algorithms.transformation.functions.erase.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">erase</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">erase</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.erase.example"></a><h6> <a name="fusion.algorithms.transformation.functions.erase.example"></a><h6>
<a name="id1140742"></a> <a name="id581718"></a>
<a href="erase.html#fusion.algorithms.transformation.functions.erase.example">Example</a> <a href="erase.html#fusion.algorithms.transformation.functions.erase.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/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">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2.0</span><span class="special">,</span> <span class="char">'c'</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/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">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2.0</span><span class="special">,</span> <span class="char">'c'</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">erase</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'c'</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="erase.html" title="erase"><tt class="computeroutput"><span class="identifier">erase</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'c'</span><span class="special">));</span>
<span class="identifier">assert</span><span class="special">(</span><a href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">erase</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)),</span> <a href="../../../sequences/intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="erase.html" title="erase"><tt class="computeroutput"><span class="identifier">erase</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)),</span> <a href="../../../sequences/intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>erase_key</title> <title>erase_key</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="erase.html" title="erase"> <link rel="prev" href="erase.html" title="erase">
@ -26,20 +26,20 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.erase_key"></a><a href="erase_key.html" title="erase_key">erase_key</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.erase_key"></a><a href="erase_key.html" title="erase_key">erase_key</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.erase_key.description"></a><h6> <a name="fusion.algorithms.transformation.functions.erase_key.description"></a><h6>
<a name="id1141147"></a> <a name="id582175"></a>
<a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.description">Description</a> <a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.description">Description</a>
</h6> </h6>
<p> <p>
For an <a href="../../../sequences/concepts/associative_sequence.html" title="Associative For an <a href="../../../sequences/concepts/associative_sequence.html" title="Associative
Sequence">Associative Sequence">Associative
Sequence</a> <code class="computeroutput"><span class="identifier">seq</span></code>, Sequence</a> <tt class="computeroutput"><span class="identifier">seq</span></tt>,
returns a <a href="../../../sequences/concepts/forward_sequence.html" title="Forward returns a <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> containing all the elements of the original except those Sequence</a> containing all the elements of the original except those
with a given key. with a given key.
</p> </p>
<a name="fusion.algorithms.transformation.functions.erase_key.synposis"></a><h6> <a name="fusion.algorithms.transformation.functions.erase_key.synposis"></a><h6>
<a name="id1141201"></a> <a name="id582236"></a>
<a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.synposis">Synposis</a> <a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.synposis">Synposis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -50,7 +50,7 @@
<span class="keyword">typename</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase_key</span><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">erase_key</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase_key</span><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">erase_key</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1141352"></a><p class="title"><b>Table<EFBFBD>1.63.<2E>Parameters</b></p> <a name="id582408"></a><p class="title"><b>Table<EFBFBD>1.63.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -64,7 +64,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/associative_sequence.html" title="Associative model of <a href="../../../sequences/concepts/associative_sequence.html" title="Associative
Sequence">Associative Sequence">Associative
@ -73,7 +73,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Key</span></code></td> <td><tt class="computeroutput"><span class="identifier">Key</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Key to erase</td> <td>Key to erase</td>
@ -82,43 +82,43 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.erase_key.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.erase_key.expression_semantics"></a><h6>
<a name="id1141437"></a> <a name="id582505"></a>
<a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.expression_semantics">Expression <a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="erase_key.html" title="erase_key"><code class="computeroutput"><span class="identifier">erase_key</span></code></a><span class="special">&lt;</span><span class="identifier">Key</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span> <a href="erase_key.html" title="erase_key"><tt class="computeroutput"><span class="identifier">erase_key</span></tt></a><span class="special">&lt;</span><span class="identifier">Key</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing <span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing
all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>,
except those with key <code class="computeroutput"><span class="identifier">Key</span></code>. except those with key <tt class="computeroutput"><span class="identifier">Key</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.erase_key.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.erase_key.complexity"></a><h6>
<a name="id1141548"></a> <a name="id582631"></a>
<a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.complexity">Complexity</a> <a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.erase_key.header"></a><h6> <a name="fusion.algorithms.transformation.functions.erase_key.header"></a><h6>
<a name="id1141577"></a> <a name="id582662"></a>
<a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.header">Header</a> <a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">erase_key</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">erase_key</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.erase_key.example"></a><h6> <a name="fusion.algorithms.transformation.functions.erase_key.example"></a><h6>
<a name="id1141670"></a> <a name="id582769"></a>
<a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.example">Example</a> <a href="erase_key.html#fusion.algorithms.transformation.functions.erase_key.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><a href="erase_key.html" title="erase_key"><code class="computeroutput"><span class="identifier">erase_key</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;(</span><a href="../../../sequences/generation/functions/make_map.html" title="make_map"><code class="computeroutput"><span class="identifier">make_map</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">long</span><span class="special">&gt;(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_map.html" title="make_map"><code class="computeroutput"><span class="identifier">make_map</span></code></a><span class="special">&lt;</span><span class="keyword">long</span><span class="special">&gt;(</span><span class="char">'b'</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="erase_key.html" title="erase_key"><tt class="computeroutput"><span class="identifier">erase_key</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;(</span><a href="../../../sequences/generation/functions/make_map.html" title="make_map"><tt class="computeroutput"><span class="identifier">make_map</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">long</span><span class="special">&gt;(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_map.html" title="make_map"><tt class="computeroutput"><span class="identifier">make_map</span></tt></a><span class="special">&lt;</span><span class="keyword">long</span><span class="special">&gt;(</span><span class="char">'b'</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>filter</title> <title>filter</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="../functions.html" title="Functions"> <link rel="prev" href="../functions.html" title="Functions">
@ -26,7 +26,7 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.filter"></a><a href="filter.html" title="filter">filter</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.filter"></a><a href="filter.html" title="filter">filter</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.filter.description"></a><h6> <a name="fusion.algorithms.transformation.functions.filter.description"></a><h6>
<a name="id1114492"></a> <a name="id571789"></a>
<a href="filter.html#fusion.algorithms.transformation.functions.filter.description">Description</a> <a href="filter.html#fusion.algorithms.transformation.functions.filter.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
the elements of a specified type. the elements of a specified type.
</p> </p>
<a name="fusion.algorithms.transformation.functions.filter.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.filter.synopsis"></a><h6>
<a name="id1114521"></a> <a name="id571823"></a>
<a href="filter.html#fusion.algorithms.transformation.functions.filter.synopsis">Synopsis</a> <a href="filter.html#fusion.algorithms.transformation.functions.filter.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -42,10 +42,10 @@
<span class="keyword">typename</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">T</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/filter.html" title="filter"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">filter</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/filter.html" title="filter"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">filter</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1114683"></a><p class="title"><b>Table<EFBFBD>1.52.<2E>Parameters</b></p> <a name="id572007"></a><p class="title"><b>Table<EFBFBD>1.52.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -59,7 +59,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -68,7 +68,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">T</span></code></td> <td><tt class="computeroutput"><span class="identifier">T</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>The type to retain</td> <td>The type to retain</td>
@ -77,45 +77,45 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.filter.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.filter.expression_semantics"></a><h6>
<a name="id1114769"></a> <a name="id572101"></a>
<a href="filter.html#fusion.algorithms.transformation.functions.filter.expression_semantics">Expression <a href="filter.html#fusion.algorithms.transformation.functions.filter.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="filter.html" title="filter"><code class="computeroutput"><span class="identifier">filter</span></code></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span> <a href="filter.html" title="filter"><tt class="computeroutput"><span class="identifier">filter</span></tt></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing <span class="bold"><b>Semantics</b></span>: Returns a sequence containing
all the elements of <code class="computeroutput"><span class="identifier">seq</span></code> all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>
of type <code class="computeroutput"><span class="identifier">T</span></code>. Equivalent of type <tt class="computeroutput"><span class="identifier">T</span></tt>. Equivalent
to <code class="computeroutput"><a href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">filter_if</span></code></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">same_type</span><span class="special">&lt;</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></code>. to <tt class="computeroutput"><a href="filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">filter_if</span></tt></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">same_type</span><span class="special">&lt;</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.filter.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.filter.complexity"></a><h6>
<a name="id1114953"></a> <a name="id572310"></a>
<a href="filter.html#fusion.algorithms.transformation.functions.filter.complexity">Complexity</a> <a href="filter.html#fusion.algorithms.transformation.functions.filter.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.filter.header"></a><h6> <a name="fusion.algorithms.transformation.functions.filter.header"></a><h6>
<a name="id1114982"></a> <a name="id572342"></a>
<a href="filter.html#fusion.algorithms.transformation.functions.filter.header">Header</a> <a href="filter.html#fusion.algorithms.transformation.functions.filter.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">filter</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">filter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.filter.example"></a><h6> <a name="fusion.algorithms.transformation.functions.filter.example"></a><h6>
<a name="id1115075"></a> <a name="id572448"></a>
<a href="filter.html#fusion.algorithms.transformation.functions.filter.example">Example</a> <a href="filter.html#fusion.algorithms.transformation.functions.filter.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/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">,</span><span class="keyword">long</span><span class="special">,</span><span class="keyword">long</span><span class="special">&gt;</span> <span class="identifier">vec</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">3</span><span class="special">,</span><span class="number">4</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/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">,</span><span class="keyword">long</span><span class="special">,</span><span class="keyword">long</span><span class="special">&gt;</span> <span class="identifier">vec</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">3</span><span class="special">,</span><span class="number">4</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="filter.html" title="filter"><code class="computeroutput"><span class="identifier">filter</span></code></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">assert</span><span class="special">(</span><a href="filter.html" title="filter"><tt class="computeroutput"><span class="identifier">filter</span></tt></a><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>filter_if</title> <title>filter_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="filter.html" title="filter"> <link rel="prev" href="filter.html" title="filter">
@ -26,16 +26,16 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.filter_if"></a><a href="filter_if.html" title="filter_if">filter_if</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.filter_if"></a><a href="filter_if.html" title="filter_if">filter_if</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.filter_if.description"></a><h6> <a name="fusion.algorithms.transformation.functions.filter_if.description"></a><h6>
<a name="id1115315"></a> <a name="id572718"></a>
<a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.description">Description</a> <a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.description">Description</a>
</h6> </h6>
<p> <p>
For a given sequence, <a href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">filter_if</span></code></a> returns a new sequences For a given sequence, <a href="filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">filter_if</span></tt></a> returns a new sequences
containing only the elements with types for which a given MPL Lambda containing only the elements with types for which a given MPL Lambda
Expression evaluates to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>. Expression evaluates to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.filter_if.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.filter_if.synopsis"></a><h6>
<a name="id1115386"></a> <a name="id572799"></a>
<a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.synopsis">Synopsis</a> <a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -43,10 +43,10 @@
<span class="keyword">typename</span> <span class="identifier">Pred</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Pred</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">filter_if</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">filter_if</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1115548"></a><p class="title"><b>Table<EFBFBD>1.53.<2E>Parameters</b></p> <a name="id572984"></a><p class="title"><b>Table<EFBFBD>1.53.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -60,7 +60,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -69,7 +69,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Pred</span></code></td> <td><tt class="computeroutput"><span class="identifier">Pred</span></tt></td>
<td>A <td>A
unary MPL Lambda Expression</td> unary MPL Lambda Expression</td>
<td>The predicate to filter <td>The predicate to filter
@ -79,46 +79,46 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.filter_if.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.filter_if.expression_semantics"></a><h6>
<a name="id1115634"></a> <a name="id573082"></a>
<a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.expression_semantics">Expression <a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">filter_if</span></code></a><span class="special">&lt;</span><span class="identifier">Pred</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span> <a href="filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">filter_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Pred</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing <span class="bold"><b>Semantics</b></span>: Returns a sequence containing
all the elements of <code class="computeroutput"><span class="identifier">seq</span></code> all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>
with types for which <code class="computeroutput"><span class="identifier">Pred</span></code> with types for which <tt class="computeroutput"><span class="identifier">Pred</span></tt>
evaluates to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>. The order of the retained elements evaluates to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>. The order of the retained elements
is the same as in the original sequence. is the same as in the original sequence.
</p> </p>
<a name="fusion.algorithms.transformation.functions.filter_if.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.filter_if.complexity"></a><h6>
<a name="id1115774"></a> <a name="id573240"></a>
<a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.complexity">Complexity</a> <a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.filter_if.header"></a><h6> <a name="fusion.algorithms.transformation.functions.filter_if.header"></a><h6>
<a name="id1115803"></a> <a name="id573271"></a>
<a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.header">Header</a> <a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">filter_if</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">filter_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.filter_if.example"></a><h6> <a name="fusion.algorithms.transformation.functions.filter_if.example"></a><h6>
<a name="id1115896"></a> <a name="id573378"></a>
<a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.example">Example</a> <a href="filter_if.html#fusion.algorithms.transformation.functions.filter_if.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/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">,</span><span class="keyword">double</span><span class="special">,</span><span class="keyword">double</span><span class="special">&gt;</span> <span class="identifier">vec</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">3.0</span><span class="special">,</span><span class="number">4.0</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/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">,</span><span class="keyword">double</span><span class="special">,</span><span class="keyword">double</span><span class="special">&gt;</span> <span class="identifier">vec</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">3.0</span><span class="special">,</span><span class="number">4.0</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">filter_if</span></code></a><span class="special">&lt;</span><span class="identifier">is_integral</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">assert</span><span class="special">(</span><a href="filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">filter_if</span></tt></a><span class="special">&lt;</span><span class="identifier">is_integral</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>insert</title> <title>insert</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="erase_key.html" title="erase_key"> <link rel="prev" href="erase_key.html" title="erase_key">
@ -26,7 +26,7 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.insert"></a><a href="insert.html" title="insert">insert</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.insert"></a><a href="insert.html" title="insert">insert</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.insert.description"></a><h6> <a name="fusion.algorithms.transformation.functions.insert.description"></a><h6>
<a name="id1141853"></a> <a name="id582974"></a>
<a href="insert.html#fusion.algorithms.transformation.functions.insert.description">Description</a> <a href="insert.html#fusion.algorithms.transformation.functions.insert.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
element inserted the position described by a given iterator. element inserted the position described by a given iterator.
</p> </p>
<a name="fusion.algorithms.transformation.functions.insert.synposis"></a><h6> <a name="fusion.algorithms.transformation.functions.insert.synposis"></a><h6>
<a name="id1141883"></a> <a name="id583008"></a>
<a href="insert.html#fusion.algorithms.transformation.functions.insert.synposis">Synposis</a> <a href="insert.html#fusion.algorithms.transformation.functions.insert.synposis">Synposis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -46,7 +46,7 @@
<span class="emphasis"><em>unspecified</em></span> <span class="identifier">insert</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">Pos</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">pos</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span> <span class="emphasis"><em>unspecified</em></span> <span class="identifier">insert</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">Pos</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">pos</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1142049"></a><p class="title"><b>Table<EFBFBD>1.64.<2E>Parameters</b></p> <a name="id583198"></a><p class="title"><b>Table<EFBFBD>1.64.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -60,7 +60,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -69,7 +69,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">pos</span></code></td> <td><tt class="computeroutput"><span class="identifier">pos</span></tt></td>
<td>A <td>A
model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -78,7 +78,7 @@
<td>The position to insert at</td> <td>The position to insert at</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">t</span></code></td> <td><tt class="computeroutput"><span class="identifier">t</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>The value to insert</td> <td>The value to insert</td>
@ -87,46 +87,46 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.insert.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.insert.expression_semantics"></a><h6>
<a name="id1142160"></a> <a name="id583322"></a>
<a href="insert.html#fusion.algorithms.transformation.functions.insert.expression_semantics">Expression <a href="insert.html#fusion.algorithms.transformation.functions.insert.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="insert.html" title="insert"><code class="computeroutput"><span class="identifier">insert</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span> <a href="insert.html" title="insert"><tt class="computeroutput"><span class="identifier">insert</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing <span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing
all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>,
in their original order, and a new element with the type and value of in their original order, and a new element with the type and value of
<code class="computeroutput"><span class="identifier">t</span></code> inserted at iterator <tt class="computeroutput"><span class="identifier">t</span></tt> inserted at iterator
<code class="computeroutput"><span class="identifier">pos</span></code>. <tt class="computeroutput"><span class="identifier">pos</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.insert.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.insert.complexity"></a><h6>
<a name="id1142292"></a> <a name="id583472"></a>
<a href="insert.html#fusion.algorithms.transformation.functions.insert.complexity">Complexity</a> <a href="insert.html#fusion.algorithms.transformation.functions.insert.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.insert.header"></a><h6> <a name="fusion.algorithms.transformation.functions.insert.header"></a><h6>
<a name="id1142321"></a> <a name="id583504"></a>
<a href="insert.html#fusion.algorithms.transformation.functions.insert.header">Header</a> <a href="insert.html#fusion.algorithms.transformation.functions.insert.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">insert</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">insert</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.insert.example"></a><h6> <a name="fusion.algorithms.transformation.functions.insert.example"></a><h6>
<a name="id1142414"></a> <a name="id583610"></a>
<a href="insert.html#fusion.algorithms.transformation.functions.insert.example">Example</a> <a href="insert.html#fusion.algorithms.transformation.functions.insert.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/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">vec</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="keyword">const</span> <a href="../../../sequences/containers/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">vec</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">assert</span><span class="special">(</span><a href="insert.html" title="insert"><code class="computeroutput"><span class="identifier">insert</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)),</span> <span class="number">3</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">,</span><span class="number">2</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="insert.html" title="insert"><tt class="computeroutput"><span class="identifier">insert</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)),</span> <span class="number">3</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">,</span><span class="number">2</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>insert_range</title> <title>insert_range</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="insert.html" title="insert"> <link rel="prev" href="insert.html" title="insert">
@ -26,7 +26,7 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.insert_range"></a><a href="insert_range.html" title="insert_range">insert_range</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.insert_range"></a><a href="insert_range.html" title="insert_range">insert_range</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.insert_range.description"></a><h6> <a name="fusion.algorithms.transformation.functions.insert_range.description"></a><h6>
<a name="id1142674"></a> <a name="id583904"></a>
<a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.description">Description</a> <a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
iterator. iterator.
</p> </p>
<a name="fusion.algorithms.transformation.functions.insert_range.synposis"></a><h6> <a name="fusion.algorithms.transformation.functions.insert_range.synposis"></a><h6>
<a name="id1142705"></a> <a name="id583938"></a>
<a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.synposis">Synposis</a> <a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.synposis">Synposis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -43,11 +43,11 @@
<span class="keyword">typename</span> <span class="identifier">Pos</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Pos</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Range</span> <span class="keyword">typename</span> <span class="identifier">Range</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/insert_range.html" title="insert_range"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert_range</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pos</span><span class="special">,</span> <span class="identifier">Range</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">insert_range</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/insert_range.html" title="insert_range"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert_range</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pos</span><span class="special">,</span> <span class="identifier">Range</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">insert_range</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">Pos</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">pos</span><span class="special">,</span> <span class="identifier">Range</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">range</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">Pos</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">pos</span><span class="special">,</span> <span class="identifier">Range</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">range</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1142943"></a><p class="title"><b>Table<EFBFBD>1.65.<2E>Parameters</b></p> <a name="id584210"></a><p class="title"><b>Table<EFBFBD>1.65.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -61,7 +61,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -70,7 +70,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">pos</span></code></td> <td><tt class="computeroutput"><span class="identifier">pos</span></tt></td>
<td>A <td>A
model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -79,7 +79,7 @@
<td>The position to insert at</td> <td>The position to insert at</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">range</span></code></td> <td><tt class="computeroutput"><span class="identifier">range</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -91,46 +91,46 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.insert_range.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.insert_range.expression_semantics"></a><h6>
<a name="id1143061"></a> <a name="id584342"></a>
<a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.expression_semantics">Expression <a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="insert.html" title="insert"><code class="computeroutput"><span class="identifier">insert</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">pos</span><span class="special">,</span> <span class="identifier">range</span><span class="special">);</span> <a href="insert.html" title="insert"><tt class="computeroutput"><span class="identifier">insert</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">pos</span><span class="special">,</span> <span class="identifier">range</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing <span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing
all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>,
and the elements of <code class="computeroutput"><span class="identifier">range</span></code> and the elements of <tt class="computeroutput"><span class="identifier">range</span></tt>
inserted at iterator <code class="computeroutput"><span class="identifier">pos</span></code>. inserted at iterator <tt class="computeroutput"><span class="identifier">pos</span></tt>.
All elements retaining their ordering from the orignal sequences. All elements retaining their ordering from the orignal sequences.
</p> </p>
<a name="fusion.algorithms.transformation.functions.insert_range.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.insert_range.complexity"></a><h6>
<a name="id1143196"></a> <a name="id584495"></a>
<a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.complexity">Complexity</a> <a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.insert_range.header"></a><h6> <a name="fusion.algorithms.transformation.functions.insert_range.header"></a><h6>
<a name="id1143224"></a> <a name="id584526"></a>
<a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.header">Header</a> <a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">insert_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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">insert_range</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.insert_range.example"></a><h6> <a name="fusion.algorithms.transformation.functions.insert_range.example"></a><h6>
<a name="id1143317"></a> <a name="id584632"></a>
<a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.example">Example</a> <a href="insert_range.html#fusion.algorithms.transformation.functions.insert_range.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/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">vec</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="keyword">const</span> <a href="../../../sequences/containers/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">vec</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">assert</span><span class="special">(</span><a href="insert_range.html" title="insert_range"><code class="computeroutput"><span class="identifier">insert_range</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)),</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">4</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">,</span><span class="number">4</span><span class="special">,</span><span class="number">2</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="insert_range.html" title="insert_range"><tt class="computeroutput"><span class="identifier">insert_range</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <a href="../../../iterators/functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">vec</span><span class="special">)),</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">4</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">,</span><span class="number">4</span><span class="special">,</span><span class="number">2</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>join</title> <title>join</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="insert_range.html" title="insert_range"> <link rel="prev" href="insert_range.html" title="insert_range">
@ -26,7 +26,7 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.join"></a><a href="join.html" title="join">join</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.join"></a><a href="join.html" title="join">join</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.join.description"></a><h6> <a name="fusion.algorithms.transformation.functions.join.description"></a><h6>
<a name="id1143609"></a> <a name="id584963"></a>
<a href="join.html#fusion.algorithms.transformation.functions.join.description">Description</a> <a href="join.html#fusion.algorithms.transformation.functions.join.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,17 +34,17 @@
first followed by the elements of the second. first followed by the elements of the second.
</p> </p>
<a name="fusion.algorithms.transformation.functions.join.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.join.synopsis"></a><h6>
<a name="id1143638"></a> <a name="id584996"></a>
<a href="join.html#fusion.algorithms.transformation.functions.join.synopsis">Synopsis</a> <a href="join.html#fusion.algorithms.transformation.functions.join.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">LhSequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">LhSequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">RhSequence</span><span class="special">&gt;</span> <span class="keyword">typename</span> <span class="identifier">RhSequence</span><span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/join.html" title="join"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">join</span></code></a><span class="special">&lt;</span><span class="identifier">LhSequence</span><span class="special">,</span> <span class="identifier">RhSequence</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">join</span><span class="special">(</span><span class="identifier">LhSequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="identifier">RhSequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/join.html" title="join"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">join</span></tt></a><span class="special">&lt;</span><span class="identifier">LhSequence</span><span class="special">,</span> <span class="identifier">RhSequence</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">join</span><span class="special">(</span><span class="identifier">LhSequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">lhs</span><span class="special">,</span> <span class="identifier">RhSequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1143820"></a><p class="title"><b>Table<EFBFBD>1.66.<2E>Parameters</b></p> <a name="id585204"></a><p class="title"><b>Table<EFBFBD>1.66.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -58,7 +58,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">lhs</span></code></td> <td><tt class="computeroutput"><span class="identifier">lhs</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -67,7 +67,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">rhs</span></code></td> <td><tt class="computeroutput"><span class="identifier">rhs</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -79,46 +79,46 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.join.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.join.expression_semantics"></a><h6>
<a name="id1143913"></a> <a name="id585305"></a>
<a href="join.html#fusion.algorithms.transformation.functions.join.expression_semantics">Expression <a href="join.html#fusion.algorithms.transformation.functions.join.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="join.html" title="join"><code class="computeroutput"><span class="identifier">join</span></code></a><span class="special">(</span><span class="identifier">lhs</span><span class="special">,</span> <span class="identifier">rhs</span><span class="special">);</span> <a href="join.html" title="join"><tt class="computeroutput"><span class="identifier">join</span></tt></a><span class="special">(</span><span class="identifier">lhs</span><span class="special">,</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing <span class="bold"><b>Semantics</b></span>: Returns a sequence containing
all the elements of <code class="computeroutput"><span class="identifier">lhs</span></code> all the elements of <tt class="computeroutput"><span class="identifier">lhs</span></tt>
followed by all the elements of <code class="computeroutput"><span class="identifier">rhs</span></code>. followed by all the elements of <tt class="computeroutput"><span class="identifier">rhs</span></tt>.
The order of th elements is preserved. The order of th elements is preserved.
</p> </p>
<a name="fusion.algorithms.transformation.functions.join.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.join.complexity"></a><h6>
<a name="id1144025"></a> <a name="id585432"></a>
<a href="join.html#fusion.algorithms.transformation.functions.join.complexity">Complexity</a> <a href="join.html#fusion.algorithms.transformation.functions.join.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.join.header"></a><h6> <a name="fusion.algorithms.transformation.functions.join.header"></a><h6>
<a name="id1144053"></a> <a name="id585464"></a>
<a href="join.html#fusion.algorithms.transformation.functions.join.header">Header</a> <a href="join.html#fusion.algorithms.transformation.functions.join.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">join</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">join</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.join.example"></a><h6> <a name="fusion.algorithms.transformation.functions.join.example"></a><h6>
<a name="id1144147"></a> <a name="id585570"></a>
<a href="join.html#fusion.algorithms.transformation.functions.join.example">Example</a> <a href="join.html#fusion.algorithms.transformation.functions.join.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="../../../sequences/containers/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">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span> <a href="../../../sequences/containers/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">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span>
<a href="../../../sequences/containers/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">v2</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">);</span> <a href="../../../sequences/containers/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">v2</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="join.html" title="join"><code class="computeroutput"><span class="identifier">join</span></code></a><span class="special">(</span><span class="identifier">v1</span><span class="special">,</span> <span class="identifier">v2</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="char">'a'</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="char">'b'</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="join.html" title="join"><tt class="computeroutput"><span class="identifier">join</span></tt></a><span class="special">(</span><span class="identifier">v1</span><span class="special">,</span> <span class="identifier">v2</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="char">'a'</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="char">'b'</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>pop_back</title> <title>pop_back</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="zip.html" title="zip"> <link rel="prev" href="zip.html" title="zip">
@ -26,24 +26,24 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.pop_back"></a><a href="pop_back.html" title="pop_back">pop_back</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.pop_back"></a><a href="pop_back.html" title="pop_back">pop_back</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.pop_back.description"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_back.description"></a><h6>
<a name="id1145488"></a> <a name="id587086"></a>
<a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.description">Description</a> <a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.description">Description</a>
</h6> </h6>
<p> <p>
Returns a new sequence, with the last element of the original removed. Returns a new sequence, with the last element of the original removed.
</p> </p>
<a name="fusion.algorithms.transformation.functions.pop_back.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_back.synopsis"></a><h6>
<a name="id1145517"></a> <a name="id587119"></a>
<a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.synopsis">Synopsis</a> <a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/pop_back.html" title="pop_back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_back</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">pop_back</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/pop_back.html" title="pop_back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_back</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">pop_back</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1145654"></a><p class="title"><b>Table<EFBFBD>1.68.<2E>Parameters</b></p> <a name="id587275"></a><p class="title"><b>Table<EFBFBD>1.68.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -56,7 +56,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -67,44 +67,44 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.pop_back.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_back.expression_semantics"></a><h6>
<a name="id1145721"></a> <a name="id587350"></a>
<a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.expression_semantics">Expression <a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="pop_back.html" title="pop_back"><code class="computeroutput"><span class="identifier">pop_back</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span> <a href="pop_back.html" title="pop_back"><tt class="computeroutput"><span class="identifier">pop_back</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence containing <span class="bold"><b>Semantics</b></span>: Returns a new sequence containing
all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>,
except the last element. The elements in the new sequence are in the except the last element. The elements in the new sequence are in the
same order as they were in <code class="computeroutput"><span class="identifier">seq</span></code>. same order as they were in <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.pop_back.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_back.complexity"></a><h6>
<a name="id1145825"></a> <a name="id587468"></a>
<a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.complexity">Complexity</a> <a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.pop_back.header"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_back.header"></a><h6>
<a name="id1145854"></a> <a name="id587499"></a>
<a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.header">Header</a> <a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">pop_back</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">pop_back</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.pop_back.example"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_back.example"></a><h6>
<a name="id1145947"></a> <a name="id587605"></a>
<a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.example">Example</a> <a href="pop_back.html#fusion.algorithms.transformation.functions.pop_back.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">___pop_back__</span><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">assert</span><span class="special">(</span><span class="identifier">___pop_back__</span><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>pop_front</title> <title>pop_front</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="pop_back.html" title="pop_back"> <link rel="prev" href="pop_back.html" title="pop_back">
@ -26,24 +26,24 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.pop_front"></a><a href="pop_front.html" title="pop_front">pop_front</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.pop_front"></a><a href="pop_front.html" title="pop_front">pop_front</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.pop_front.description"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_front.description"></a><h6>
<a name="id1146103"></a> <a name="id587780"></a>
<a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.description">Description</a> <a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.description">Description</a>
</h6> </h6>
<p> <p>
Returns a new sequence, with the first element of the original removed. Returns a new sequence, with the first element of the original removed.
</p> </p>
<a name="fusion.algorithms.transformation.functions.pop_front.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_front.synopsis"></a><h6>
<a name="id1146110"></a> <a name="id587813"></a>
<a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.synopsis">Synopsis</a> <a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/pop_front.html" title="pop_front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_front</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">pop_front</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/pop_front.html" title="pop_front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_front</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">pop_front</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1146268"></a><p class="title"><b>Table<EFBFBD>1.69.<2E>Parameters</b></p> <a name="id587969"></a><p class="title"><b>Table<EFBFBD>1.69.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -56,7 +56,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -67,44 +67,44 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.pop_front.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_front.expression_semantics"></a><h6>
<a name="id1146335"></a> <a name="id588045"></a>
<a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.expression_semantics">Expression <a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="pop_front.html" title="pop_front"><code class="computeroutput"><span class="identifier">pop_front</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span> <a href="pop_front.html" title="pop_front"><tt class="computeroutput"><span class="identifier">pop_front</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence containing <span class="bold"><b>Semantics</b></span>: Returns a new sequence containing
all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>,
except the first element. The elements in the new sequence are in the except the first element. The elements in the new sequence are in the
same order as they were in <code class="computeroutput"><span class="identifier">seq</span></code>. same order as they were in <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.pop_front.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_front.complexity"></a><h6>
<a name="id1146439"></a> <a name="id588163"></a>
<a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.complexity">Complexity</a> <a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.pop_front.header"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_front.header"></a><h6>
<a name="id1146468"></a> <a name="id588194"></a>
<a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.header">Header</a> <a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">pop_front</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">pop_front</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.pop_front.example"></a><h6> <a name="fusion.algorithms.transformation.functions.pop_front.example"></a><h6>
<a name="id1146561"></a> <a name="id588300"></a>
<a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.example">Example</a> <a href="pop_front.html#fusion.algorithms.transformation.functions.pop_front.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><a href="pop_front.html" title="pop_front"><code class="computeroutput"><span class="identifier">pop_front</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="pop_front.html" title="pop_front"><tt class="computeroutput"><span class="identifier">pop_front</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>push_back</title> <title>push_back</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="pop_front.html" title="pop_front"> <link rel="prev" href="pop_front.html" title="pop_front">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.push_back"></a><a href="push_back.html" title="push_back">push_back</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.push_back"></a><a href="push_back.html" title="push_back">push_back</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.push_back.description"></a><h6> <a name="fusion.algorithms.transformation.functions.push_back.description"></a><h6>
<a name="id1146724"></a> <a name="id588482"></a>
<a href="push_back.html#fusion.algorithms.transformation.functions.push_back.description">Description</a> <a href="push_back.html#fusion.algorithms.transformation.functions.push_back.description">Description</a>
</h6> </h6>
<p> <p>
Returns a new sequence with an element added at the end. Returns a new sequence with an element added at the end.
</p> </p>
<a name="fusion.algorithms.transformation.functions.push_back.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.push_back.synopsis"></a><h6>
<a name="id1146731"></a> <a name="id588515"></a>
<a href="push_back.html#fusion.algorithms.transformation.functions.push_back.synopsis">Synopsis</a> <a href="push_back.html#fusion.algorithms.transformation.functions.push_back.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -41,11 +41,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">T</span> <span class="keyword">typename</span> <span class="identifier">T</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_back</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">push_back</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_back</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">push_back</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1146934"></a><p class="title"><b>Table<EFBFBD>1.70.<2E>Parameters</b></p> <a name="id588724"></a><p class="title"><b>Table<EFBFBD>1.70.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -59,7 +59,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -68,7 +68,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">t</span></code></td> <td><tt class="computeroutput"><span class="identifier">t</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>The value to add to the end</td> <td>The value to add to the end</td>
@ -77,44 +77,44 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.push_back.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.push_back.expression_semantics"></a><h6>
<a name="id1147020"></a> <a name="id588820"></a>
<a href="push_back.html#fusion.algorithms.transformation.functions.push_back.expression_semantics">Expression <a href="push_back.html#fusion.algorithms.transformation.functions.push_back.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span> <a href="push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing <span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing
all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>,
and new element <code class="computeroutput"><span class="identifier">t</span></code> appended and new element <tt class="computeroutput"><span class="identifier">t</span></tt> appended
to the end. The elements are in the same order as they were in <code class="computeroutput"><span class="identifier">seq</span></code>. to the end. The elements are in the same order as they were in <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.push_back.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.push_back.complexity"></a><h6>
<a name="id1147141"></a> <a name="id588959"></a>
<a href="push_back.html#fusion.algorithms.transformation.functions.push_back.complexity">Complexity</a> <a href="push_back.html#fusion.algorithms.transformation.functions.push_back.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.push_back.header"></a><h6> <a name="fusion.algorithms.transformation.functions.push_back.header"></a><h6>
<a name="id1147170"></a> <a name="id588990"></a>
<a href="push_back.html#fusion.algorithms.transformation.functions.push_back.header">Header</a> <a href="push_back.html#fusion.algorithms.transformation.functions.push_back.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">push_back</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">push_back</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.push_back.example"></a><h6> <a name="fusion.algorithms.transformation.functions.push_back.example"></a><h6>
<a name="id1147263"></a> <a name="id589096"></a>
<a href="push_back.html#fusion.algorithms.transformation.functions.push_back.example">Example</a> <a href="push_back.html#fusion.algorithms.transformation.functions.push_back.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><a href="push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">3</span><span class="special">),</span><span class="number">4</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">3</span><span class="special">,</span><span class="number">4</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">3</span><span class="special">),</span><span class="number">4</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">3</span><span class="special">,</span><span class="number">4</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>push_front</title> <title>push_front</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="push_back.html" title="push_back"> <link rel="prev" href="push_back.html" title="push_back">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.push_front"></a><a href="push_front.html" title="push_front">push_front</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.push_front"></a><a href="push_front.html" title="push_front">push_front</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.push_front.description"></a><h6> <a name="fusion.algorithms.transformation.functions.push_front.description"></a><h6>
<a name="id1147454"></a> <a name="id589309"></a>
<a href="push_front.html#fusion.algorithms.transformation.functions.push_front.description">Description</a> <a href="push_front.html#fusion.algorithms.transformation.functions.push_front.description">Description</a>
</h6> </h6>
<p> <p>
Returns a new sequence with an element added at the beginning. Returns a new sequence with an element added at the beginning.
</p> </p>
<a name="fusion.algorithms.transformation.functions.push_front.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.push_front.synopsis"></a><h6>
<a name="id1147461"></a> <a name="id589342"></a>
<a href="push_front.html#fusion.algorithms.transformation.functions.push_front.synopsis">Synopsis</a> <a href="push_front.html#fusion.algorithms.transformation.functions.push_front.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -41,11 +41,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">T</span> <span class="keyword">typename</span> <span class="identifier">T</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/push_front.html" title="push_front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_front</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">push_front</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/push_front.html" title="push_front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_front</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">push_front</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1147664"></a><p class="title"><b>Table<EFBFBD>1.71.<2E>Parameters</b></p> <a name="id589550"></a><p class="title"><b>Table<EFBFBD>1.71.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -59,7 +59,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -68,7 +68,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">t</span></code></td> <td><tt class="computeroutput"><span class="identifier">t</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>The value to add to the beginning</td> <td>The value to add to the beginning</td>
@ -77,45 +77,45 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.push_front.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.push_front.expression_semantics"></a><h6>
<a name="id1147750"></a> <a name="id589647"></a>
<a href="push_front.html#fusion.algorithms.transformation.functions.push_front.expression_semantics">Expression <a href="push_front.html#fusion.algorithms.transformation.functions.push_front.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span> <a href="push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">t</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing <span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing
all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>,
and new element <code class="computeroutput"><span class="identifier">t</span></code> appended and new element <tt class="computeroutput"><span class="identifier">t</span></tt> appended
to the beginning. The elements are in the same order as they were in to the beginning. The elements are in the same order as they were in
<code class="computeroutput"><span class="identifier">seq</span></code>. <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.push_front.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.push_front.complexity"></a><h6>
<a name="id1147874"></a> <a name="id589788"></a>
<a href="push_front.html#fusion.algorithms.transformation.functions.push_front.complexity">Complexity</a> <a href="push_front.html#fusion.algorithms.transformation.functions.push_front.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.push_front.header"></a><h6> <a name="fusion.algorithms.transformation.functions.push_front.header"></a><h6>
<a name="id1147902"></a> <a name="id589819"></a>
<a href="push_front.html#fusion.algorithms.transformation.functions.push_front.header">Header</a> <a href="push_front.html#fusion.algorithms.transformation.functions.push_front.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">push_front</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">push_front</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.push_front.example"></a><h6> <a name="fusion.algorithms.transformation.functions.push_front.example"></a><h6>
<a name="id1147996"></a> <a name="id589925"></a>
<a href="push_front.html#fusion.algorithms.transformation.functions.push_front.example">Example</a> <a href="push_front.html#fusion.algorithms.transformation.functions.push_front.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><a href="push_front.html" title="push_front"><code class="computeroutput"><span class="identifier">push_front</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">3</span><span class="special">),</span><span class="number">0</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">0</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">3</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="push_front.html" title="push_front"><tt class="computeroutput"><span class="identifier">push_front</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">3</span><span class="special">),</span><span class="number">0</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">0</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">3</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>remove</title> <title>remove</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="replace_if.html" title="replace_if"> <link rel="prev" href="replace_if.html" title="replace_if">
@ -26,7 +26,7 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.remove"></a><a href="remove.html" title="remove">remove</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.remove"></a><a href="remove.html" title="remove">remove</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.remove.description"></a><h6> <a name="fusion.algorithms.transformation.functions.remove.description"></a><h6>
<a name="id1136983"></a> <a name="id577468"></a>
<a href="remove.html#fusion.algorithms.transformation.functions.remove.description">Description</a> <a href="remove.html#fusion.algorithms.transformation.functions.remove.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
except those of a given type. except those of a given type.
</p> </p>
<a name="fusion.algorithms.transformation.functions.remove.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.remove.synopsis"></a><h6>
<a name="id1137012"></a> <a name="id577502"></a>
<a href="remove.html#fusion.algorithms.transformation.functions.remove.synopsis">Synopsis</a> <a href="remove.html#fusion.algorithms.transformation.functions.remove.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -42,10 +42,10 @@
<span class="keyword">typename</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">T</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/remove.html" title="remove"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">replace</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/remove.html" title="remove"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">replace</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1137174"></a><p class="title"><b>Table<EFBFBD>1.58.<2E>Parameters</b></p> <a name="id577686"></a><p class="title"><b>Table<EFBFBD>1.58.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -59,7 +59,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -68,7 +68,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">T</span></code></td> <td><tt class="computeroutput"><span class="identifier">T</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Type to remove</td> <td>Type to remove</td>
@ -77,45 +77,45 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.remove.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.remove.expression_semantics"></a><h6>
<a name="id1137259"></a> <a name="id577780"></a>
<a href="remove.html#fusion.algorithms.transformation.functions.remove.expression_semantics">Expression <a href="remove.html#fusion.algorithms.transformation.functions.remove.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="remove.html" title="remove"><code class="computeroutput"><span class="identifier">remove</span></code></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span> <a href="remove.html" title="remove"><tt class="computeroutput"><span class="identifier">remove</span></tt></a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing <span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing
all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>,
in their original order, except those of type <code class="computeroutput"><span class="identifier">T</span></code>. in their original order, except those of type <tt class="computeroutput"><span class="identifier">T</span></tt>.
Equivalent to <code class="computeroutput"><a href="remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">remove_if</span></code></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">_</span><span class="special">,</span><span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></code>. Equivalent to <tt class="computeroutput"><a href="remove_if.html" title="remove_if"><tt class="computeroutput"><span class="identifier">remove_if</span></tt></a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">_</span><span class="special">,</span><span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.remove.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.remove.complexity"></a><h6>
<a name="id1137445"></a> <a name="id577991"></a>
<a href="remove.html#fusion.algorithms.transformation.functions.remove.complexity">Complexity</a> <a href="remove.html#fusion.algorithms.transformation.functions.remove.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.remove.header"></a><h6> <a name="fusion.algorithms.transformation.functions.remove.header"></a><h6>
<a name="id1137473"></a> <a name="id578022"></a>
<a href="remove.html#fusion.algorithms.transformation.functions.remove.header">Header</a> <a href="remove.html#fusion.algorithms.transformation.functions.remove.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">remove</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">remove</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.remove.example"></a><h6> <a name="fusion.algorithms.transformation.functions.remove.example"></a><h6>
<a name="id1137567"></a> <a name="id578128"></a>
<a href="remove.html#fusion.algorithms.transformation.functions.remove.example">Example</a> <a href="remove.html#fusion.algorithms.transformation.functions.remove.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/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">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2.0</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/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">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2.0</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="remove.html" title="remove"><code class="computeroutput"><span class="identifier">remove</span></code></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="remove.html" title="remove"><tt class="computeroutput"><span class="identifier">remove</span></tt></a><span class="special">&lt;</span><span class="keyword">double</span><span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>remove_if</title> <title>remove_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="remove.html" title="remove"> <link rel="prev" href="remove.html" title="remove">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.remove_if"></a><a href="remove_if.html" title="remove_if">remove_if</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.remove_if"></a><a href="remove_if.html" title="remove_if">remove_if</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.remove_if.description"></a><h6> <a name="fusion.algorithms.transformation.functions.remove_if.description"></a><h6>
<a name="id1137763"></a> <a name="id578349"></a>
<a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.description">Description</a> <a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.description">Description</a>
</h6> </h6>
<p> <p>
Returns a new sequence, containing all the elements of the original except Returns a new sequence, containing all the elements of the original except
those where a given unary function object evaluates to <code class="computeroutput"><span class="keyword">true</span></code>. those where a given unary function object evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.remove_if.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.remove_if.synopsis"></a><h6>
<a name="id1137770"></a> <a name="id578393"></a>
<a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.synopsis">Synopsis</a> <a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -42,10 +42,10 @@
<span class="keyword">typename</span> <span class="identifier">Pred</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Pred</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">remove_if</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/remove_if.html" title="remove_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">remove_if</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1137964"></a><p class="title"><b>Table<EFBFBD>1.59.<2E>Parameters</b></p> <a name="id578578"></a><p class="title"><b>Table<EFBFBD>1.59.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -59,7 +59,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -68,7 +68,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Pred</span></code></td> <td><tt class="computeroutput"><span class="identifier">Pred</span></tt></td>
<td>A <td>A
model of unary MPL Lambda Expression</td> model of unary MPL Lambda Expression</td>
<td>Removal predicate</td> <td>Removal predicate</td>
@ -77,46 +77,46 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.remove_if.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.remove_if.expression_semantics"></a><h6>
<a name="id1138050"></a> <a name="id578674"></a>
<a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.expression_semantics">Expression <a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">remove_if</span></code></a><span class="special">&lt;</span><span class="identifier">Pred</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span> <a href="remove_if.html" title="remove_if"><tt class="computeroutput"><span class="identifier">remove_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Pred</span><span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing <span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing
all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>,
in their original order, except those elements with types for which in their original order, except those elements with types for which
<code class="computeroutput"><span class="identifier">Pred</span></code> evaluates to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>. Equivalent to <code class="computeroutput"><a href="filter.html" title="filter"><code class="computeroutput"><span class="identifier">filter</span></code></a><span class="special">&lt;</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">&lt;</span><span class="identifier">Pred</span><span class="special">&gt;</span> <tt class="computeroutput"><span class="identifier">Pred</span></tt> evaluates to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>. Equivalent to <tt class="computeroutput"><a href="filter.html" title="filter"><tt class="computeroutput"><span class="identifier">filter</span></tt></a><span class="special">&lt;</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">&lt;</span><span class="identifier">Pred</span><span class="special">&gt;</span>
<span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></code>. <span class="special">&gt;(</span><span class="identifier">seq</span><span class="special">)</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.remove_if.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.remove_if.complexity"></a><h6>
<a name="id1138262"></a> <a name="id578915"></a>
<a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.complexity">Complexity</a> <a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.remove_if.header"></a><h6> <a name="fusion.algorithms.transformation.functions.remove_if.header"></a><h6>
<a name="id1138290"></a> <a name="id578946"></a>
<a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.header">Header</a> <a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">remove_if</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">remove_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.remove_if.example"></a><h6> <a name="fusion.algorithms.transformation.functions.remove_if.example"></a><h6>
<a name="id1138384"></a> <a name="id579052"></a>
<a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.example">Example</a> <a href="remove_if.html#fusion.algorithms.transformation.functions.remove_if.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">const</span> <a href="../../../sequences/containers/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">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2.0</span><span class="special">);</span> <span class="keyword">const</span> <a href="../../../sequences/containers/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">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2.0</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">remove_if</span></code></a><span class="special">&lt;</span><span class="identifier">is_floating_point</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="remove_if.html" title="remove_if"><tt class="computeroutput"><span class="identifier">remove_if</span></tt></a><span class="special">&lt;</span><span class="identifier">is_floating_point</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">&gt;</span> <span class="special">&gt;(</span><span class="identifier">vec</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>replace</title> <title>replace</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="transform.html" title="transform"> <link rel="prev" href="transform.html" title="transform">
@ -26,7 +26,7 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.replace"></a><a href="replace.html" title="replace">replace</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.replace"></a><a href="replace.html" title="replace">replace</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.replace.description"></a><h6> <a name="fusion.algorithms.transformation.functions.replace.description"></a><h6>
<a name="id1117695"></a> <a name="id575415"></a>
<a href="replace.html#fusion.algorithms.transformation.functions.replace.description">Description</a> <a href="replace.html#fusion.algorithms.transformation.functions.replace.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
a new value. a new value.
</p> </p>
<a name="fusion.algorithms.transformation.functions.replace.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.replace.synopsis"></a><h6>
<a name="id1117724"></a> <a name="id575448"></a>
<a href="replace.html#fusion.algorithms.transformation.functions.replace.synopsis">Synopsis</a> <a href="replace.html#fusion.algorithms.transformation.functions.replace.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -42,11 +42,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">T</span> <span class="keyword">typename</span> <span class="identifier">T</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/replace.html" title="replace"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">replace</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/replace.html" title="replace"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">replace</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">old_value</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">new_value</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">old_value</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">new_value</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1117938"></a><p class="title"><b>Table<EFBFBD>1.56.<2E>Parameters</b></p> <a name="id575691"></a><p class="title"><b>Table<EFBFBD>1.56.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -60,27 +60,27 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>, <code class="computeroutput"><span class="identifier">e</span> <span class="special">==</span> <span class="identifier">old_value</span></code> Sequence</a>, <tt class="computeroutput"><span class="identifier">e</span> <span class="special">==</span> <span class="identifier">old_value</span></tt>
is a valid expression, convertible to <code class="computeroutput"><span class="keyword">bool</span></code>, is a valid expression, convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>,
for each element <code class="computeroutput"><span class="identifier">e</span></code> for each element <tt class="computeroutput"><span class="identifier">e</span></tt>
in <code class="computeroutput"><span class="identifier">seq</span></code> with type in <tt class="computeroutput"><span class="identifier">seq</span></tt> with type
convertible to <code class="computeroutput"><span class="identifier">T</span></code> convertible to <tt class="computeroutput"><span class="identifier">T</span></tt>
</td> </td>
<td>Operation's <td>Operation's
argument</td> argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">old_value</span></code></td> <td><tt class="computeroutput"><span class="identifier">old_value</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Value to replace</td> <td>Value to replace</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">new_value</span></code></td> <td><tt class="computeroutput"><span class="identifier">new_value</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Replacement value</td> <td>Replacement value</td>
@ -89,44 +89,44 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.replace.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.replace.expression_semantics"></a><h6>
<a name="id1118099"></a> <a name="id575872"></a>
<a href="replace.html#fusion.algorithms.transformation.functions.replace.expression_semantics">Expression <a href="replace.html#fusion.algorithms.transformation.functions.replace.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="replace.html" title="replace"><code class="computeroutput"><span class="identifier">replace</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">old_value</span><span class="special">,</span> <span class="identifier">new_value</span><span class="special">);</span> <a href="replace.html" title="replace"><tt class="computeroutput"><span class="identifier">replace</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">old_value</span><span class="special">,</span> <span class="identifier">new_value</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence with <span class="bold"><b>Semantics</b></span>: Returns a new sequence with
all the values of <code class="computeroutput"><span class="identifier">seq</span></code> all the values of <tt class="computeroutput"><span class="identifier">seq</span></tt>
with <code class="computeroutput"><span class="identifier">new_value</span></code> assigned with <tt class="computeroutput"><span class="identifier">new_value</span></tt> assigned
to elements with the same type and equal to <code class="computeroutput"><span class="identifier">old_value</span></code>. to elements with the same type and equal to <tt class="computeroutput"><span class="identifier">old_value</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.replace.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.replace.complexity"></a><h6>
<a name="id1118231"></a> <a name="id576023"></a>
<a href="replace.html#fusion.algorithms.transformation.functions.replace.complexity">Complexity</a> <a href="replace.html#fusion.algorithms.transformation.functions.replace.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.replace.header"></a><h6> <a name="fusion.algorithms.transformation.functions.replace.header"></a><h6>
<a name="id1118260"></a> <a name="id576055"></a>
<a href="replace.html#fusion.algorithms.transformation.functions.replace.header">Header</a> <a href="replace.html#fusion.algorithms.transformation.functions.replace.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">replace</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">replace</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.replace.example"></a><h6> <a name="fusion.algorithms.transformation.functions.replace.example"></a><h6>
<a name="id1118353"></a> <a name="id576162"></a>
<a href="replace.html#fusion.algorithms.transformation.functions.replace.example">Example</a> <a href="replace.html#fusion.algorithms.transformation.functions.replace.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><a href="replace.html" title="replace"><code class="computeroutput"><span class="identifier">replace</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">2</span><span class="special">,</span> <span class="number">3</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="replace.html" title="replace"><tt class="computeroutput"><span class="identifier">replace</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">2</span><span class="special">,</span> <span class="number">3</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">3</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>replace_if</title> <title>replace_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="replace.html" title="replace"> <link rel="prev" href="replace.html" title="replace">
@ -26,16 +26,16 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.replace_if"></a><a href="replace_if.html" title="replace_if">replace_if</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.replace_if"></a><a href="replace_if.html" title="replace_if">replace_if</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.replace_if.description"></a><h6> <a name="fusion.algorithms.transformation.functions.replace_if.description"></a><h6>
<a name="id1136005"></a> <a name="id576358"></a>
<a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.description">Description</a> <a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.description">Description</a>
</h6> </h6>
<p> <p>
Replaces each element of a given sequence for which an unary function Replaces each element of a given sequence for which an unary function
object evaluates to <code class="computeroutput"><span class="keyword">true</span></code> object evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt>
replaced with a new value. replaced with a new value.
</p> </p>
<a name="fusion.algorithms.transformation.functions.replace_if.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.replace_if.synopsis"></a><h6>
<a name="id1136012"></a> <a name="id576401"></a>
<a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.synopsis">Synopsis</a> <a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -43,11 +43,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">F</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">F</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="keyword">typename</span> <span class="identifier">T</span><span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">replace_if</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/replace_if.html" title="replace_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">replace_if</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">new_value</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">,</span> <span class="identifier">T</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">new_value</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1136270"></a><p class="title"><b>Table<EFBFBD>1.57.<2E>Parameters</b></p> <a name="id576660"></a><p class="title"><b>Table<EFBFBD>1.57.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -61,7 +61,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -70,16 +70,16 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">f</span></code></td> <td><tt class="computeroutput"><span class="identifier">f</span></tt></td>
<td>A <td>A
function object for which <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> is a valid expression, convertible function object for which <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> is a valid expression, convertible
to <code class="computeroutput"><span class="keyword">bool</span></code>, for each element to <tt class="computeroutput"><span class="keyword">bool</span></tt>, for each element
<code class="computeroutput"><span class="identifier">e</span></code> in <code class="computeroutput"><span class="identifier">seq</span></code> <tt class="computeroutput"><span class="identifier">e</span></tt> in <tt class="computeroutput"><span class="identifier">seq</span></tt>
</td> </td>
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">new_value</span></code></td> <td><tt class="computeroutput"><span class="identifier">new_value</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Replacement value</td> <td>Replacement value</td>
@ -88,41 +88,41 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.replace_if.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.replace_if.expression_semantics"></a><h6>
<a name="id1136422"></a> <a name="id576832"></a>
<a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.expression_semantics">Expression <a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">replace_if</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">,</span> <span class="identifier">new_value</span><span class="special">);</span> <a href="replace_if.html" title="replace_if"><tt class="computeroutput"><span class="identifier">replace_if</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">,</span> <span class="identifier">new_value</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence with <span class="bold"><b>Semantics</b></span>: Returns a new sequence with
all the elements of <code class="computeroutput"><span class="identifier">seq</span></code>, all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>,
with <code class="computeroutput"><span class="identifier">new_value</span></code> assigned with <tt class="computeroutput"><span class="identifier">new_value</span></tt> assigned
to each element for which <code class="computeroutput"><span class="identifier">f</span></code> to each element for which <tt class="computeroutput"><span class="identifier">f</span></tt>
evaluates to <code class="computeroutput"><span class="keyword">true</span></code>. evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.replace_if.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.replace_if.complexity"></a><h6>
<a name="id1136565"></a> <a name="id576994"></a>
<a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.complexity">Complexity</a> <a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.replace_if.header"></a><h6> <a name="fusion.algorithms.transformation.functions.replace_if.header"></a><h6>
<a name="id1136593"></a> <a name="id577027"></a>
<a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.header">Header</a> <a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">replace_if</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">replace_if</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.replace_if.example"></a><h6> <a name="fusion.algorithms.transformation.functions.replace_if.example"></a><h6>
<a name="id1136686"></a> <a name="id577133"></a>
<a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.example">Example</a> <a href="replace_if.html#fusion.algorithms.transformation.functions.replace_if.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -135,7 +135,7 @@
<span class="special">}</span> <span class="special">}</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<span class="identifier">assert</span><span class="special">(</span><a href="replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">replace_if</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">odd</span><span class="special">(),</span> <span class="number">3</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">2</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="replace_if.html" title="replace_if"><tt class="computeroutput"><span class="identifier">replace_if</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">odd</span><span class="special">(),</span> <span class="number">3</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">2</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>reverse</title> <title>reverse</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="remove_if.html" title="remove_if"> <link rel="prev" href="remove_if.html" title="remove_if">
@ -26,24 +26,24 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.reverse"></a><a href="reverse.html" title="reverse">reverse</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.reverse"></a><a href="reverse.html" title="reverse">reverse</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.reverse.description"></a><h6> <a name="fusion.algorithms.transformation.functions.reverse.description"></a><h6>
<a name="id1138604"></a> <a name="id579301"></a>
<a href="reverse.html#fusion.algorithms.transformation.functions.reverse.description">Description</a> <a href="reverse.html#fusion.algorithms.transformation.functions.reverse.description">Description</a>
</h6> </h6>
<p> <p>
Returns a new sequence with the elements of the original in reverse order. Returns a new sequence with the elements of the original in reverse order.
</p> </p>
<a name="fusion.algorithms.transformation.functions.reverse.synposis"></a><h6> <a name="fusion.algorithms.transformation.functions.reverse.synposis"></a><h6>
<a name="id1138633"></a> <a name="id579333"></a>
<a href="reverse.html#fusion.algorithms.transformation.functions.reverse.synposis">Synposis</a> <a href="reverse.html#fusion.algorithms.transformation.functions.reverse.synposis">Synposis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">Sequence</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/reverse.html" title="reverse"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">reverse</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">reverse</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/reverse.html" title="reverse"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">reverse</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">reverse</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1138770"></a><p class="title"><b>Table<EFBFBD>1.60.<2E>Parameters</b></p> <a name="id579489"></a><p class="title"><b>Table<EFBFBD>1.60.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -56,7 +56,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional model of <a href="../../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional
Sequence">Bidirectional Sequence">Bidirectional
@ -67,43 +67,43 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.reverse.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.reverse.expression_semantics"></a><h6>
<a name="id1138838"></a> <a name="id579564"></a>
<a href="reverse.html#fusion.algorithms.transformation.functions.reverse.expression_semantics">Expression <a href="reverse.html#fusion.algorithms.transformation.functions.reverse.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="reverse.html" title="reverse"><code class="computeroutput"><span class="identifier">reverse</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span> <a href="reverse.html" title="reverse"><tt class="computeroutput"><span class="identifier">reverse</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional
Sequence">Bidirectional Sequence">Bidirectional
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence containing <span class="bold"><b>Semantics</b></span>: Returns a new sequence containing
all the elements of <code class="computeroutput"><span class="identifier">seq</span></code> all the elements of <tt class="computeroutput"><span class="identifier">seq</span></tt>
in reverse order. in reverse order.
</p> </p>
<a name="fusion.algorithms.transformation.functions.reverse.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.reverse.complexity"></a><h6>
<a name="id1138932"></a> <a name="id579670"></a>
<a href="reverse.html#fusion.algorithms.transformation.functions.reverse.complexity">Complexity</a> <a href="reverse.html#fusion.algorithms.transformation.functions.reverse.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.reverse.header"></a><h6> <a name="fusion.algorithms.transformation.functions.reverse.header"></a><h6>
<a name="id1138961"></a> <a name="id579703"></a>
<a href="reverse.html#fusion.algorithms.transformation.functions.reverse.header">Header</a> <a href="reverse.html#fusion.algorithms.transformation.functions.reverse.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">reverse</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">reverse</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.reverse.example"></a><h6> <a name="fusion.algorithms.transformation.functions.reverse.example"></a><h6>
<a name="id1139054"></a> <a name="id579809"></a>
<a href="reverse.html#fusion.algorithms.transformation.functions.reverse.example">Example</a> <a href="reverse.html#fusion.algorithms.transformation.functions.reverse.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<span class="identifier">assert</span><span class="special">(</span><a href="reverse.html" title="reverse"><code class="computeroutput"><span class="identifier">reverse</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">3</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="identifier">assert</span><span class="special">(</span><a href="reverse.html" title="reverse"><tt class="computeroutput"><span class="identifier">reverse</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">3</span><span class="special">))</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">1</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>transform</title> <title>transform</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="filter_if.html" title="filter_if"> <link rel="prev" href="filter_if.html" title="filter_if">
@ -26,19 +26,19 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.transform"></a><a href="transform.html" title="transform">transform</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.transform"></a><a href="transform.html" title="transform">transform</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.transform.description"></a><h6> <a name="fusion.algorithms.transformation.functions.transform.description"></a><h6>
<a name="id1116159"></a> <a name="id573674"></a>
<a href="transform.html#fusion.algorithms.transformation.functions.transform.description">Description</a> <a href="transform.html#fusion.algorithms.transformation.functions.transform.description">Description</a>
</h6> </h6>
<p> <p>
For a sequence <code class="computeroutput"><span class="identifier">seq</span></code> and For a sequence <tt class="computeroutput"><span class="identifier">seq</span></tt> and
<a href="../../concepts/poly.html" title=" Polymorphic Function <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Function Object">Polymorphic Function
Object</a> <code class="computeroutput"><span class="identifier">F</span></code>, <code class="computeroutput"><span class="identifier">transform</span></code> returns a new sequence with Object</a> <tt class="computeroutput"><span class="identifier">F</span></tt>, <tt class="computeroutput"><span class="identifier">transform</span></tt> returns a new sequence with
elements created by applying <code class="computeroutput"><span class="identifier">F</span></code> elements created by applying <tt class="computeroutput"><span class="identifier">F</span></tt>
to each element of <code class="computeroutput"><span class="identifier">seq</span></code>. to each element of <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.transform.unary_version_synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.transform.unary_version_synopsis"></a><h6>
<a name="id1116242"></a> <a name="id573768"></a>
<a href="transform.html#fusion.algorithms.transformation.functions.transform.unary_version_synopsis">Unary <a href="transform.html#fusion.algorithms.transformation.functions.transform.unary_version_synopsis">Unary
version synopsis</a> version synopsis</a>
</h6> </h6>
@ -47,11 +47,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">transform</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">transform</span><span class="special">(</span>
<span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1116420"></a><p class="title"><b>Table<EFBFBD>1.54.<2E>Parameters</b></p> <a name="id573972"></a><p class="title"><b>Table<EFBFBD>1.54.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -65,7 +65,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -74,12 +74,12 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">f</span></code></td> <td><tt class="computeroutput"><span class="identifier">f</span></tt></td>
<td>A <td>A
model of unary <a href="../../concepts/poly.html" title=" Polymorphic Function model of unary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> where <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> is a valid expression for each element Function Object</a> where <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> is a valid expression for each element
<code class="computeroutput"><span class="identifier">e</span></code> of <code class="computeroutput"><span class="identifier">seq</span></code> <tt class="computeroutput"><span class="identifier">e</span></tt> of <tt class="computeroutput"><span class="identifier">seq</span></tt>
</td> </td>
<td>Transformation <td>Transformation
function</td> function</td>
@ -88,25 +88,25 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.transform.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.transform.expression_semantics"></a><h6>
<a name="id1116553"></a> <a name="id574120"></a>
<a href="transform.html#fusion.algorithms.transformation.functions.transform.expression_semantics">Expression <a href="transform.html#fusion.algorithms.transformation.functions.transform.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span> <a href="transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a> Sequence</a>
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing <span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing
the return values of <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></code> for each element <code class="computeroutput"><span class="identifier">e</span></code> the return values of <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e</span><span class="special">)</span></tt> for each element <tt class="computeroutput"><span class="identifier">e</span></tt>
within <code class="computeroutput"><span class="identifier">seq</span></code>. within <tt class="computeroutput"><span class="identifier">seq</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.functions.transform.binary_version_synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.transform.binary_version_synopsis"></a><h6>
<a name="id1116688"></a> <a name="id574273"></a>
<a href="transform.html#fusion.algorithms.transformation.functions.transform.binary_version_synopsis">Binary <a href="transform.html#fusion.algorithms.transformation.functions.transform.binary_version_synopsis">Binary
version synopsis</a> version synopsis</a>
</h6> </h6>
@ -116,11 +116,11 @@
<span class="keyword">typename</span> <span class="identifier">Sequence2</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">F</span> <span class="keyword">typename</span> <span class="identifier">F</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">transform</span><span class="special">(</span> <span class="keyword">typename</span> <a href="../metafunctions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">transform</span><span class="special">(</span>
<span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span> <span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="identifier">F</span> <span class="identifier">f</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1116921"></a><p class="title"><b>Table<EFBFBD>1.55.<2E>Parameters</b></p> <a name="id574540"></a><p class="title"><b>Table<EFBFBD>1.55.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -134,7 +134,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq1</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq1</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -143,7 +143,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">seq2</span></code></td> <td><tt class="computeroutput"><span class="identifier">seq2</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -152,13 +152,13 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">f</span></code></td> <td><tt class="computeroutput"><span class="identifier">f</span></tt></td>
<td>A <td>A
model of binary <a href="../../concepts/poly.html" title=" Polymorphic Function model of binary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> where <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span> <span class="identifier">e2</span><span class="special">)</span></code> is a valid expression for each pair Function Object</a> where <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span> <span class="identifier">e2</span><span class="special">)</span></tt> is a valid expression for each pair
of elements <code class="computeroutput"><span class="identifier">e1</span></code> and of elements <tt class="computeroutput"><span class="identifier">e1</span></tt> and
<code class="computeroutput"><span class="identifier">e2</span></code> of <code class="computeroutput"><span class="identifier">seq1</span></code> and <code class="computeroutput"><span class="identifier">seq2</span></code> <tt class="computeroutput"><span class="identifier">e2</span></tt> of <tt class="computeroutput"><span class="identifier">seq1</span></tt> and <tt class="computeroutput"><span class="identifier">seq2</span></tt>
respectively</td> respectively</td>
<td>Transformation function</td> <td>Transformation function</td>
</tr> </tr>
@ -166,31 +166,31 @@
</table> </table>
</div> </div>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence, containing <span class="bold"><b>Semantics</b></span>: Returns a new sequence, containing
the return values of <code class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span> <span class="identifier">e2</span><span class="special">)</span></code> for each pair of elements <code class="computeroutput"><span class="identifier">e1</span></code> and <code class="computeroutput"><span class="identifier">e2</span></code> the return values of <tt class="computeroutput"><span class="identifier">f</span><span class="special">(</span><span class="identifier">e1</span><span class="special">,</span> <span class="identifier">e2</span><span class="special">)</span></tt> for each pair of elements <tt class="computeroutput"><span class="identifier">e1</span></tt> and <tt class="computeroutput"><span class="identifier">e2</span></tt>
within <code class="computeroutput"><span class="identifier">seq1</span></code> and <code class="computeroutput"><span class="identifier">seq2</span></code> respectively. within <tt class="computeroutput"><span class="identifier">seq1</span></tt> and <tt class="computeroutput"><span class="identifier">seq2</span></tt> respectively.
</p> </p>
<a name="fusion.algorithms.transformation.functions.transform.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.transform.complexity"></a><h6>
<a name="id1117202"></a> <a name="id574859"></a>
<a href="transform.html#fusion.algorithms.transformation.functions.transform.complexity">Complexity</a> <a href="transform.html#fusion.algorithms.transformation.functions.transform.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.transform.header"></a><h6> <a name="fusion.algorithms.transformation.functions.transform.header"></a><h6>
<a name="id1117230"></a> <a name="id574890"></a>
<a href="transform.html#fusion.algorithms.transformation.functions.transform.header">Header</a> <a href="transform.html#fusion.algorithms.transformation.functions.transform.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">transform</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">transform</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.transform.example"></a><h6> <a name="fusion.algorithms.transformation.functions.transform.example"></a><h6>
<a name="id1117324"></a> <a name="id574996"></a>
<a href="transform.html#fusion.algorithms.transformation.functions.transform.example">Example</a> <a href="transform.html#fusion.algorithms.transformation.functions.transform.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -209,7 +209,7 @@
<span class="special">};</span> <span class="special">};</span>
<span class="special">};</span> <span class="special">};</span>
<span class="special">...</span> <span class="special">...</span>
<span class="identifier">assert</span><span class="special">(</span><a href="transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><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">3</span><span class="special">),</span> <span class="identifier">triple</span><span class="special">())</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">6</span><span class="special">,</span><span class="number">9</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><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">3</span><span class="special">),</span> <span class="identifier">triple</span><span class="special">())</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">3</span><span class="special">,</span><span class="number">6</span><span class="special">,</span><span class="number">9</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>zip</title> <title>zip</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="join.html" title="join"> <link rel="prev" href="join.html" title="join">
@ -26,7 +26,7 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.functions.zip"></a><a href="zip.html" title="zip">zip</a></h5></div></div></div> <a name="fusion.algorithms.transformation.functions.zip"></a><a href="zip.html" title="zip">zip</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.functions.zip.description"></a><h6> <a name="fusion.algorithms.transformation.functions.zip.description"></a><h6>
<a name="id1144427"></a> <a name="id585886"></a>
<a href="zip.html#fusion.algorithms.transformation.functions.zip.description">Description</a> <a href="zip.html#fusion.algorithms.transformation.functions.zip.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
of the members of the component sequences. of the members of the component sequences.
</p> </p>
<a name="fusion.algorithms.transformation.functions.zip.synopsis"></a><h6> <a name="fusion.algorithms.transformation.functions.zip.synopsis"></a><h6>
<a name="id1144457"></a> <a name="id585920"></a>
<a href="zip.html#fusion.algorithms.transformation.functions.zip.synopsis">Synopsis</a> <a href="zip.html#fusion.algorithms.transformation.functions.zip.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -44,11 +44,11 @@
<span class="special">...</span> <span class="special">...</span>
<span class="keyword">typename</span> <span class="identifier">SequenceN</span> <span class="keyword">typename</span> <span class="identifier">SequenceN</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/zip.html" title="zip"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">zip</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence1</span><span class="special">,</span> <span class="identifier">Sequence2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">SequenceN</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="keyword">typename</span> <a href="../metafunctions/zip.html" title="zip"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">zip</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence1</span><span class="special">,</span> <span class="identifier">Sequence2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">SequenceN</span><span class="special">&gt;::</span><span class="identifier">type</span>
<span class="identifier">zip</span><span class="special">(</span><span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">SequenceN</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seqN</span><span class="special">);</span> <span class="identifier">zip</span><span class="special">(</span><span class="identifier">Sequence1</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">Sequence2</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">SequenceN</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">seqN</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1144706"></a><p class="title"><b>Table<EFBFBD>1.67.<2E>Parameters</b></p> <a name="id586203"></a><p class="title"><b>Table<EFBFBD>1.67.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td>
<code class="computeroutput"><span class="identifier">seq1</span></code> to <code class="computeroutput"><span class="identifier">seqN</span></code> <tt class="computeroutput"><span class="identifier">seq1</span></tt> to <tt class="computeroutput"><span class="identifier">seqN</span></tt>
</td> </td>
<td>Each sequence <td>Each sequence
is a model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward is a model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
@ -73,50 +73,50 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.functions.zip.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.functions.zip.expression_semantics"></a><h6>
<a name="id1144784"></a> <a name="id586290"></a>
<a href="zip.html#fusion.algorithms.transformation.functions.zip.expression_semantics">Expression <a href="zip.html#fusion.algorithms.transformation.functions.zip.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="zip.html" title="zip"><code class="computeroutput"><span class="identifier">zip</span></code></a><span class="special">(</span><span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">seqN</span><span class="special">);</span> <a href="zip.html" title="zip"><tt class="computeroutput"><span class="identifier">zip</span></tt></a><span class="special">(</span><span class="identifier">seq1</span><span class="special">,</span> <span class="identifier">seq2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">seqN</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing <span class="bold"><b>Semantics</b></span>: Returns a sequence containing
tuples of elements from sequences <code class="computeroutput"><span class="identifier">seq1</span></code> tuples of elements from sequences <tt class="computeroutput"><span class="identifier">seq1</span></tt>
to <code class="computeroutput"><span class="identifier">seqN</span></code>. For example, to <tt class="computeroutput"><span class="identifier">seqN</span></tt>. For example,
applying zip to tuples <code class="computeroutput"><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">3</span><span class="special">)</span></code> applying zip to tuples <tt class="computeroutput"><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">3</span><span class="special">)</span></tt>
and <code class="computeroutput"><span class="special">(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">,</span> and <tt class="computeroutput"><span class="special">(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">,</span>
<span class="char">'c'</span><span class="special">)</span></code> <span class="char">'c'</span><span class="special">)</span></tt>
would return <code class="computeroutput"><span class="special">((</span><span class="number">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">),(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">),(</span><span class="number">3</span><span class="special">,</span> would return <tt class="computeroutput"><span class="special">((</span><span class="number">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">),(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">),(</span><span class="number">3</span><span class="special">,</span>
<span class="char">'c'</span><span class="special">))</span></code> <span class="char">'c'</span><span class="special">))</span></tt>
</p> </p>
<a name="fusion.algorithms.transformation.functions.zip.complexity"></a><h6> <a name="fusion.algorithms.transformation.functions.zip.complexity"></a><h6>
<a name="id1145048"></a> <a name="id586588"></a>
<a href="zip.html#fusion.algorithms.transformation.functions.zip.complexity">Complexity</a> <a href="zip.html#fusion.algorithms.transformation.functions.zip.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Returns a view which is lazily evaluated. Constant. Returns a view which is lazily evaluated.
</p> </p>
<a name="fusion.algorithms.transformation.functions.zip.header"></a><h6> <a name="fusion.algorithms.transformation.functions.zip.header"></a><h6>
<a name="id1145076"></a> <a name="id586621"></a>
<a href="zip.html#fusion.algorithms.transformation.functions.zip.header">Header</a> <a href="zip.html#fusion.algorithms.transformation.functions.zip.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">zip</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">algorithm</span><span class="special">/</span><span class="identifier">transformation</span><span class="special">/</span><span class="identifier">zip</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.functions.zip.example"></a><h6> <a name="fusion.algorithms.transformation.functions.zip.example"></a><h6>
<a name="id1145169"></a> <a name="id586726"></a>
<a href="zip.html#fusion.algorithms.transformation.functions.zip.example">Example</a> <a href="zip.html#fusion.algorithms.transformation.functions.zip.example">Example</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="../../../sequences/containers/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">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span> <a href="../../../sequences/containers/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">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span>
<a href="../../../sequences/containers/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">v2</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">);</span> <a href="../../../sequences/containers/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">v2</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="zip.html" title="zip"><code class="computeroutput"><span class="identifier">zip</span></code></a><span class="special">(</span><span class="identifier">v1</span><span class="special">,</span> <span class="identifier">v2</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">),</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a><span class="special">(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">));</span> <span class="identifier">assert</span><span class="special">(</span><a href="zip.html" title="zip"><tt class="computeroutput"><span class="identifier">zip</span></tt></a><span class="special">(</span><span class="identifier">v1</span><span class="special">,</span> <span class="identifier">v2</span><span class="special">)</span> <span class="special">==</span> <a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">),</span><a href="../../../sequences/generation/functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a><span class="special">(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Metafunctions</title> <title>Metafunctions</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../transformation.html" title="Transformation"> <link rel="up" href="../transformation.html" title="Transformation">
<link rel="prev" href="functions/push_front.html" title="push_front"> <link rel="prev" href="functions/push_front.html" title="push_front">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>clear</title> <title>clear</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="reverse.html" title="reverse"> <link rel="prev" href="reverse.html" title="reverse">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.clear"></a><a href="clear.html" title="clear">clear</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.clear"></a><a href="clear.html" title="clear">clear</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.clear.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.clear.description"></a><h6>
<a name="id1152554"></a> <a name="id595075"></a>
<a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.description">Description</a> <a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/clear.html" title="clear"><code class="computeroutput"><span class="identifier">clear</span></code></a>, given the input sequence Returns the result type of <a href="../functions/clear.html" title="clear"><tt class="computeroutput"><span class="identifier">clear</span></tt></a>, given the input sequence
type. type.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.clear.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.clear.synopsis"></a><h6>
<a name="id1152597"></a> <a name="id595124"></a>
<a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.synopsis">Synopsis</a> <a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1152686"></a><p class="title"><b>Table<EFBFBD>1.80.<2E>Parameters</b></p> <a name="id595225"></a><p class="title"><b>Table<EFBFBD>1.80.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -60,7 +60,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Operation's argument</td> <td>Operation's argument</td>
@ -68,30 +68,30 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.clear.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.clear.expression_semantics"></a><h6>
<a name="id1152746"></a> <a name="id595293"></a>
<a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.expression_semantics">Expression <a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="clear.html" title="clear"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">clear</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="clear.html" title="clear"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">clear</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns an empty sequence. <span class="bold"><b>Semantics</b></span>: Returns an empty sequence.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.clear.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.clear.complexity"></a><h6>
<a name="id1152844"></a> <a name="id595407"></a>
<a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.complexity">Complexity</a> <a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.clear.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.clear.header"></a><h6>
<a name="id1152872"></a> <a name="id595438"></a>
<a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.header">Header</a> <a href="clear.html#fusion.algorithms.transformation.metafunctions.clear.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>erase</title> <title>erase</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="clear.html" title="clear"> <link rel="prev" href="clear.html" title="clear">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.erase"></a><a href="erase.html" title="erase">erase</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.erase"></a><a href="erase.html" title="erase">erase</a></h5></div></div></div>
<p> <p>
Returns the result type of <a href="../functions/erase.html" title="erase"><code class="computeroutput"><span class="identifier">erase</span></code></a>, given the input sequence Returns the result type of <a href="../functions/erase.html" title="erase"><tt class="computeroutput"><span class="identifier">erase</span></tt></a>, given the input sequence
and range delimiting iterator types. and range delimiting iterator types.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.erase.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase.description"></a><h6>
<a name="id1153006"></a> <a name="id595588"></a>
<a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.description">Description</a> <a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.description">Description</a>
</h6> </h6>
<a name="fusion.algorithms.transformation.metafunctions.erase.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase.synopsis"></a><h6>
<a name="id1153014"></a> <a name="id595615"></a>
<a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.synopsis">Synopsis</a> <a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1153157"></a><p class="title"><b>Table<EFBFBD>1.81.<2E>Parameters</b></p> <a name="id595760"></a><p class="title"><b>Table<EFBFBD>1.81.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -71,7 +71,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">It1</span></code></td> <td><tt class="computeroutput"><span class="identifier">It1</span></tt></td>
<td>A <td>A
model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -80,7 +80,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">It2</span></code></td> <td><tt class="computeroutput"><span class="identifier">It2</span></tt></td>
<td>A <td>A
model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -92,44 +92,44 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.erase.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase.expression_semantics"></a><h6>
<a name="id1153275"></a> <a name="id595892"></a>
<a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.expression_semantics">Expression <a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">It1</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="erase.html" title="erase"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">It1</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence with <span class="bold"><b>Semantics</b></span>: Returns a new sequence with
the element at <code class="computeroutput"><span class="identifier">It1</span></code> removed. the element at <tt class="computeroutput"><span class="identifier">It1</span></tt> removed.
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
<a href="erase.html" title="erase"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">It1</span><span class="special">,</span> <span class="identifier">It2</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="erase.html" title="erase"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">It1</span><span class="special">,</span> <span class="identifier">It2</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a new sequence with <span class="bold"><b>Semantics</b></span>: Returns a new sequence with
the elements between <code class="computeroutput"><span class="identifier">It1</span></code> the elements between <tt class="computeroutput"><span class="identifier">It1</span></tt>
and <code class="computeroutput"><span class="identifier">It2</span></code> removed. and <tt class="computeroutput"><span class="identifier">It2</span></tt> removed.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.erase.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase.complexity"></a><h6>
<a name="id1170980"></a> <a name="id596153"></a>
<a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.complexity">Complexity</a> <a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.erase.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase.header"></a><h6>
<a name="id1171008"></a> <a name="id596185"></a>
<a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.header">Header</a> <a href="erase.html#fusion.algorithms.transformation.metafunctions.erase.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>erase_key</title> <title>erase_key</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="erase.html" title="erase"> <link rel="prev" href="erase.html" title="erase">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.erase_key"></a><a href="erase_key.html" title="erase_key">erase_key</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.erase_key"></a><a href="erase_key.html" title="erase_key">erase_key</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.erase_key.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase_key.description"></a><h6>
<a name="id1171124"></a> <a name="id596315"></a>
<a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.description">Description</a> <a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/erase_key.html" title="erase_key"><code class="computeroutput"><span class="identifier">erase_key</span></code></a>, given the sequence Returns the result type of <a href="../functions/erase_key.html" title="erase_key"><tt class="computeroutput"><span class="identifier">erase_key</span></tt></a>, given the sequence
and key types. and key types.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.erase_key.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase_key.synopsis"></a><h6>
<a name="id1171169"></a> <a name="id596366"></a>
<a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.synopsis">Synopsis</a> <a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1171274"></a><p class="title"><b>Table<EFBFBD>1.82.<2E>Parameters</b></p> <a name="id596484"></a><p class="title"><b>Table<EFBFBD>1.82.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/associative_sequence.html" title="Associative model of <a href="../../../sequences/concepts/associative_sequence.html" title="Associative
Sequence">Associative Sequence">Associative
@ -71,7 +71,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Key</span></code></td> <td><tt class="computeroutput"><span class="identifier">Key</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Key type</td> <td>Key type</td>
@ -80,32 +80,32 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.erase_key.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase_key.expression_semantics"></a><h6>
<a name="id1171358"></a> <a name="id596580"></a>
<a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.expression_semantics">Expression <a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="erase_key.html" title="erase_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase_key</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="erase_key.html" title="erase_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">erase_key</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/associative_sequence.html" title="Associative <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/associative_sequence.html" title="Associative
Sequence">Associative Sequence">Associative
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the <span class="bold"><b>Semantics</b></span>: Returns a sequence with the
elements of <code class="computeroutput"><span class="identifier">Sequence</span></code>, elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>,
except those with key <code class="computeroutput"><span class="identifier">Key</span></code>. except those with key <tt class="computeroutput"><span class="identifier">Key</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.erase_key.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase_key.complexity"></a><h6>
<a name="id1171486"></a> <a name="id596724"></a>
<a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.complexity">Complexity</a> <a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.erase_key.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.erase_key.header"></a><h6>
<a name="id1171494"></a> <a name="id596756"></a>
<a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.header">Header</a> <a href="erase_key.html#fusion.algorithms.transformation.metafunctions.erase_key.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>filter</title> <title>filter</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="../metafunctions.html" title="Metafunctions"> <link rel="prev" href="../metafunctions.html" title="Metafunctions">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.filter"></a><a href="filter.html" title="filter">filter</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.filter"></a><a href="filter.html" title="filter">filter</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.filter.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter.description"></a><h6>
<a name="id1148203"></a> <a name="id590157"></a>
<a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.description">Description</a> <a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/filter.html" title="filter"><code class="computeroutput"><span class="identifier">filter</span></code></a> given the sequence type Returns the result type of <a href="../functions/filter.html" title="filter"><tt class="computeroutput"><span class="identifier">filter</span></tt></a> given the sequence type
and type to retain. and type to retain.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.filter.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter.synopsis"></a><h6>
<a name="id1148246"></a> <a name="id590206"></a>
<a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.synopsis">Synopsis</a> <a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1148350"></a><p class="title"><b>Table<EFBFBD>1.72.<2E>Parameter</b></p> <a name="id590324"></a><p class="title"><b>Table<EFBFBD>1.72.<2E>Parameter</b></p>
<table class="table" summary="Parameter"> <table class="table" summary="Parameter">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -71,7 +71,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">T</span></code></td> <td><tt class="computeroutput"><span class="identifier">T</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Type to retain</td> <td>Type to retain</td>
@ -80,34 +80,34 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.filter.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter.expression_semantics"></a><h6>
<a name="id1148436"></a> <a name="id590421"></a>
<a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.expression_semantics">Expression <a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="filter.html" title="filter"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="filter.html" title="filter"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing <span class="bold"><b>Semantics</b></span>: Returns a sequence containing
the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> the elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
that are of type <code class="computeroutput"><span class="identifier">T</span></code>. Equivalent that are of type <tt class="computeroutput"><span class="identifier">T</span></tt>. Equivalent
to <code class="computeroutput"><a href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> to <tt class="computeroutput"><a href="filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span></code>. <span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.filter.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter.complexity"></a><h6>
<a name="id1148660"></a> <a name="id590677"></a>
<a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.complexity">Complexity</a> <a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.filter.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter.header"></a><h6>
<a name="id1148668"></a> <a name="id590709"></a>
<a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.header">Header</a> <a href="filter.html#fusion.algorithms.transformation.metafunctions.filter.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>filter_if</title> <title>filter_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="filter.html" title="filter"> <link rel="prev" href="filter.html" title="filter">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.filter_if"></a><a href="filter_if.html" title="filter_if">filter_if</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.filter_if"></a><a href="filter_if.html" title="filter_if">filter_if</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.filter_if.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter_if.description"></a><h6>
<a name="id1148802"></a> <a name="id590837"></a>
<a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.description">Description</a> <a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">filter_if</span></code></a> given the sequence Returns the result type of <a href="../functions/filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">filter_if</span></tt></a> given the sequence
and unary MPL Lambda Expression predicate type. and unary MPL Lambda Expression predicate type.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.filter_if.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter_if.synopsis"></a><h6>
<a name="id1148848"></a> <a name="id590888"></a>
<a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.synopsis">Synopsis</a> <a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1148953"></a><p class="title"><b>Table<EFBFBD>1.73.<2E>Parameter</b></p> <a name="id591007"></a><p class="title"><b>Table<EFBFBD>1.73.<2E>Parameter</b></p>
<table class="table" summary="Parameter"> <table class="table" summary="Parameter">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -71,7 +71,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Pred</span></code></td> <td><tt class="computeroutput"><span class="identifier">Pred</span></tt></td>
<td>A <td>A
unary MPL Lambda Expression</td> unary MPL Lambda Expression</td>
<td>Type to retain</td> <td>Type to retain</td>
@ -80,33 +80,33 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.filter_if.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter_if.expression_semantics"></a><h6>
<a name="id1149037"></a> <a name="id591103"></a>
<a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.expression_semantics">Expression <a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="filter_if.html" title="filter_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="filter_if.html" title="filter_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">filter_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing <span class="bold"><b>Semantics</b></span>: Returns a sequence containing
the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> the elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
for which <code class="computeroutput"><span class="identifier">Pred</span></code> evaluates for which <tt class="computeroutput"><span class="identifier">Pred</span></tt> evaluates
to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>. to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.filter_if.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter_if.complexity"></a><h6>
<a name="id1149193"></a> <a name="id591279"></a>
<a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.complexity">Complexity</a> <a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.filter_if.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.filter_if.header"></a><h6>
<a name="id1149200"></a> <a name="id591311"></a>
<a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.header">Header</a> <a href="filter_if.html#fusion.algorithms.transformation.metafunctions.filter_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>insert</title> <title>insert</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="erase_key.html" title="erase_key"> <link rel="prev" href="erase_key.html" title="erase_key">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.insert"></a><a href="insert.html" title="insert">insert</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.insert"></a><a href="insert.html" title="insert">insert</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.insert.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert.description"></a><h6>
<a name="id1171630"></a> <a name="id596887"></a>
<a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.description">Description</a> <a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/insert.html" title="insert"><code class="computeroutput"><span class="identifier">insert</span></code></a>, given the sequence, Returns the result type of <a href="../functions/insert.html" title="insert"><tt class="computeroutput"><span class="identifier">insert</span></tt></a>, given the sequence,
position iterator and insertion types. position iterator and insertion types.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.insert.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert.synopsis"></a><h6>
<a name="id1171674"></a> <a name="id596937"></a>
<a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.synopsis">Synopsis</a> <a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -49,7 +49,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1171793"></a><p class="title"><b>Table<EFBFBD>1.83.<2E>Parameters</b></p> <a name="id597073"></a><p class="title"><b>Table<EFBFBD>1.83.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -63,7 +63,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -72,7 +72,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Position</span></code></td> <td><tt class="computeroutput"><span class="identifier">Position</span></tt></td>
<td>A <td>A
model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -81,7 +81,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">T</span></code></td> <td><tt class="computeroutput"><span class="identifier">T</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Operation's argument</td> <td>Operation's argument</td>
@ -90,33 +90,33 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.insert.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert.expression_semantics"></a><h6>
<a name="id1171905"></a> <a name="id597198"></a>
<a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.expression_semantics">Expression <a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="insert.html" title="insert"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Position</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="insert.html" title="insert"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Position</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence with an <span class="bold"><b>Semantics</b></span>: Returns a sequence with an
element of type <code class="computeroutput"><span class="identifier">T</span></code> inserted element of type <tt class="computeroutput"><span class="identifier">T</span></tt> inserted
at position <code class="computeroutput"><span class="identifier">Position</span></code> at position <tt class="computeroutput"><span class="identifier">Position</span></tt>
in <code class="computeroutput"><span class="identifier">Sequence</span></code>. in <tt class="computeroutput"><span class="identifier">Sequence</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.insert.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert.complexity"></a><h6>
<a name="id1172052"></a> <a name="id597365"></a>
<a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.complexity">Complexity</a> <a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.insert.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert.header"></a><h6>
<a name="id1172059"></a> <a name="id597397"></a>
<a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.header">Header</a> <a href="insert.html#fusion.algorithms.transformation.metafunctions.insert.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>insert_range</title> <title>insert_range</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="insert.html" title="insert"> <link rel="prev" href="insert.html" title="insert">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.insert_range"></a><a href="insert_range.html" title="insert_range">insert_range</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.insert_range"></a><a href="insert_range.html" title="insert_range">insert_range</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.insert_range.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert_range.description"></a><h6>
<a name="id1172194"></a> <a name="id597525"></a>
<a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.description">Description</a> <a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/insert_range.html" title="insert_range"><code class="computeroutput"><span class="identifier">insert_range</span></code></a>, given the input Returns the result type of <a href="../functions/insert_range.html" title="insert_range"><tt class="computeroutput"><span class="identifier">insert_range</span></tt></a>, given the input
sequence, position iterator and insertion range types. sequence, position iterator and insertion range types.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.insert_range.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert_range.synopsis"></a><h6>
<a name="id1172240"></a> <a name="id597576"></a>
<a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.synopsis">Synopsis</a> <a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -49,7 +49,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1172360"></a><p class="title"><b>Table<EFBFBD>1.84.<2E>Parameters</b></p> <a name="id597712"></a><p class="title"><b>Table<EFBFBD>1.84.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -63,7 +63,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -72,7 +72,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Position</span></code></td> <td><tt class="computeroutput"><span class="identifier">Position</span></tt></td>
<td>A <td>A
model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward model of <a href="../../../iterators/concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -81,7 +81,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Range</span></code></td> <td><tt class="computeroutput"><span class="identifier">Range</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -93,33 +93,33 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.insert_range.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert_range.expression_semantics"></a><h6>
<a name="id1172478"></a> <a name="id597847"></a>
<a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.expression_semantics">Expression <a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="insert_range.html" title="insert_range"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert_range</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Position</span><span class="special">,</span> <span class="identifier">Range</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="insert_range.html" title="insert_range"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">insert_range</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Position</span><span class="special">,</span> <span class="identifier">Range</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the <span class="bold"><b>Semantics</b></span>: Returns a sequence with the
elements of <code class="computeroutput"><span class="identifier">Range</span></code> inserted elements of <tt class="computeroutput"><span class="identifier">Range</span></tt> inserted
at position <code class="computeroutput"><span class="identifier">Position</span></code> at position <tt class="computeroutput"><span class="identifier">Position</span></tt>
into <code class="computeroutput"><span class="identifier">Sequence</span></code>. into <tt class="computeroutput"><span class="identifier">Sequence</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.insert_range.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert_range.complexity"></a><h6>
<a name="id1172627"></a> <a name="id598015"></a>
<a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.complexity">Complexity</a> <a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.insert_range.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.insert_range.header"></a><h6>
<a name="id1172657"></a> <a name="id598047"></a>
<a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.header">Header</a> <a href="insert_range.html#fusion.algorithms.transformation.metafunctions.insert_range.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>join</title> <title>join</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="insert_range.html" title="insert_range"> <link rel="prev" href="insert_range.html" title="insert_range">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.join"></a><a href="join.html" title="join">join</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.join"></a><a href="join.html" title="join">join</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.join.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.join.description"></a><h6>
<a name="id1172768"></a> <a name="id598176"></a>
<a href="join.html#fusion.algorithms.transformation.metafunctions.join.description">Description</a> <a href="join.html#fusion.algorithms.transformation.metafunctions.join.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result of joining 2 sequences, given the sequence types. Returns the result of joining 2 sequences, given the sequence types.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.join.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.join.synopsis"></a><h6>
<a name="id1172797"></a> <a name="id598208"></a>
<a href="join.html#fusion.algorithms.transformation.metafunctions.join.synopsis">Synopsis</a> <a href="join.html#fusion.algorithms.transformation.metafunctions.join.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,33 +47,33 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.metafunctions.join.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.join.expression_semantics"></a><h6>
<a name="id1172912"></a> <a name="id598337"></a>
<a href="join.html#fusion.algorithms.transformation.metafunctions.join.expression_semantics">Expression <a href="join.html#fusion.algorithms.transformation.metafunctions.join.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="join.html" title="join"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">join</span></code></a><span class="special">&lt;</span><span class="identifier">LhSequence</span><span class="special">,</span> <span class="identifier">RhSequence</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="join.html" title="join"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">join</span></tt></a><span class="special">&lt;</span><span class="identifier">LhSequence</span><span class="special">,</span> <span class="identifier">RhSequence</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing <span class="bold"><b>Semantics</b></span>: Returns a sequence containing
the elements of <code class="computeroutput"><span class="identifier">LhSequence</span></code> the elements of <tt class="computeroutput"><span class="identifier">LhSequence</span></tt>
followed by the elements of <code class="computeroutput"><span class="identifier">RhSequence</span></code>. followed by the elements of <tt class="computeroutput"><span class="identifier">RhSequence</span></tt>.
The order of the elements in the 2 sequences is preserved. The order of the elements in the 2 sequences is preserved.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.join.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.join.complexity"></a><h6>
<a name="id1173040"></a> <a name="id598482"></a>
<a href="join.html#fusion.algorithms.transformation.metafunctions.join.complexity">Complexity</a> <a href="join.html#fusion.algorithms.transformation.metafunctions.join.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.join.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.join.header"></a><h6>
<a name="id1173068"></a> <a name="id598514"></a>
<a href="join.html#fusion.algorithms.transformation.metafunctions.join.header">Header</a> <a href="join.html#fusion.algorithms.transformation.metafunctions.join.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>pop_back</title> <title>pop_back</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="zip.html" title="zip"> <link rel="prev" href="zip.html" title="zip">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.pop_back"></a><a href="pop_back.html" title="pop_back">pop_back</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.pop_back"></a><a href="pop_back.html" title="pop_back">pop_back</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.pop_back.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_back.description"></a><h6>
<a name="id1173758"></a> <a name="id599291"></a>
<a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.description">Description</a> <a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/pop_back.html" title="pop_back"><code class="computeroutput"><span class="identifier">pop_back</span></code></a>, given the input sequence Returns the result type of <a href="../functions/pop_back.html" title="pop_back"><tt class="computeroutput"><span class="identifier">pop_back</span></tt></a>, given the input sequence
type. type.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.pop_back.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_back.synopsis"></a><h6>
<a name="id1173804"></a> <a name="id377456"></a>
<a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.synopsis">Synopsis</a> <a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1173885"></a><p class="title"><b>Table<EFBFBD>1.85.<2E>Parameters</b></p> <a name="id377547"></a><p class="title"><b>Table<EFBFBD>1.85.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -60,7 +60,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -71,32 +71,32 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.pop_back.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_back.expression_semantics"></a><h6>
<a name="id1173946"></a> <a name="id379440"></a>
<a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.expression_semantics">Expression <a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="pop_back.html" title="pop_back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_back</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="pop_back.html" title="pop_back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_back</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence with all <span class="bold"><b>Semantics</b></span>: Returns a sequence with all
the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> the elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
except the last element. except the last element.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.pop_back.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_back.complexity"></a><h6>
<a name="id1174045"></a> <a name="id601047"></a>
<a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.complexity">Complexity</a> <a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.pop_back.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_back.header"></a><h6>
<a name="id1174052"></a> <a name="id601074"></a>
<a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.header">Header</a> <a href="pop_back.html#fusion.algorithms.transformation.metafunctions.pop_back.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>pop_front</title> <title>pop_front</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="pop_back.html" title="pop_back"> <link rel="prev" href="pop_back.html" title="pop_back">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.pop_front"></a><a href="pop_front.html" title="pop_front">pop_front</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.pop_front"></a><a href="pop_front.html" title="pop_front">pop_front</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.pop_front.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_front.description"></a><h6>
<a name="id1174172"></a> <a name="id601188"></a>
<a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.description">Description</a> <a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/pop_front.html" title="pop_front"><code class="computeroutput"><span class="identifier">pop_front</span></code></a>, given the input sequence Returns the result type of <a href="../functions/pop_front.html" title="pop_front"><tt class="computeroutput"><span class="identifier">pop_front</span></tt></a>, given the input sequence
type. type.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.pop_front.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_front.synopsis"></a><h6>
<a name="id1174213"></a> <a name="id601232"></a>
<a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.synopsis">Synopsis</a> <a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1174294"></a><p class="title"><b>Table<EFBFBD>1.86.<2E>Parameters</b></p> <a name="id601323"></a><p class="title"><b>Table<EFBFBD>1.86.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -60,7 +60,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -71,32 +71,32 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.pop_front.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_front.expression_semantics"></a><h6>
<a name="id1174355"></a> <a name="id601393"></a>
<a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.expression_semantics">Expression <a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="pop_front.html" title="pop_front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_front</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="pop_front.html" title="pop_front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">pop_front</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence with all <span class="bold"><b>Semantics</b></span>: Returns a sequence with all
the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> the elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
except the first element. except the first element.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.pop_front.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_front.complexity"></a><h6>
<a name="id1174454"></a> <a name="id601504"></a>
<a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.complexity">Complexity</a> <a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.pop_front.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.pop_front.header"></a><h6>
<a name="id1174461"></a> <a name="id601532"></a>
<a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.header">Header</a> <a href="pop_front.html#fusion.algorithms.transformation.metafunctions.pop_front.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>push_back</title> <title>push_back</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="pop_front.html" title="pop_front"> <link rel="prev" href="pop_front.html" title="pop_front">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.push_back"></a><a href="push_back.html" title="push_back">push_back</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.push_back"></a><a href="push_back.html" title="push_back">push_back</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.push_back.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_back.description"></a><h6>
<a name="id1174581"></a> <a name="id601646"></a>
<a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.description">Description</a> <a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a>, given the types of Returns the result type of <a href="../functions/push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a>, given the types of
the input sequence and element to push. the input sequence and element to push.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.push_back.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_back.synopsis"></a><h6>
<a name="id1174622"></a> <a name="id601692"></a>
<a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.synopsis">Synopsis</a> <a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1174717"></a><p class="title"><b>Table<EFBFBD>1.87.<2E>Parameters</b></p> <a name="id601799"></a><p class="title"><b>Table<EFBFBD>1.87.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -71,7 +71,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">T</span></code></td> <td><tt class="computeroutput"><span class="identifier">T</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Operation's argument</td> <td>Operation's argument</td>
@ -80,33 +80,33 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.push_back.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_back.expression_semantics"></a><h6>
<a name="id1174796"></a> <a name="id601888"></a>
<a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.expression_semantics">Expression <a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_back</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_back</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the <span class="bold"><b>Semantics</b></span>: Returns a sequence with the
elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
and an element of type <code class="computeroutput"><span class="identifier">T</span></code> and an element of type <tt class="computeroutput"><span class="identifier">T</span></tt>
added to the end. added to the end.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.push_back.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_back.complexity"></a><h6>
<a name="id1174912"></a> <a name="id602018"></a>
<a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.complexity">Complexity</a> <a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.push_back.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_back.header"></a><h6>
<a name="id1174919"></a> <a name="id602046"></a>
<a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.header">Header</a> <a href="push_back.html#fusion.algorithms.transformation.metafunctions.push_back.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>push_front</title> <title>push_front</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="push_back.html" title="push_back"> <link rel="prev" href="push_back.html" title="push_back">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.push_front"></a><a href="push_front.html" title="push_front">push_front</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.push_front"></a><a href="push_front.html" title="push_front">push_front</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.push_front.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_front.description"></a><h6>
<a name="id1175039"></a> <a name="id602161"></a>
<a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.description">Description</a> <a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/push_front.html" title="push_front"><code class="computeroutput"><span class="identifier">push_front</span></code></a>, given the types Returns the result type of <a href="../functions/push_front.html" title="push_front"><tt class="computeroutput"><span class="identifier">push_front</span></tt></a>, given the types
of the input sequence and element to push. of the input sequence and element to push.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.push_front.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_front.synopsis"></a><h6>
<a name="id1175080"></a> <a name="id602206"></a>
<a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.synopsis">Synopsis</a> <a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1175175"></a><p class="title"><b>Table<EFBFBD>1.88.<2E>Parameters</b></p> <a name="id602314"></a><p class="title"><b>Table<EFBFBD>1.88.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -71,7 +71,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">T</span></code></td> <td><tt class="computeroutput"><span class="identifier">T</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Operation's argument</td> <td>Operation's argument</td>
@ -80,33 +80,33 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.push_front.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_front.expression_semantics"></a><h6>
<a name="id1175253"></a> <a name="id602403"></a>
<a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.expression_semantics">Expression <a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="push_front.html" title="push_front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_front</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="push_front.html" title="push_front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">push_front</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the <span class="bold"><b>Semantics</b></span>: Returns a sequence with the
elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
and an element of type <code class="computeroutput"><span class="identifier">T</span></code> and an element of type <tt class="computeroutput"><span class="identifier">T</span></tt>
added to the beginning. added to the beginning.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.push_front.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_front.complexity"></a><h6>
<a name="id1175370"></a> <a name="id602533"></a>
<a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.complexity">Complexity</a> <a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.push_front.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.push_front.header"></a><h6>
<a name="id1175396"></a> <a name="id602561"></a>
<a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.header">Header</a> <a href="push_front.html#fusion.algorithms.transformation.metafunctions.push_front.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>remove</title> <title>remove</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="replace_if.html" title="replace_if"> <link rel="prev" href="replace_if.html" title="replace_if">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.remove"></a><a href="remove.html" title="remove">remove</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.remove"></a><a href="remove.html" title="remove">remove</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.remove.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove.description"></a><h6>
<a name="id1150944"></a> <a name="id593258"></a>
<a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.description">Description</a> <a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/remove.html" title="remove"><code class="computeroutput"><span class="identifier">remove</span></code></a>, given the sequence and Returns the result type of <a href="../functions/remove.html" title="remove"><tt class="computeroutput"><span class="identifier">remove</span></tt></a>, given the sequence and
removal types. removal types.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.remove.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove.synopsis"></a><h6>
<a name="id1150988"></a> <a name="id593308"></a>
<a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.synopsis">Synopsis</a> <a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1151092"></a><p class="title"><b>Table<EFBFBD>1.77.<2E>Parameters</b></p> <a name="id593426"></a><p class="title"><b>Table<EFBFBD>1.77.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -71,7 +71,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">T</span></code></td> <td><tt class="computeroutput"><span class="identifier">T</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>Remove elements of this type</td> <td>Remove elements of this type</td>
@ -80,34 +80,34 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.remove.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove.expression_semantics"></a><h6>
<a name="id1151177"></a> <a name="id593522"></a>
<a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.expression_semantics">Expression <a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="remove.html" title="remove"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="remove.html" title="remove"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing <span class="bold"><b>Semantics</b></span>: Returns a sequence containing
the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> the elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
not of type <code class="computeroutput"><span class="identifier">T</span></code>. Equivalent not of type <tt class="computeroutput"><span class="identifier">T</span></tt>. Equivalent
to <code class="computeroutput"><a href="replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> to <tt class="computeroutput"><a href="replace_if.html" title="replace_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span></code>. <span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">_</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.remove.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove.complexity"></a><h6>
<a name="id1151402"></a> <a name="id593777"></a>
<a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.complexity">Complexity</a> <a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.remove.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove.header"></a><h6>
<a name="id1151409"></a> <a name="id593809"></a>
<a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.header">Header</a> <a href="remove.html#fusion.algorithms.transformation.metafunctions.remove.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>remove_if</title> <title>remove_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="remove.html" title="remove"> <link rel="prev" href="remove.html" title="remove">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.remove_if"></a><a href="remove_if.html" title="remove_if">remove_if</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.remove_if"></a><a href="remove_if.html" title="remove_if">remove_if</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.remove_if.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove_if.description"></a><h6>
<a name="id1151543"></a> <a name="id593937"></a>
<a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.description">Description</a> <a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">remove_if</span></code></a>, given the input sequence Returns the result type of <a href="../functions/remove_if.html" title="remove_if"><tt class="computeroutput"><span class="identifier">remove_if</span></tt></a>, given the input sequence
and unary MPL Lambda Expression predicate types. and unary MPL Lambda Expression predicate types.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.remove_if.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove_if.synopsis"></a><h6>
<a name="id1151589"></a> <a name="id593988"></a>
<a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.synopsis">Synopsis</a> <a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1151694"></a><p class="title"><b>Table<EFBFBD>1.78.<2E>Parameters</b></p> <a name="id594107"></a><p class="title"><b>Table<EFBFBD>1.78.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -71,44 +71,44 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Pred</span></code></td> <td><tt class="computeroutput"><span class="identifier">Pred</span></tt></td>
<td>A <td>A
model of unary MPL Lambda Expression</td> model of unary MPL Lambda Expression</td>
<td>Remove elements <td>Remove elements
which evaluate to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code> which evaluate to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.remove_if.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove_if.expression_semantics"></a><h6>
<a name="id1151805"></a> <a name="id594231"></a>
<a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.expression_semantics">Expression <a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="remove_if.html" title="remove_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="remove_if.html" title="remove_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">remove_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Pred</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence containing <span class="bold"><b>Semantics</b></span>: Returns a sequence containing
the elements of <code class="computeroutput"><span class="identifier">Sequence</span></code> the elements of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
for which <code class="computeroutput"><span class="identifier">Pred</span></code> evaluates for which <tt class="computeroutput"><span class="identifier">Pred</span></tt> evaluates
to <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code>. to <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.remove_if.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove_if.complexity"></a><h6>
<a name="id1151960"></a> <a name="id594407"></a>
<a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.complexity">Complexity</a> <a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.remove_if.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.remove_if.header"></a><h6>
<a name="id1151968"></a> <a name="id594439"></a>
<a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.header">Header</a> <a href="remove_if.html#fusion.algorithms.transformation.metafunctions.remove_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>replace</title> <title>replace</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="transform.html" title="transform"> <link rel="prev" href="transform.html" title="transform">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.replace"></a><a href="replace.html" title="replace">replace</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.replace"></a><a href="replace.html" title="replace">replace</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.replace.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace.description"></a><h6>
<a name="id1149889"></a> <a name="id592066"></a>
<a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.description">Description</a> <a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/replace.html" title="replace"><code class="computeroutput"><span class="identifier">replace</span></code></a>, given the types of Returns the result type of <a href="../functions/replace.html" title="replace"><tt class="computeroutput"><span class="identifier">replace</span></tt></a>, given the types of
the input sequence and element to replace. the input sequence and element to replace.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.replace.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace.synopsis"></a><h6>
<a name="id1149933"></a> <a name="id592117"></a>
<a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.synopsis">Synopsis</a> <a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1150037"></a><p class="title"><b>Table<EFBFBD>1.75.<2E>Parameters</b></p> <a name="id592235"></a><p class="title"><b>Table<EFBFBD>1.75.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -71,7 +71,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">T</span></code></td> <td><tt class="computeroutput"><span class="identifier">T</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>The type of the search and replacement objects</td> <td>The type of the search and replacement objects</td>
@ -80,31 +80,31 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.replace.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace.expression_semantics"></a><h6>
<a name="id1150123"></a> <a name="id592331"></a>
<a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.expression_semantics">Expression <a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="replace.html" title="replace"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="replace.html" title="replace"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the return type of <span class="bold"><b>Semantics</b></span>: Returns the return type of
<a href="../functions/replace.html" title="replace"><code class="computeroutput"><span class="identifier">replace</span></code></a>. <a href="../functions/replace.html" title="replace"><tt class="computeroutput"><span class="identifier">replace</span></tt></a>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.replace.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace.complexity"></a><h6>
<a name="id1150246"></a> <a name="id592470"></a>
<a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.complexity">Complexity</a> <a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.replace.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace.header"></a><h6>
<a name="id1150254"></a> <a name="id592502"></a>
<a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.header">Header</a> <a href="replace.html#fusion.algorithms.transformation.metafunctions.replace.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>replace_if</title> <title>replace_if</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="replace.html" title="replace"> <link rel="prev" href="replace.html" title="replace">
@ -26,17 +26,17 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.replace_if"></a><a href="replace_if.html" title="replace_if">replace_if</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.replace_if"></a><a href="replace_if.html" title="replace_if">replace_if</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.replace_if.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace_if.description"></a><h6>
<a name="id1150388"></a> <a name="id592630"></a>
<a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.description">Description</a> <a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">replace_if</span></code></a>, given the types Returns the result type of <a href="../functions/replace_if.html" title="replace_if"><tt class="computeroutput"><span class="identifier">replace_if</span></tt></a>, given the types
of the sequence, <a href="../../concepts/poly.html" title=" Polymorphic Function of the sequence, <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
Function Object</a> predicate and replacement object. Function Object</a> predicate and replacement object.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.replace_if.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace_if.synopsis"></a><h6>
<a name="id1150441"></a> <a name="id592690"></a>
<a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.synopsis">Synopsis</a> <a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -50,7 +50,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1150560"></a><p class="title"><b>Table<EFBFBD>1.76.<2E>Parameters</b></p> <a name="id592825"></a><p class="title"><b>Table<EFBFBD>1.76.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -64,7 +64,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -73,7 +73,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">F</span></code></td> <td><tt class="computeroutput"><span class="identifier">F</span></tt></td>
<td>A <td>A
model of unary <a href="../../concepts/poly.html" title=" Polymorphic Function model of unary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
@ -82,7 +82,7 @@
<td>Replacement predicate</td> <td>Replacement predicate</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">T</span></code></td> <td><tt class="computeroutput"><span class="identifier">T</span></tt></td>
<td>Any <td>Any
type</td> type</td>
<td>The type of the replacement object</td> <td>The type of the replacement object</td>
@ -91,31 +91,31 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.replace_if.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace_if.expression_semantics"></a><h6>
<a name="id1150669"></a> <a name="id592948"></a>
<a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.expression_semantics">Expression <a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace_if</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">,</span><span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="replace_if.html" title="replace_if"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">replace_if</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span><span class="identifier">F</span><span class="special">,</span><span class="identifier">T</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the return type of <span class="bold"><b>Semantics</b></span>: Returns the return type of
<a href="../functions/replace_if.html" title="replace_if"><code class="computeroutput"><span class="identifier">replace_if</span></code></a>. <a href="../functions/replace_if.html" title="replace_if"><tt class="computeroutput"><span class="identifier">replace_if</span></tt></a>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.replace_if.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace_if.complexity"></a><h6>
<a name="id1150801"></a> <a name="id593098"></a>
<a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.complexity">Complexity</a> <a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.replace_if.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.replace_if.header"></a><h6>
<a name="id1150831"></a> <a name="id593130"></a>
<a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.header">Header</a> <a href="replace_if.html#fusion.algorithms.transformation.metafunctions.replace_if.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>reverse</title> <title>reverse</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="remove_if.html" title="remove_if"> <link rel="prev" href="remove_if.html" title="remove_if">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.reverse"></a><a href="reverse.html" title="reverse">reverse</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.reverse"></a><a href="reverse.html" title="reverse">reverse</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.reverse.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.reverse.description"></a><h6>
<a name="id1152102"></a> <a name="id594567"></a>
<a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.description">Description</a> <a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result type of <a href="../functions/reverse.html" title="reverse"><code class="computeroutput"><span class="identifier">reverse</span></code></a>, given the input sequence Returns the result type of <a href="../functions/reverse.html" title="reverse"><tt class="computeroutput"><span class="identifier">reverse</span></tt></a>, given the input sequence
type. type.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.reverse.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.reverse.synopsis"></a><h6>
<a name="id1152145"></a> <a name="id594616"></a>
<a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.synopsis">Synopsis</a> <a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1152234"></a><p class="title"><b>Table<EFBFBD>1.79.<2E>Parameters</b></p> <a name="id594717"></a><p class="title"><b>Table<EFBFBD>1.79.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -60,7 +60,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional model of <a href="../../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional
Sequence">Bidirectional Sequence">Bidirectional
@ -71,31 +71,31 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.reverse.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.reverse.expression_semantics"></a><h6>
<a name="id1152302"></a> <a name="id594793"></a>
<a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.expression_semantics">Expression <a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="reverse.html" title="reverse"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">reverse</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="reverse.html" title="reverse"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">reverse</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional
Sequence">Bidirectional Sequence">Bidirectional
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence with the <span class="bold"><b>Semantics</b></span>: Returns a sequence with the
elements in the reverse order to <code class="computeroutput"><span class="identifier">Sequence</span></code>. elements in the reverse order to <tt class="computeroutput"><span class="identifier">Sequence</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.reverse.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.reverse.complexity"></a><h6>
<a name="id1152412"></a> <a name="id594916"></a>
<a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.complexity">Complexity</a> <a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.reverse.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.reverse.header"></a><h6>
<a name="id1152420"></a> <a name="id594948"></a>
<a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.header">Header</a> <a href="reverse.html#fusion.algorithms.transformation.metafunctions.reverse.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>transform</title> <title>transform</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="filter_if.html" title="filter_if"> <link rel="prev" href="filter_if.html" title="filter_if">
@ -26,17 +26,17 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.transform"></a><a href="transform.html" title="transform">transform</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.transform"></a><a href="transform.html" title="transform">transform</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.transform.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.transform.description"></a><h6>
<a name="id1149334"></a> <a name="id591439"></a>
<a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.description">Description</a> <a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.description">Description</a>
</h6> </h6>
<p> <p>
Returns the result of type <a href="../functions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a>, given the sequence Returns the result of type <a href="../functions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a>, given the sequence
and <a href="../../concepts/poly.html" title=" Polymorphic Function and <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Function Object">Polymorphic Function
Object</a> types. Object</a> types.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.transform.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.transform.synopsis"></a><h6>
<a name="id1149388"></a> <a name="id591499"></a>
<a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.synopsis">Synopsis</a> <a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -50,7 +50,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id1149492"></a><p class="title"><b>Table<EFBFBD>1.74.<2E>Parameters</b></p> <a name="id591618"></a><p class="title"><b>Table<EFBFBD>1.74.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -64,7 +64,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td> <td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
<td>A <td>A
model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
@ -72,7 +72,7 @@
<td>Operation's argument</td> <td>Operation's argument</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">F</span></code></td> <td><tt class="computeroutput"><span class="identifier">F</span></tt></td>
<td>A <td>A
model of unary <a href="../../concepts/poly.html" title=" Polymorphic Function model of unary <a href="../../concepts/poly.html" title=" Polymorphic Function
Object">Polymorphic Object">Polymorphic
@ -84,31 +84,31 @@
</table> </table>
</div> </div>
<a name="fusion.algorithms.transformation.metafunctions.transform.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.transform.expression_semantics"></a><h6>
<a name="id1149585"></a> <a name="id591722"></a>
<a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.expression_semantics">Expression <a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="transform.html" title="transform"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="transform.html" title="transform"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">transform</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">F</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward <span class="bold"><b>Return type</b></span>: A model of <a href="../../../sequences/concepts/forward_sequence.html" title="Forward
Sequence">Forward Sequence">Forward
Sequence</a>. Sequence</a>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns a sequence with values <span class="bold"><b>Semantics</b></span>: Returns a sequence with values
<code class="computeroutput"><span class="identifier">F</span><span class="special">::</span><span class="identifier">result</span><span class="special">&lt;</span><span class="identifier">E</span><span class="special">&gt;::</span><span class="identifier">type</span></code> for each element type <code class="computeroutput"><span class="identifier">E</span></code> in <code class="computeroutput"><span class="identifier">Sequence</span></code>. <tt class="computeroutput"><span class="identifier">F</span><span class="special">::</span><span class="identifier">result</span><span class="special">&lt;</span><span class="identifier">E</span><span class="special">&gt;::</span><span class="identifier">type</span></tt> for each element type <tt class="computeroutput"><span class="identifier">E</span></tt> in <tt class="computeroutput"><span class="identifier">Sequence</span></tt>.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.transform.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.transform.complexity"></a><h6>
<a name="id1149748"></a> <a name="id591907"></a>
<a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.complexity">Complexity</a> <a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.transform.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.transform.header"></a><h6>
<a name="id1149755"></a> <a name="id591939"></a>
<a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.header">Header</a> <a href="transform.html#fusion.algorithms.transformation.metafunctions.transform.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>zip</title> <title>zip</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="join.html" title="join"> <link rel="prev" href="join.html" title="join">
@ -26,7 +26,7 @@
<div class="titlepage"><div><div><h5 class="title"> <div class="titlepage"><div><div><h5 class="title">
<a name="fusion.algorithms.transformation.metafunctions.zip"></a><a href="zip.html" title="zip">zip</a></h5></div></div></div> <a name="fusion.algorithms.transformation.metafunctions.zip"></a><a href="zip.html" title="zip">zip</a></h5></div></div></div>
<a name="fusion.algorithms.transformation.metafunctions.zip.description"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.zip.description"></a><h6>
<a name="id1173179"></a> <a name="id598640"></a>
<a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.description">Description</a> <a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.description">Description</a>
</h6> </h6>
<p> <p>
@ -34,7 +34,7 @@
of the members of the component sequences. of the members of the component sequences.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.zip.synopsis"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.zip.synopsis"></a><h6>
<a name="id1173209"></a> <a name="id598674"></a>
<a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.synopsis">Synopsis</a> <a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.synopsis">Synopsis</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
@ -50,37 +50,37 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<a name="fusion.algorithms.transformation.metafunctions.zip.expression_semantics"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.zip.expression_semantics"></a><h6>
<a name="id1173344"></a> <a name="id598826"></a>
<a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.expression_semantics">Expression <a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.expression_semantics">Expression
Semantics</a> Semantics</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">
<a href="zip.html" title="zip"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">zip</span></code></a><span class="special">&lt;</span><span class="identifier">Sequence1</span><span class="special">,</span> <span class="identifier">Sequence2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">SequenceN</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="zip.html" title="zip"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">zip</span></tt></a><span class="special">&lt;</span><span class="identifier">Sequence1</span><span class="special">,</span> <span class="identifier">Sequence2</span><span class="special">,</span> <span class="special">...</span> <span class="identifier">SequenceN</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of the most restrictive <span class="bold"><b>Return type</b></span>: A model of the most restrictive
traversal category of sequences <code class="computeroutput"><span class="identifier">Sequence1</span></code> traversal category of sequences <tt class="computeroutput"><span class="identifier">Sequence1</span></tt>
to <code class="computeroutput"><span class="identifier">SequenceN</span></code>. to <tt class="computeroutput"><span class="identifier">SequenceN</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Return a sequence containing <span class="bold"><b>Semantics</b></span>: Return a sequence containing
tuples of elements from each sequence. For example, applying zip to tuples tuples of elements from each sequence. For example, applying zip to tuples
<code class="computeroutput"><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="number">2</span><span class="special">,</span> <tt class="computeroutput"><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">3</span><span class="special">)</span></code> <span class="number">3</span><span class="special">)</span></tt>
and <code class="computeroutput"><span class="special">(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">,</span> and <tt class="computeroutput"><span class="special">(</span><span class="char">'a'</span><span class="special">,</span> <span class="char">'b'</span><span class="special">,</span>
<span class="char">'c'</span><span class="special">)</span></code> <span class="char">'c'</span><span class="special">)</span></tt>
would return <code class="computeroutput"><span class="special">((</span><span class="number">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">),(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">),(</span><span class="number">3</span><span class="special">,</span> would return <tt class="computeroutput"><span class="special">((</span><span class="number">1</span><span class="special">,</span> <span class="char">'a'</span><span class="special">),(</span><span class="number">2</span><span class="special">,</span> <span class="char">'b'</span><span class="special">),(</span><span class="number">3</span><span class="special">,</span>
<span class="char">'c'</span><span class="special">))</span></code> <span class="char">'c'</span><span class="special">))</span></tt>
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.zip.complexity"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.zip.complexity"></a><h6>
<a name="id1173616"></a> <a name="id599133"></a>
<a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.complexity">Complexity</a> <a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.complexity">Complexity</a>
</h6> </h6>
<p> <p>
Constant. Constant.
</p> </p>
<a name="fusion.algorithms.transformation.metafunctions.zip.header"></a><h6> <a name="fusion.algorithms.transformation.metafunctions.zip.header"></a><h6>
<a name="id1173644"></a> <a name="id599165"></a>
<a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.header">Header</a> <a href="zip.html#fusion.algorithms.transformation.metafunctions.zip.header">Header</a>
</h6> </h6>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Change log</title> <title>Change log</title>
<link rel="stylesheet" href="../boostbook.css" type="text/css"> <link rel="stylesheet" href="../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="prev" href="notes.html" title="Notes"> <link rel="prev" href="notes.html" title="Notes">
@ -30,11 +30,11 @@
</p> </p>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li> <li>
Sep 27, 2006: Added <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">tuple</span></code> Sep 27, 2006: Added <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">tuple</span></tt>
support. support.
</li> </li>
<li> <li>
Nov 17, 2006: Added <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">variant</span></code> Nov 17, 2006: Added <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">variant</span></tt>
support. support.
</li> </li>
</ul></div> </ul></div>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Extension</title> <title>Extension</title>
<link rel="stylesheet" href="../boostbook.css" type="text/css"> <link rel="stylesheet" href="../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="prev" href="tuples/pairs.html" title="Pairs"> <link rel="prev" href="tuples/pairs.html" title="Pairs">
@ -27,8 +27,8 @@
<a name="fusion.extension"></a><a href="extension.html" title="Extension">Extension</a></h2></div></div></div> <a name="fusion.extension"></a><a href="extension.html" title="Extension">Extension</a></h2></div></div></div>
<p> <p>
The Fusion library is designed to be extensible, new sequences types can easily The Fusion library is designed to be extensible, new sequences types can easily
be added. In fact, the library support for <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code>, be added. In fact, the library support for <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt>,
<code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></code> and <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a> <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt> and <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
sequences is entirely provided using the extension mechanism. sequences is entirely provided using the extension mechanism.
</p> </p>
<p> <p>
@ -48,7 +48,7 @@
</li> </li>
</ol></div> </ol></div>
<a name="fusion.extension.our_example"></a><h3> <a name="fusion.extension.our_example"></a><h3>
<a name="id1181443"></a> <a name="id609634"></a>
<a href="extension.html#fusion.extension.our_example">Our example</a> <a href="extension.html#fusion.extension.our_example">Our example</a>
</h3> </h3>
<p> <p>
@ -73,14 +73,14 @@
<p> <p>
We are going to pretend that this type has been provided by a 3rd party library, We are going to pretend that this type has been provided by a 3rd party library,
and therefore cannot be modified. We shall work through all the necessary steps and therefore cannot be modified. We shall work through all the necessary steps
to enable <code class="computeroutput"><span class="identifier">example_struct</span></code> to to enable <tt class="computeroutput"><span class="identifier">example_struct</span></tt> to
serve as an <a href="sequences/concepts/associative_sequence.html" title="Associative serve as an <a href="sequences/concepts/associative_sequence.html" title="Associative
Sequence">Associative Sequence">Associative
Sequence</a> as described in the <a href="quick_start.html" title="Quick Start">Quick Sequence</a> as described in the <a href="quick_start.html" title="Quick Start">Quick
Start</a> guide. Start</a> guide.
</p> </p>
<a name="fusion.extension.enabling_tag_dispatching"></a><h3> <a name="fusion.extension.enabling_tag_dispatching"></a><h3>
<a name="id1181696"></a> <a name="id609916"></a>
<a href="extension.html#fusion.extension.enabling_tag_dispatching">Enabling Tag Dispatching</a> <a href="extension.html#fusion.extension.enabling_tag_dispatching">Enabling Tag Dispatching</a>
</h3> </h3>
<p> <p>
@ -95,9 +95,9 @@
</span><span class="special">}</span> </span><span class="special">}</span>
</pre> </pre>
<p> <p>
Next we need to enable the <code class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></code> Next we need to enable the <tt class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></tt>
metafunction to return our newly chosen tag type for operations involving our metafunction to return our newly chosen tag type for operations involving our
sequence. This is done by specializing <code class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></code> sequence. This is done by specializing <tt class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></tt>
for our sequence type. for our sequence type.
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
@ -112,8 +112,8 @@
<span class="special">}}}</span> <span class="special">}}}</span>
</pre> </pre>
<p> <p>
<code class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></code> also has a second template argument, <tt class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></tt> also has a second template argument,
that can be used in conjuction with <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">enable_if</span></code> that can be used in conjuction with <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">enable_if</span></tt>
to provide tag support for groups of related types. This feature is not necessary to provide tag support for groups of related types. This feature is not necessary
for our sequence, but for an example see the code in: for our sequence, but for an example see the code in:
</p> </p>
@ -121,7 +121,7 @@
<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">sequence</span><span class="special">/</span><span class="identifier">adapted</span><span class="special">/</span><span class="identifier">mpl</span><span class="special">/</span><span class="identifier">tag_of</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">sequence</span><span class="special">/</span><span class="identifier">adapted</span><span class="special">/</span><span class="identifier">mpl</span><span class="special">/</span><span class="identifier">tag_of</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.extension.designing_a_suitable_iterator"></a><h3> <a name="fusion.extension.designing_a_suitable_iterator"></a><h3>
<a name="id1182136"></a> <a name="id610409"></a>
<a href="extension.html#fusion.extension.designing_a_suitable_iterator">Designing a <a href="extension.html#fusion.extension.designing_a_suitable_iterator">Designing a
suitable iterator</a> suitable iterator</a>
</h3> </h3>
@ -131,9 +131,9 @@
access iterator in our example. access iterator in our example.
</p> </p>
<p> <p>
We will use a simple design, in which the 2 members of <code class="computeroutput"><span class="identifier">example_struct</span></code> We will use a simple design, in which the 2 members of <tt class="computeroutput"><span class="identifier">example_struct</span></tt>
are given numbered indices, 0 for <code class="computeroutput"><span class="identifier">name</span></code> are given numbered indices, 0 for <tt class="computeroutput"><span class="identifier">name</span></tt>
and 1 for <code class="computeroutput"><span class="identifier">age</span></code> respectively. and 1 for <tt class="computeroutput"><span class="identifier">age</span></tt> respectively.
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Struct</span><span class="special">,</span> <span class="keyword">int</span> <span class="identifier">Pos</span><span class="special">&gt;</span> <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Struct</span><span class="special">,</span> <span class="keyword">int</span> <span class="identifier">Pos</span><span class="special">&gt;</span>
@ -160,37 +160,37 @@
of the current element. of the current element.
</li> </li>
<li> <li>
The typedefs <code class="computeroutput"><span class="identifier">struct_type</span></code> The typedefs <tt class="computeroutput"><span class="identifier">struct_type</span></tt>
and <code class="computeroutput"><span class="identifier">index</span></code> provide convenient and <tt class="computeroutput"><span class="identifier">index</span></tt> provide convenient
access to information we will need later in the implementation. access to information we will need later in the implementation.
</li> </li>
<li> <li>
The typedef <code class="computeroutput"><span class="identifier">category</span></code> allows The typedef <tt class="computeroutput"><span class="identifier">category</span></tt> allows
the <code class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><a href="support/category_of.html" title="category_of"><code class="computeroutput"><span class="identifier">category_of</span></code></a></code> the <tt class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><a href="support/category_of.html" title="category_of"><tt class="computeroutput"><span class="identifier">category_of</span></tt></a></tt>
metafunction to establish the traversal category of the iterator. metafunction to establish the traversal category of the iterator.
</li> </li>
<li> <li>
The constructor stores a reference to the <code class="computeroutput"><span class="identifier">example_struct</span></code> The constructor stores a reference to the <tt class="computeroutput"><span class="identifier">example_struct</span></tt>
being iterated over. being iterated over.
</li> </li>
</ol></div> </ol></div>
<p> <p>
We also need to enable <a href="notes.html#fusion.notes.tag_dispatching"><span class="emphasis"><em>tag We also need to enable <a href="notes.html#fusion.notes.tag_dispatching"><span class="emphasis"><em>tag
dispatching</em></span></a> for our iterator type, with another specialization dispatching</em></span></a> for our iterator type, with another specialization
of <code class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></code>. of <tt class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag_of</span></tt>.
</p> </p>
<p> <p>
In isolation, the iterator implementation is pretty dry. Things should become In isolation, the iterator implementation is pretty dry. Things should become
clearer as we add features to our implementation. clearer as we add features to our implementation.
</p> </p>
<a name="fusion.extension.a_first_couple_of_instructive_features"></a><h3> <a name="fusion.extension.a_first_couple_of_instructive_features"></a><h3>
<a name="id1182703"></a> <a name="id611044"></a>
<a href="extension.html#fusion.extension.a_first_couple_of_instructive_features">A first <a href="extension.html#fusion.extension.a_first_couple_of_instructive_features">A first
couple of instructive features</a> couple of instructive features</a>
</h3> </h3>
<p> <p>
To start with, we will get the <a href="iterators/metafunctions/value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></code></a> metafunction working. To To start with, we will get the <a href="iterators/metafunctions/value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></tt></a> metafunction working. To
do this, we provide a specialization of the <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">extension</span><span class="special">::</span><span class="identifier">value_of_impl</span></code> do this, we provide a specialization of the <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">extension</span><span class="special">::</span><span class="identifier">value_of_impl</span></tt>
template for our iterator's tag type. template for our iterator's tag type.
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
@ -215,29 +215,29 @@
</pre> </pre>
<p> <p>
The implementation itself is pretty simple, it just uses 2 partial specializations The implementation itself is pretty simple, it just uses 2 partial specializations
to provide the type of the 2 different members of <code class="computeroutput"><span class="identifier">example_struct</span></code>, to provide the type of the 2 different members of <tt class="computeroutput"><span class="identifier">example_struct</span></tt>,
based on the index of the iterator. based on the index of the iterator.
</p> </p>
<p> <p>
To understand how <code class="computeroutput"><span class="identifier">value_of_impl</span></code> To understand how <tt class="computeroutput"><span class="identifier">value_of_impl</span></tt>
is used by the library we will look at the implementation of <a href="iterators/metafunctions/value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">value_of</span></code></a>: is used by the library we will look at the implementation of <a href="iterators/metafunctions/value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">value_of</span></tt></a>:
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Iterator</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Iterator</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <a href="iterators/metafunctions/value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">value_of</span></code></a> <span class="keyword">struct</span> <a href="iterators/metafunctions/value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">value_of</span></tt></a>
<span class="special">:</span> <span class="identifier">extension</span><span class="special">::</span><span class="identifier">value_of_impl</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">detail</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span> <span class="special">:</span> <span class="identifier">extension</span><span class="special">::</span><span class="identifier">value_of_impl</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">detail</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span>
<span class="keyword">template</span> <span class="identifier">apply</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="identifier">apply</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;</span>
<span class="special">{};</span> <span class="special">{};</span>
</pre> </pre>
<p> <p>
So <a href="iterators/metafunctions/value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">value_of</span></code></a> So <a href="iterators/metafunctions/value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">value_of</span></tt></a>
uses <a href="notes.html#fusion.notes.tag_dispatching"><span class="emphasis"><em>tag dispatching</em></span></a> uses <a href="notes.html#fusion.notes.tag_dispatching"><span class="emphasis"><em>tag dispatching</em></span></a>
to select an MPL Metafunction Class to provide its functionality. You will to select an MPL Metafunction Class to provide its functionality. You will
notice this pattern throughout the implementation of Fusion. notice this pattern throughout the implementation of Fusion.
</p> </p>
<p> <p>
Ok, lets enable dereferencing of our iterator. In this case we must provide Ok, lets enable dereferencing of our iterator. In this case we must provide
a suitable specialization of <code class="computeroutput"><span class="identifier">deref_impl</span></code>. a suitable specialization of <tt class="computeroutput"><span class="identifier">deref_impl</span></tt>.
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;&gt;</span> <span class="keyword">template</span><span class="special">&lt;&gt;</span>
@ -275,17 +275,17 @@
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<p> <p>
The use of <code class="computeroutput"><span class="identifier">deref_impl</span></code> is very The use of <tt class="computeroutput"><span class="identifier">deref_impl</span></tt> is very
similar to that of <code class="computeroutput"><span class="identifier">value_of_impl</span></code>, similar to that of <tt class="computeroutput"><span class="identifier">value_of_impl</span></tt>,
but it also provides some runtime functionality this time via the <code class="computeroutput"><span class="identifier">call</span></code> static member function. To see how but it also provides some runtime functionality this time via the <tt class="computeroutput"><span class="identifier">call</span></tt> static member function. To see how
<code class="computeroutput"><span class="identifier">deref_impl</span></code> is used, lets have <tt class="computeroutput"><span class="identifier">deref_impl</span></tt> is used, lets have
a look at the implementation of <a href="iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a>: a look at the implementation of <a href="iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a>:
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">namespace</span> <span class="identifier">result_of</span> <span class="keyword">namespace</span> <span class="identifier">result_of</span>
<span class="special">{</span> <span class="special">{</span>
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Iterator</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Iterator</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <a href="iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a> <span class="keyword">struct</span> <a href="iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a>
<span class="special">:</span> <span class="identifier">extension</span><span class="special">::</span><span class="identifier">deref_impl</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">detail</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span> <span class="special">:</span> <span class="identifier">extension</span><span class="special">::</span><span class="identifier">deref_impl</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">detail</span><span class="special">::</span><span class="identifier">tag_of</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span>
<span class="keyword">template</span> <span class="identifier">apply</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="identifier">apply</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;</span>
<span class="special">{};</span> <span class="special">{};</span>
@ -293,24 +293,24 @@
<span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Iterator</span><span class="special">&gt;</span> <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Iterator</span><span class="special">&gt;</span>
<span class="keyword">typename</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="keyword">typename</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;::</span><span class="identifier">type</span>
<a href="iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><span class="identifier">Iterator</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">)</span> <a href="iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><span class="identifier">Iterator</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">)</span>
<span class="special">{</span> <span class="special">{</span>
<span class="keyword">typedef</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;</span> <span class="identifier">deref_meta</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span><span class="special">&lt;</span><span class="identifier">Iterator</span><span class="special">&gt;</span> <span class="identifier">deref_meta</span><span class="special">;</span>
<span class="keyword">return</span> <span class="identifier">deref_meta</span><span class="special">::</span><span class="identifier">call</span><span class="special">(</span><span class="identifier">i</span><span class="special">);</span> <span class="keyword">return</span> <span class="identifier">deref_meta</span><span class="special">::</span><span class="identifier">call</span><span class="special">(</span><span class="identifier">i</span><span class="special">);</span>
<span class="special">}</span> <span class="special">}</span>
</pre> </pre>
<p> <p>
So again <a href="iterators/metafunctions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></code></a> uses <a href="notes.html#fusion.notes.tag_dispatching"><span class="emphasis"><em>tag So again <a href="iterators/metafunctions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></tt></a> uses <a href="notes.html#fusion.notes.tag_dispatching"><span class="emphasis"><em>tag
dispatching</em></span></a> in exactly the same way as the <a href="iterators/metafunctions/value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">value_of</span></code></a> implementation. The runtime dispatching</em></span></a> in exactly the same way as the <a href="iterators/metafunctions/value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">value_of</span></tt></a> implementation. The runtime
functionality used by <a href="iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a> is provided by the <code class="computeroutput"><span class="identifier">call</span></code> static function of the selected MPL functionality used by <a href="iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a> is provided by the <tt class="computeroutput"><span class="identifier">call</span></tt> static function of the selected MPL
Metafunction Class. Metafunction Class.
</p> </p>
<p> <p>
The actual implementation of <code class="computeroutput"><span class="identifier">deref_impl</span></code> The actual implementation of <tt class="computeroutput"><span class="identifier">deref_impl</span></tt>
is slightly more complex than that of <code class="computeroutput"><span class="identifier">value_of_impl</span></code>. is slightly more complex than that of <tt class="computeroutput"><span class="identifier">value_of_impl</span></tt>.
We also need to implement the <code class="computeroutput"><span class="identifier">call</span></code> We also need to implement the <tt class="computeroutput"><span class="identifier">call</span></tt>
function, which returns a reference to the appropriate member of the underlying function, which returns a reference to the appropriate member of the underlying
sequence. We also require a little bit of metaprogramming to return <code class="computeroutput"><span class="keyword">const</span></code> references if the underlying sequence sequence. We also require a little bit of metaprogramming to return <tt class="computeroutput"><span class="keyword">const</span></tt> references if the underlying sequence
is const. is const.
</p> </p>
<div class="note"><table border="0" summary="Note"> <div class="note"><table border="0" summary="Note">
@ -318,23 +318,23 @@
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../images/note.png"></td> <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../images/note.png"></td>
<th align="left">Note</th> <th align="left">Note</th>
</tr> </tr>
<tr><td align="left" valign="top"><p> <tr><td colspan="2" align="left" valign="top"><p>
Although there is a fair amount of left to do to produce a fully fledged Although there is a fair amount of left to do to produce a fully fledged
Fusion sequence, <a href="iterators/metafunctions/value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">value_of</span></code></a> and <a href="iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a> illustrate all the signficant Fusion sequence, <a href="iterators/metafunctions/value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">value_of</span></tt></a> and <a href="iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a> illustrate all the signficant
concepts required. The remainder of the process is very repetitive, simply concepts required. The remainder of the process is very repetitive, simply
requiring implementation of a suitable <code class="computeroutput"><span class="identifier">xxxx_impl</span></code> requiring implementation of a suitable <tt class="computeroutput"><span class="identifier">xxxx_impl</span></tt>
for each feature <code class="computeroutput"><span class="identifier">xxxx</span></code>. for each feature <tt class="computeroutput"><span class="identifier">xxxx</span></tt>.
</p></td></tr> </p></td></tr>
</table></div> </table></div>
<a name="fusion.extension.implementing_the_remaining_iterator_functionality"></a><h3> <a name="fusion.extension.implementing_the_remaining_iterator_functionality"></a><h3>
<a name="id1184695"></a> <a name="id613285"></a>
<a href="extension.html#fusion.extension.implementing_the_remaining_iterator_functionality">Implementing <a href="extension.html#fusion.extension.implementing_the_remaining_iterator_functionality">Implementing
the remaining iterator functionality</a> the remaining iterator functionality</a>
</h3> </h3>
<p> <p>
Ok, now we have seen the way <a href="iterators/metafunctions/value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">value_of</span></code></a> and <a href="iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a> work, everything else will work Ok, now we have seen the way <a href="iterators/metafunctions/value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">value_of</span></tt></a> and <a href="iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a> work, everything else will work
in pretty much the same way. Lets start with forward iteration, by providing in pretty much the same way. Lets start with forward iteration, by providing
a <code class="computeroutput"><span class="identifier">next_impl</span></code>: a <tt class="computeroutput"><span class="identifier">next_impl</span></tt>:
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;&gt;</span> <span class="keyword">template</span><span class="special">&lt;&gt;</span>
@ -356,40 +356,40 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<p> <p>
This should be very familiar from our <code class="computeroutput"><span class="identifier">deref_impl</span></code> This should be very familiar from our <tt class="computeroutput"><span class="identifier">deref_impl</span></tt>
implementation, we will be using this approach again and again now. Our design implementation, we will be using this approach again and again now. Our design
is simply to increment the <code class="computeroutput"><span class="identifier">index</span></code> is simply to increment the <tt class="computeroutput"><span class="identifier">index</span></tt>
counter to move on to the next element. The various other iterator manipulations counter to move on to the next element. The various other iterator manipulations
we need to perform will all just involve simple calculations with the <code class="computeroutput"><span class="identifier">index</span></code> variables. we need to perform will all just involve simple calculations with the <tt class="computeroutput"><span class="identifier">index</span></tt> variables.
</p> </p>
<p> <p>
We also need to provide a suitable <code class="computeroutput"><span class="identifier">equal_to_impl</span></code> We also need to provide a suitable <tt class="computeroutput"><span class="identifier">equal_to_impl</span></tt>
so that iterators can be correctly compared. A <a href="iterators/concepts/bidirectional_iterator.html" title="Bidirectional so that iterators can be correctly compared. A <a href="iterators/concepts/bidirectional_iterator.html" title="Bidirectional
Iterator">Bidirectional Iterator">Bidirectional
Iterator</a> will also need an implementation of <code class="computeroutput"><span class="identifier">prior_impl</span></code>. Iterator</a> will also need an implementation of <tt class="computeroutput"><span class="identifier">prior_impl</span></tt>.
For a <a href="iterators/concepts/random_access_iterator.html" title="Random For a <a href="iterators/concepts/random_access_iterator.html" title="Random
Access Iterator">Random Access Iterator">Random
Access Iterator</a> <code class="computeroutput"><span class="identifier">distance_impl</span></code> Access Iterator</a> <tt class="computeroutput"><span class="identifier">distance_impl</span></tt>
and <code class="computeroutput"><span class="identifier">advance_impl</span></code> also need and <tt class="computeroutput"><span class="identifier">advance_impl</span></tt> also need
to be provided in order to satisfy the necessary complexity guarantees. As to be provided in order to satisfy the necessary complexity guarantees. As
our iterator is a <a href="iterators/concepts/random_access_iterator.html" title="Random our iterator is a <a href="iterators/concepts/random_access_iterator.html" title="Random
Access Iterator">Random Access Iterator">Random
Access Iterator</a> we will have to implement all of these functions. Access Iterator</a> we will have to implement all of these functions.
</p> </p>
<p> <p>
Full implementations of <code class="computeroutput"><span class="identifier">prior_impl</span></code>, Full implementations of <tt class="computeroutput"><span class="identifier">prior_impl</span></tt>,
<code class="computeroutput"><span class="identifier">advance_impl</span></code>, <code class="computeroutput"><span class="identifier">distance_impl</span></code> and <code class="computeroutput"><span class="identifier">equal_to_impl</span></code> <tt class="computeroutput"><span class="identifier">advance_impl</span></tt>, <tt class="computeroutput"><span class="identifier">distance_impl</span></tt> and <tt class="computeroutput"><span class="identifier">equal_to_impl</span></tt>
are provided in the example code. are provided in the example code.
</p> </p>
<a name="fusion.extension.implementing_the_intrinsic_functions_of_the_sequence"></a><h3> <a name="fusion.extension.implementing_the_intrinsic_functions_of_the_sequence"></a><h3>
<a name="id1185250"></a> <a name="id613911"></a>
<a href="extension.html#fusion.extension.implementing_the_intrinsic_functions_of_the_sequence">Implementing <a href="extension.html#fusion.extension.implementing_the_intrinsic_functions_of_the_sequence">Implementing
the intrinsic functions of the sequence</a> the intrinsic functions of the sequence</a>
</h3> </h3>
<p> <p>
In order that Fusion can correctly identify our sequence as a Fusion sequence, In order that Fusion can correctly identify our sequence as a Fusion sequence,
we need to enable <code class="computeroutput"><span class="identifier">is_sequence</span></code> we need to enable <tt class="computeroutput"><span class="identifier">is_sequence</span></tt>
for our sequence type. As usual we just create an <code class="computeroutput"><span class="identifier">impl</span></code> for our sequence type. As usual we just create an <tt class="computeroutput"><span class="identifier">impl</span></tt>
type specialized for our sequence tag: type specialized for our sequence tag:
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
@ -401,14 +401,14 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<p> <p>
We've some similar formalities to complete, providing <code class="computeroutput"><span class="identifier">category_of_impl</span></code> We've some similar formalities to complete, providing <tt class="computeroutput"><span class="identifier">category_of_impl</span></tt>
so Fusion can correctly identify our sequence type, and <code class="computeroutput"><span class="identifier">is_view_impl</span></code> so Fusion can correctly identify our sequence type, and <tt class="computeroutput"><span class="identifier">is_view_impl</span></tt>
so Fusion can correctly identify our sequence as not being a <a href="sequences/views.html" title="Views">View</a> so Fusion can correctly identify our sequence as not being a <a href="sequences/views.html" title="Views">View</a>
type. Implementations are provide in the example code. type. Implementations are provide in the example code.
</p> </p>
<p> <p>
Now we've completed some formalities, on to more interesting features. Lets Now we've completed some formalities, on to more interesting features. Lets
get <a href="sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a> working so that we can get an get <a href="sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a> working so that we can get an
iterator to start accessing the data in our sequence. iterator to start accessing the data in our sequence.
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
@ -431,32 +431,32 @@
<p> <p>
The implementation uses the same ideas we have applied throughout, in this The implementation uses the same ideas we have applied throughout, in this
case we are just creating one of the iterators we developed earlier, pointing case we are just creating one of the iterators we developed earlier, pointing
to the first element in the sequence. The implementation of <a href="sequences/intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a> is very similar, and is provided to the first element in the sequence. The implementation of <a href="sequences/intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a> is very similar, and is provided
in the example code. in the example code.
</p> </p>
<p> <p>
For our <a href="sequences/concepts/random_access_sequence.html" title="Random For our <a href="sequences/concepts/random_access_sequence.html" title="Random
Access Sequence">Random Access Sequence">Random
Access Sequence</a> we will also need to implement <code class="computeroutput"><span class="identifier">size_impl</span></code>, Access Sequence</a> we will also need to implement <tt class="computeroutput"><span class="identifier">size_impl</span></tt>,
<code class="computeroutput"><span class="identifier">value_at_impl</span></code> and <code class="computeroutput"><span class="identifier">at_impl</span></code>. <tt class="computeroutput"><span class="identifier">value_at_impl</span></tt> and <tt class="computeroutput"><span class="identifier">at_impl</span></tt>.
</p> </p>
<a name="fusion.extension.enabling_our_type_as_an_associative_container"></a><h3> <a name="fusion.extension.enabling_our_type_as_an_associative_container"></a><h3>
<a name="id1185769"></a> <a name="id614499"></a>
<a href="extension.html#fusion.extension.enabling_our_type_as_an_associative_container">Enabling <a href="extension.html#fusion.extension.enabling_our_type_as_an_associative_container">Enabling
our type as an associative container</a> our type as an associative container</a>
</h3> </h3>
<p> <p>
In order for <code class="computeroutput"><span class="identifier">example_struct</span></code> In order for <tt class="computeroutput"><span class="identifier">example_struct</span></tt>
to serve as an associative container, we need to enable 3 lookup features, to serve as an associative container, we need to enable 3 lookup features,
<a href="sequences/intrinsics/functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a>, <a href="sequences/intrinsics/metafunctions/value_at_key.html" title="value_at_key"><code class="computeroutput"><span class="identifier">value_at_key</span></code></a> and <a href="sequences/intrinsics/functions/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">has_key</span></code></a>. We also need to provide an <a href="sequences/intrinsics/functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a>, <a href="sequences/intrinsics/metafunctions/value_at_key.html" title="value_at_key"><tt class="computeroutput"><span class="identifier">value_at_key</span></tt></a> and <a href="sequences/intrinsics/functions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">has_key</span></tt></a>. We also need to provide an
implementation of the <code class="computeroutput"><span class="identifier">is_associative</span></code> implementation of the <tt class="computeroutput"><span class="identifier">is_associative</span></tt>
trait so that our sequence can be correctly identified as an associative container. trait so that our sequence can be correctly identified as an associative container.
</p> </p>
<p> <p>
To implement <code class="computeroutput"><span class="identifier">at_key_impl</span></code> we To implement <tt class="computeroutput"><span class="identifier">at_key_impl</span></tt> we
need to associate the <code class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">age</span></code> and need to associate the <tt class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">age</span></tt> and
<code class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">age</span></code> types described in the <a href="quick_start.html" title="Quick Start">Quick <tt class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">age</span></tt> types described in the <a href="quick_start.html" title="Quick Start">Quick
Start</a> guide with the appropriate members of <code class="computeroutput"><span class="identifier">example_struct</span></code>. Start</a> guide with the appropriate members of <tt class="computeroutput"><span class="identifier">example_struct</span></tt>.
Our implementation is as follows: Our implementation is as follows:
</p> </p>
<pre class="programlisting"> <pre class="programlisting">
@ -499,15 +499,15 @@
</pre> </pre>
<p> <p>
Its all very similar to the implementations we've seen previously, such as Its all very similar to the implementations we've seen previously, such as
<code class="computeroutput"><span class="identifier">deref_impl</span></code> and <code class="computeroutput"><span class="identifier">value_of_impl</span></code>. Instead of identifying the <tt class="computeroutput"><span class="identifier">deref_impl</span></tt> and <tt class="computeroutput"><span class="identifier">value_of_impl</span></tt>. Instead of identifying the
members by index or position, we are now selecting them using the types <code class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">name</span></code> and <code class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">age</span></code>. The members by index or position, we are now selecting them using the types <tt class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">name</span></tt> and <tt class="computeroutput"><span class="identifier">fields</span><span class="special">::</span><span class="identifier">age</span></tt>. The
implementations of <code class="computeroutput"><span class="identifier">value_at_key_impl</span></code> implementations of <tt class="computeroutput"><span class="identifier">value_at_key_impl</span></tt>
and <code class="computeroutput"><span class="identifier">has_key_impl</span></code> are equally and <tt class="computeroutput"><span class="identifier">has_key_impl</span></tt> are equally
straightforward, and are provided in the example code, along with an implementation straightforward, and are provided in the example code, along with an implementation
of <code class="computeroutput"><span class="identifier">is_associative_impl</span></code>. of <tt class="computeroutput"><span class="identifier">is_associative_impl</span></tt>.
</p> </p>
<a name="fusion.extension.summary"></a><h3> <a name="fusion.extension.summary"></a><h3>
<a name="id1186634"></a> <a name="id615481"></a>
<a href="extension.html#fusion.extension.summary">Summary</a> <a href="extension.html#fusion.extension.summary">Summary</a>
</h3> </h3>
<p> <p>
@ -517,8 +517,8 @@
pattern. pattern.
</p> </p>
<p> <p>
The support for <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code>, <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a> The support for <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt>, <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
sequences, and <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></code> all use the same approach, and provide sequences, and <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt> all use the same approach, and provide
additional examples of the approach for a variety of types. additional examples of the approach for a variety of types.
</p> </p>
</div> </div>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Introduction</title> <title>Introduction</title>
<link rel="stylesheet" href="../boostbook.css" type="text/css"> <link rel="stylesheet" href="../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="prev" href="preface.html" title="Preface"> <link rel="prev" href="preface.html" title="Preface">
@ -29,9 +29,9 @@
An advantage other languages such as Python and Lisp/ Scheme, ML and Haskell, An advantage other languages such as Python and Lisp/ Scheme, ML and Haskell,
etc., over C++ is the ability to have heterogeneous containers that can hold etc., over C++ is the ability to have heterogeneous containers that can hold
arbitrary element types. All the containers in the standard library can only arbitrary element types. All the containers in the standard library can only
hold a specific type. A <code class="computeroutput"><span class="identifier">vector</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;</span></code> hold a specific type. A <tt class="computeroutput"><span class="identifier">vector</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;</span></tt>
can only hold <code class="computeroutput"><span class="keyword">int</span></code>s. A <code class="computeroutput"><span class="identifier">list</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;</span></code> can can only hold <tt class="computeroutput"><span class="keyword">int</span></tt>s. A <tt class="computeroutput"><span class="identifier">list</span><span class="special">&lt;</span><span class="identifier">X</span><span class="special">&gt;</span></tt> can
only hold elements of type <code class="computeroutput"><span class="identifier">X</span></code>, only hold elements of type <tt class="computeroutput"><span class="identifier">X</span></tt>,
and so on. and so on.
</p> </p>
<p> <p>
@ -41,8 +41,8 @@
on virtual functions to provide polymorphic behavior since the actual type on virtual functions to provide polymorphic behavior since the actual type
is erased as soon as you store a pointer to a derived class to a pointer to is erased as soon as you store a pointer to a derived class to a pointer to
its base. The held objects must be related: you cannot hold objects of unrelated its base. The held objects must be related: you cannot hold objects of unrelated
types such as <code class="computeroutput"><span class="keyword">char</span></code>, <code class="computeroutput"><span class="keyword">int</span></code>, <code class="computeroutput"><span class="keyword">class</span> types such as <tt class="computeroutput"><span class="keyword">char</span></tt>, <tt class="computeroutput"><span class="keyword">int</span></tt>, <tt class="computeroutput"><span class="keyword">class</span>
<span class="identifier">X</span></code>, <code class="computeroutput"><span class="keyword">float</span></code>, <span class="identifier">X</span></tt>, <tt class="computeroutput"><span class="keyword">float</span></tt>,
etc. Oh sure you can use something like <a href="http://boost.org/doc/html/any.html" target="_top">Boost.Any</a> etc. Oh sure you can use something like <a href="http://boost.org/doc/html/any.html" target="_top">Boost.Any</a>
to hold arbitrary types, but then you pay more in terms of runtime costs and to hold arbitrary types, but then you pay more in terms of runtime costs and
due to the fact that you practically erased all type information, you'll have due to the fact that you practically erased all type information, you'll have
@ -51,7 +51,7 @@
<p> <p>
The <a href="http://www.boost.org/libs/tuple/doc/tuple_users_guide.html" target="_top">Boost.Tuple</a> The <a href="http://www.boost.org/libs/tuple/doc/tuple_users_guide.html" target="_top">Boost.Tuple</a>
library written by <a href="http://www.boost.org/people/jaakko_jarvi.htm" target="_top">Jaakko library written by <a href="http://www.boost.org/people/jaakko_jarvi.htm" target="_top">Jaakko
Jarvi</a> provides heterogeneous containers in C++. The <code class="computeroutput"><span class="identifier">tuple</span></code> Jarvi</a> provides heterogeneous containers in C++. The <tt class="computeroutput"><span class="identifier">tuple</span></tt>
is a basic data structure that can hold heterogeneous types. It's a good first is a basic data structure that can hold heterogeneous types. It's a good first
step, but it's not complete. What's missing are the algorithms. It's nice that step, but it's not complete. What's missing are the algorithms. It's nice that
we can store and retrieve data to and from tuples, pass them around as arguments we can store and retrieve data to and from tuples, pass them around as arguments
@ -89,23 +89,23 @@
fusion algorithms are functional in nature such that algorithms are non mutating fusion algorithms are functional in nature such that algorithms are non mutating
(no side effects). However, due to the high cost of returning full sequences (no side effects). However, due to the high cost of returning full sequences
such as vectors and lists, <span class="emphasis"><em>Views</em></span> are returned from Fusion such as vectors and lists, <span class="emphasis"><em>Views</em></span> are returned from Fusion
algorithms instead. For example, the <a href="algorithms/transformation/functions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a> algorithm does not actually algorithms instead. For example, the <a href="algorithms/transformation/functions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a> algorithm does not actually
return a transformed version of the original sequence. <a href="algorithms/transformation/functions/transform.html" title="transform"><code class="computeroutput"><span class="identifier">transform</span></code></a> returns a <a href="sequences/views/transform_view.html" title="transform_view"><code class="computeroutput"><span class="identifier">transform_view</span></code></a>. This view holds a return a transformed version of the original sequence. <a href="algorithms/transformation/functions/transform.html" title="transform"><tt class="computeroutput"><span class="identifier">transform</span></tt></a> returns a <a href="sequences/views/transform_view.html" title="transform_view"><tt class="computeroutput"><span class="identifier">transform_view</span></tt></a>. This view holds a
reference to the original sequence plus the transform function. Iteration over reference to the original sequence plus the transform function. Iteration over
the <a href="sequences/views/transform_view.html" title="transform_view"><code class="computeroutput"><span class="identifier">transform_view</span></code></a> the <a href="sequences/views/transform_view.html" title="transform_view"><tt class="computeroutput"><span class="identifier">transform_view</span></tt></a>
will apply the transform function over the sequence elements on demand. This will apply the transform function over the sequence elements on demand. This
<span class="emphasis"><em>lazy</em></span> evaluation scheme allows us to chain as many algorithms <span class="emphasis"><em>lazy</em></span> evaluation scheme allows us to chain as many algorithms
as we want without incurring a high runtime penalty. as we want without incurring a high runtime penalty.
</p> </p>
<p> <p>
The <span class="emphasis"><em>lazy</em></span> evaluation scheme where algorithms return views The <span class="emphasis"><em>lazy</em></span> evaluation scheme where algorithms return views
allows operations such as <a href="algorithms/transformation/functions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a> to be totally generic. In allows operations such as <a href="algorithms/transformation/functions/push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a> to be totally generic. In
Fusion, <a href="algorithms/transformation/functions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a> is actually a generic algorithm Fusion, <a href="algorithms/transformation/functions/push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a> is actually a generic algorithm
that works on all sequences. Given an input sequence <code class="computeroutput"><span class="identifier">s</span></code> that works on all sequences. Given an input sequence <tt class="computeroutput"><span class="identifier">s</span></tt>
and a value <code class="computeroutput"><span class="identifier">x</span></code>, Fusion's <a href="algorithms/transformation/functions/push_back.html" title="push_back"><code class="computeroutput"><span class="identifier">push_back</span></code></a> algorithm simply returns and a value <tt class="computeroutput"><span class="identifier">x</span></tt>, Fusion's <a href="algorithms/transformation/functions/push_back.html" title="push_back"><tt class="computeroutput"><span class="identifier">push_back</span></tt></a> algorithm simply returns
a <a href="sequences/views/joint_view.html" title="joint_view"><code class="computeroutput"><span class="identifier">joint_view</span></code></a>: a <a href="sequences/views/joint_view.html" title="joint_view"><tt class="computeroutput"><span class="identifier">joint_view</span></tt></a>:
a view that holds a reference to the original sequence <code class="computeroutput"><span class="identifier">s</span></code> a view that holds a reference to the original sequence <tt class="computeroutput"><span class="identifier">s</span></tt>
and the value <code class="computeroutput"><span class="identifier">x</span></code>. Functions and the value <tt class="computeroutput"><span class="identifier">x</span></tt>. Functions
that were once sequence specific and need to be implemented N times over N that were once sequence specific and need to be implemented N times over N
different sequences are now implemented only once. different sequences are now implemented only once.
</p> </p>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Iterators</title> <title>Iterators</title>
<link rel="stylesheet" href="../boostbook.css" type="text/css"> <link rel="stylesheet" href="../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="up" href="../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="prev" href="support/pair.html" title="pair"> <link rel="prev" href="support/pair.html" title="pair">
@ -74,7 +74,7 @@
<a href="sequences.html" title="Sequences">Sequence</a>. <a href="sequences.html" title="Sequences">Sequence</a>.
</p> </p>
<a name="fusion.iterators.header"></a><h3> <a name="fusion.iterators.header"></a><h3>
<a name="id927293"></a> <a name="id458680"></a>
<a href="iterators.html#fusion.iterators.header">Header</a> <a href="iterators.html#fusion.iterators.header">Header</a>
</h3> </h3>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Concepts</title> <title>Concepts</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../iterators.html" title="Iterators"> <link rel="up" href="../iterators.html" title="Iterators">
<link rel="prev" href="../iterators.html" title="Iterators"> <link rel="prev" href="../iterators.html" title="Iterators">

View File

@ -4,7 +4,7 @@
<title>Bidirectional <title>Bidirectional
Iterator</title> Iterator</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../concepts.html" title="Concepts"> <link rel="up" href="../concepts.html" title="Concepts">
<link rel="prev" href="forward_iterator.html" title="Forward <link rel="prev" href="forward_iterator.html" title="Forward
@ -31,7 +31,7 @@
Iterator">Bidirectional Iterator">Bidirectional
Iterator</a></h4></div></div></div> Iterator</a></h4></div></div></div>
<a name="fusion.iterators.concepts.bidirectional_iterator.description"></a><h5> <a name="fusion.iterators.concepts.bidirectional_iterator.description"></a><h5>
<a name="id929660"></a> <a name="id461362"></a>
<a href="bidirectional_iterator.html#fusion.iterators.concepts.bidirectional_iterator.description">Description</a> <a href="bidirectional_iterator.html#fusion.iterators.concepts.bidirectional_iterator.description">Description</a>
</h5> </h5>
<p> <p>
@ -41,27 +41,27 @@
<div class="variablelist"> <div class="variablelist">
<p class="title"><b>Notation</b></p> <p class="title"><b>Notation</b></p>
<dl> <dl>
<dt><span class="term"><code class="computeroutput"><span class="identifier">i</span></code></span></dt> <dt><span class="term"><tt class="computeroutput"><span class="identifier">i</span></tt></span></dt>
<dd> <dd>
A Bidirectional Iterator A Bidirectional Iterator
</dd> </dd>
<dt><span class="term"><code class="computeroutput"><span class="identifier">I</span></code></span></dt> <dt><span class="term"><tt class="computeroutput"><span class="identifier">I</span></tt></span></dt>
<dd> <dd>
A Bidirectional Iterator type A Bidirectional Iterator type
</dd> </dd>
<dt><span class="term"><code class="computeroutput"><span class="identifier">M</span></code></span></dt> <dt><span class="term"><tt class="computeroutput"><span class="identifier">M</span></tt></span></dt>
<dd> <dd>
An <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a> An <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
integral constant integral constant
</dd> </dd>
<dt><span class="term"><code class="computeroutput"><span class="identifier">N</span></code></span></dt> <dt><span class="term"><tt class="computeroutput"><span class="identifier">N</span></tt></span></dt>
<dd> <dd>
An integral constant An integral constant
</dd> </dd>
</dl> </dl>
</div> </div>
<a name="fusion.iterators.concepts.bidirectional_iterator.refinement_of"></a><h5> <a name="fusion.iterators.concepts.bidirectional_iterator.refinement_of"></a><h5>
<a name="id929772"></a> <a name="id461488"></a>
<a href="bidirectional_iterator.html#fusion.iterators.concepts.bidirectional_iterator.refinement_of">Refinement <a href="bidirectional_iterator.html#fusion.iterators.concepts.bidirectional_iterator.refinement_of">Refinement
of</a> of</a>
</h5> </h5>
@ -70,7 +70,7 @@
Iterator">Forward Iterator</a> Iterator">Forward Iterator</a>
</p> </p>
<a name="fusion.iterators.concepts.bidirectional_iterator.expression_requirements"></a><h5> <a name="fusion.iterators.concepts.bidirectional_iterator.expression_requirements"></a><h5>
<a name="id929809"></a> <a name="id461529"></a>
<a href="bidirectional_iterator.html#fusion.iterators.concepts.bidirectional_iterator.expression_requirements">Expression <a href="bidirectional_iterator.html#fusion.iterators.concepts.bidirectional_iterator.expression_requirements">Expression
requirements</a> requirements</a>
</h5> </h5>
@ -93,28 +93,28 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td><a href="bidirectional_iterator.html" title="Bidirectional <td><a href="bidirectional_iterator.html" title="Bidirectional
Iterator">Bidirectional Iterator">Bidirectional
Iterator</a></td> Iterator</a></td>
<td>Constant</td> <td>Constant</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/prior.html" title="prior"><code class="computeroutput"><span class="identifier">prior</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">prior</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td><a href="bidirectional_iterator.html" title="Bidirectional <td><a href="bidirectional_iterator.html" title="Bidirectional
Iterator">Bidirectional Iterator">Bidirectional
Iterator</a></td> Iterator</a></td>
<td>Constant</td> <td>Constant</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/advance_c.html" title="advance_c"><code class="computeroutput"><span class="identifier">advance_c</span></code></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/advance_c.html" title="advance_c"><tt class="computeroutput"><span class="identifier">advance_c</span></tt></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td><a href="bidirectional_iterator.html" title="Bidirectional <td><a href="bidirectional_iterator.html" title="Bidirectional
Iterator">Bidirectional Iterator">Bidirectional
Iterator</a></td> Iterator</a></td>
<td>Constant</td> <td>Constant</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/advance.html" title="advance"><code class="computeroutput"><span class="identifier">advance</span></code></a><span class="special">&lt;</span><span class="identifier">M</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/advance.html" title="advance"><tt class="computeroutput"><span class="identifier">advance</span></tt></a><span class="special">&lt;</span><span class="identifier">M</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td><a href="bidirectional_iterator.html" title="Bidirectional <td><a href="bidirectional_iterator.html" title="Bidirectional
Iterator">Bidirectional Iterator">Bidirectional
Iterator</a></td> Iterator</a></td>
@ -123,7 +123,7 @@
</tbody> </tbody>
</table></div> </table></div>
<a name="fusion.iterators.concepts.bidirectional_iterator.meta_expressions"></a><h5> <a name="fusion.iterators.concepts.bidirectional_iterator.meta_expressions"></a><h5>
<a name="id930078"></a> <a name="id461833"></a>
<a href="bidirectional_iterator.html#fusion.iterators.concepts.bidirectional_iterator.meta_expressions">Meta <a href="bidirectional_iterator.html#fusion.iterators.concepts.bidirectional_iterator.meta_expressions">Meta
Expressions</a> Expressions</a>
</h5> </h5>
@ -137,13 +137,13 @@
<th>Compile Time Complexity</th> <th>Compile Time Complexity</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><a href="../metafunctions/prior.html" title="prior"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">prior</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span></code></td> <td><tt class="computeroutput"><a href="../metafunctions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">prior</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span></tt></td>
<td>Amortized constant <td>Amortized constant
time</td> time</td>
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.iterators.concepts.bidirectional_iterator.expression_semantics"></a><h5> <a name="fusion.iterators.concepts.bidirectional_iterator.expression_semantics"></a><h5>
<a name="id930182"></a> <a name="id461950"></a>
<a href="bidirectional_iterator.html#fusion.iterators.concepts.bidirectional_iterator.expression_semantics">Expression <a href="bidirectional_iterator.html#fusion.iterators.concepts.bidirectional_iterator.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
@ -163,14 +163,14 @@
<th>Semantics</th> <th>Semantics</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><a href="../functions/prior.html" title="prior"><code class="computeroutput"><span class="identifier">prior</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">prior</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td>An <td>An
iterator to the element preceding <code class="computeroutput"><span class="identifier">i</span></code> iterator to the element preceding <tt class="computeroutput"><span class="identifier">i</span></tt>
</td> </td>
</tr></tbody> </tr></tbody>
</table></div> </table></div>
<a name="fusion.iterators.concepts.bidirectional_iterator.invariants"></a><h5> <a name="fusion.iterators.concepts.bidirectional_iterator.invariants"></a><h5>
<a name="id930289"></a> <a name="id462071"></a>
<a href="bidirectional_iterator.html#fusion.iterators.concepts.bidirectional_iterator.invariants">Invariants</a> <a href="bidirectional_iterator.html#fusion.iterators.concepts.bidirectional_iterator.invariants">Invariants</a>
</h5> </h5>
<p> <p>
@ -179,44 +179,44 @@
Iterator</a>, the following invariants always hold: Iterator</a>, the following invariants always hold:
</p> </p>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li><code class="computeroutput"><a href="../functions/prior.html" title="prior"><code class="computeroutput"><span class="identifier">prior</span></code></a><span class="special">(</span><a href="../functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">))</span> <span class="special">==</span> <span class="identifier">i</span> <span class="special">&amp;&amp;</span> <li><tt class="computeroutput"><a href="../functions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">prior</span></tt></a><span class="special">(</span><a href="../functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">))</span> <span class="special">==</span> <span class="identifier">i</span> <span class="special">&amp;&amp;</span>
<a href="../functions/prior.html" title="prior"><code class="computeroutput"><span class="identifier">prior</span></code></a><span class="special">(</span><a href="../functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">))</span> <span class="special">==</span> <a href="../functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../functions/prior.html" title="prior"><code class="computeroutput"><span class="identifier">prior</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">))</span></code></li> <a href="../functions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">prior</span></tt></a><span class="special">(</span><a href="../functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">))</span> <span class="special">==</span> <a href="../functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../functions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">prior</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">))</span></tt></li>
<li><code class="computeroutput"><a href="../functions/prior.html" title="prior"><code class="computeroutput"><span class="identifier">prior</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span> <span class="special">==</span> <a href="../functions/advance_c.html" title="advance_c"><code class="computeroutput"><span class="identifier">advance_c</span></code></a><span class="special">&lt;-</span><span class="number">1</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></code></li> <li><tt class="computeroutput"><a href="../functions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">prior</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span> <span class="special">==</span> <a href="../functions/advance_c.html" title="advance_c"><tt class="computeroutput"><span class="identifier">advance_c</span></tt></a><span class="special">&lt;-</span><span class="number">1</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></tt></li>
<li> <li>
Using <code class="computeroutput"><a href="../functions/prior.html" title="prior"><code class="computeroutput"><span class="identifier">prior</span></code></a></code> to traverse a sequence Using <tt class="computeroutput"><a href="../functions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">prior</span></tt></a></tt> to traverse a sequence
will never return a previously seen position will never return a previously seen position
</li> </li>
</ul></div> </ul></div>
<a name="fusion.iterators.concepts.bidirectional_iterator.models"></a><h5> <a name="fusion.iterators.concepts.bidirectional_iterator.models"></a><h5>
<a name="id930585"></a> <a name="id462408"></a>
<a href="bidirectional_iterator.html#fusion.iterators.concepts.bidirectional_iterator.models">Models</a> <a href="bidirectional_iterator.html#fusion.iterators.concepts.bidirectional_iterator.models">Models</a>
</h5> </h5>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li> <li>
<a href="../../sequences/adapted/std__pair.html" title="std::pair"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code></a> <a href="../../sequences/adapted/std__pair.html" title="std::pair"><tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/adapted/boost__array.html" title="boost::array"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></code></a> <a href="../../sequences/adapted/boost__array.html" title="boost::array"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> <a href="../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/views/iterator_range.html" title="iterator_range"><code class="computeroutput"><span class="identifier">iterator_range</span></code></a> <a href="../../sequences/views/iterator_range.html" title="iterator_range"><tt class="computeroutput"><span class="identifier">iterator_range</span></tt></a>
(where adapted sequence is a <a href="../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional (where adapted sequence is a <a href="../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional
Sequence">Bidirectional Sequence">Bidirectional
Sequence</a>) Sequence</a>)
</li> </li>
<li> <li>
<a href="../../sequences/views/transform_view.html" title="transform_view"><code class="computeroutput"><span class="identifier">transform_view</span></code></a> <a href="../../sequences/views/transform_view.html" title="transform_view"><tt class="computeroutput"><span class="identifier">transform_view</span></tt></a>
(where adapted sequence is a <a href="../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional (where adapted sequence is a <a href="../../sequences/concepts/bidirectional_sequence.html" title="Bidirectional
Sequence">Bidirectional Sequence">Bidirectional
Sequence</a>) Sequence</a>)
</li> </li>
<li><a href="../../sequences/views/reverse_view.html" title="reverse_view"><code class="computeroutput"><span class="identifier">reverse_view</span></code></a></li> <li><a href="../../sequences/views/reverse_view.html" title="reverse_view"><tt class="computeroutput"><span class="identifier">reverse_view</span></tt></a></li>
</ul></div> </ul></div>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -4,7 +4,7 @@
<title>Forward <title>Forward
Iterator</title> Iterator</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../concepts.html" title="Concepts"> <link rel="up" href="../concepts.html" title="Concepts">
<link rel="prev" href="../concepts.html" title="Concepts"> <link rel="prev" href="../concepts.html" title="Concepts">
@ -30,7 +30,7 @@
Iterator">Forward Iterator">Forward
Iterator</a></h4></div></div></div> Iterator</a></h4></div></div></div>
<a name="fusion.iterators.concepts.forward_iterator.description"></a><h5> <a name="fusion.iterators.concepts.forward_iterator.description"></a><h5>
<a name="id927450"></a> <a name="id458859"></a>
<a href="forward_iterator.html#fusion.iterators.concepts.forward_iterator.description">Description</a> <a href="forward_iterator.html#fusion.iterators.concepts.forward_iterator.description">Description</a>
</h5> </h5>
<p> <p>
@ -41,29 +41,29 @@
<div class="variablelist"> <div class="variablelist">
<p class="title"><b>Notation</b></p> <p class="title"><b>Notation</b></p>
<dl> <dl>
<dt><span class="term"><code class="computeroutput"><span class="identifier">i</span></code>, <dt><span class="term"><tt class="computeroutput"><span class="identifier">i</span></tt>,
<code class="computeroutput"><span class="identifier">j</span></code></span></dt> <tt class="computeroutput"><span class="identifier">j</span></tt></span></dt>
<dd> <dd>
Forward Iterators Forward Iterators
</dd> </dd>
<dt><span class="term"><code class="computeroutput"><span class="identifier">I</span></code>, <dt><span class="term"><tt class="computeroutput"><span class="identifier">I</span></tt>,
<code class="computeroutput"><span class="identifier">J</span></code></span></dt> <tt class="computeroutput"><span class="identifier">J</span></tt></span></dt>
<dd> <dd>
Forward Iterator types Forward Iterator types
</dd> </dd>
<dt><span class="term"><code class="computeroutput"><span class="identifier">M</span></code></span></dt> <dt><span class="term"><tt class="computeroutput"><span class="identifier">M</span></tt></span></dt>
<dd> <dd>
An <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a> An <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
integral constant integral constant
</dd> </dd>
<dt><span class="term"><code class="computeroutput"><span class="identifier">N</span></code></span></dt> <dt><span class="term"><tt class="computeroutput"><span class="identifier">N</span></tt></span></dt>
<dd> <dd>
An integral constant An integral constant
</dd> </dd>
</dl> </dl>
</div> </div>
<a name="fusion.iterators.concepts.forward_iterator.expression_requirements"></a><h5> <a name="fusion.iterators.concepts.forward_iterator.expression_requirements"></a><h5>
<a name="id927582"></a> <a name="id459008"></a>
<a href="forward_iterator.html#fusion.iterators.concepts.forward_iterator.expression_requirements">Expression <a href="forward_iterator.html#fusion.iterators.concepts.forward_iterator.expression_requirements">Expression
requirements</a> requirements</a>
</h5> </h5>
@ -85,56 +85,56 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td><a href="forward_iterator.html" title="Forward <td><a href="forward_iterator.html" title="Forward
Iterator">Forward Iterator</a></td> Iterator">Forward Iterator</a></td>
<td>Constant</td> <td>Constant</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">i</span> <span class="special">==</span> <td><tt class="computeroutput"><span class="identifier">i</span> <span class="special">==</span>
<span class="identifier">j</span></code></td> <span class="identifier">j</span></tt></td>
<td>Convertible <td>Convertible
to bool</td> to bool</td>
<td>Constant</td> <td>Constant</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">i</span> <span class="special">!=</span> <td><tt class="computeroutput"><span class="identifier">i</span> <span class="special">!=</span>
<span class="identifier">j</span></code></td> <span class="identifier">j</span></tt></td>
<td>Convertible <td>Convertible
to bool</td> to bool</td>
<td>Constant</td> <td>Constant</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/advance_c.html" title="advance_c"><code class="computeroutput"><span class="identifier">advance_c</span></code></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/advance_c.html" title="advance_c"><tt class="computeroutput"><span class="identifier">advance_c</span></tt></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td><a href="forward_iterator.html" title="Forward <td><a href="forward_iterator.html" title="Forward
Iterator">Forward Iterator</a></td> Iterator">Forward Iterator</a></td>
<td>Constant</td> <td>Constant</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/advance.html" title="advance"><code class="computeroutput"><span class="identifier">advance</span></code></a><span class="special">&lt;</span><span class="identifier">M</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/advance.html" title="advance"><tt class="computeroutput"><span class="identifier">advance</span></tt></a><span class="special">&lt;</span><span class="identifier">M</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td><a href="forward_iterator.html" title="Forward <td><a href="forward_iterator.html" title="Forward
Iterator">Forward Iterator</a></td> Iterator">Forward Iterator</a></td>
<td>Constant</td> <td>Constant</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/distance.html" title="distance"><code class="computeroutput"><span class="identifier">distance</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">,</span> <span class="identifier">j</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/distance.html" title="distance"><tt class="computeroutput"><span class="identifier">distance</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">,</span> <span class="identifier">j</span><span class="special">)</span></tt></td>
<td><code class="computeroutput"><a href="../metafunctions/distance.html" title="distance"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">distance</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">type</span></code></td> <td><tt class="computeroutput"><a href="../metafunctions/distance.html" title="distance"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">distance</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">type</span></tt></td>
<td>Constant</td> <td>Constant</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td><code class="computeroutput"><a href="../metafunctions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span></code></td> <td><tt class="computeroutput"><a href="../metafunctions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span></tt></td>
<td>Constant</td> <td>Constant</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="special">*</span><span class="identifier">i</span></code></td> <td><tt class="computeroutput"><span class="special">*</span><span class="identifier">i</span></tt></td>
<td><code class="computeroutput"><a href="../metafunctions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span></code></td> <td><tt class="computeroutput"><a href="../metafunctions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span></tt></td>
<td>Constant</td> <td>Constant</td>
</tr> </tr>
</tbody> </tbody>
</table></div> </table></div>
<a name="fusion.iterators.concepts.forward_iterator.meta_expressions"></a><h5> <a name="fusion.iterators.concepts.forward_iterator.meta_expressions"></a><h5>
<a name="id928105"></a> <a name="id459604"></a>
<a href="forward_iterator.html#fusion.iterators.concepts.forward_iterator.meta_expressions">Meta <a href="forward_iterator.html#fusion.iterators.concepts.forward_iterator.meta_expressions">Meta
Expressions</a> Expressions</a>
</h5> </h5>
@ -149,41 +149,41 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><a href="../metafunctions/next.html" title="next"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span></code></td> <td><tt class="computeroutput"><a href="../metafunctions/next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span></tt></td>
<td>Amortized constant <td>Amortized constant
time</td> time</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../metafunctions/equal_to.html" title="equal_to"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">type</span></code></td> <td><tt class="computeroutput"><a href="../metafunctions/equal_to.html" title="equal_to"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">type</span></tt></td>
<td>Amortized constant <td>Amortized constant
time</td> time</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../metafunctions/advance_c.html" title="advance_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance_c</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">N</span><span class="special">&gt;::</span><span class="identifier">type</span></code></td> <td><tt class="computeroutput"><a href="../metafunctions/advance_c.html" title="advance_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance_c</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">N</span><span class="special">&gt;::</span><span class="identifier">type</span></tt></td>
<td>Linear</td> <td>Linear</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../metafunctions/advance.html" title="advance"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance</span></code></a><span class="special">&lt;</span><span class="identifier">I</span> <span class="special">,</span><span class="identifier">M</span><span class="special">&gt;::</span><span class="identifier">type</span></code></td> <td><tt class="computeroutput"><a href="../metafunctions/advance.html" title="advance"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span> <span class="special">,</span><span class="identifier">M</span><span class="special">&gt;::</span><span class="identifier">type</span></tt></td>
<td>Linear</td> <td>Linear</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../metafunctions/distance.html" title="distance"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">distance</span></code></a><span class="special">&lt;</span><span class="identifier">I</span> <span class="special">,</span><span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">type</span></code></td> <td><tt class="computeroutput"><a href="../metafunctions/distance.html" title="distance"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">distance</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span> <span class="special">,</span><span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">type</span></tt></td>
<td>Linear</td> <td>Linear</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../metafunctions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span></code></td> <td><tt class="computeroutput"><a href="../metafunctions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span></tt></td>
<td>Amortized constant <td>Amortized constant
time</td> time</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../metafunctions/value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span></code></td> <td><tt class="computeroutput"><a href="../metafunctions/value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span></tt></td>
<td>Amortized constant <td>Amortized constant
time</td> time</td>
</tr> </tr>
</tbody> </tbody>
</table></div> </table></div>
<a name="fusion.iterators.concepts.forward_iterator.expression_semantics"></a><h5> <a name="fusion.iterators.concepts.forward_iterator.expression_semantics"></a><h5>
<a name="id928556"></a> <a name="id460115"></a>
<a href="forward_iterator.html#fusion.iterators.concepts.forward_iterator.expression_semantics">Expression <a href="forward_iterator.html#fusion.iterators.concepts.forward_iterator.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
@ -198,136 +198,136 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td>An <td>An
iterator to the element following <code class="computeroutput"><span class="identifier">i</span></code> iterator to the element following <tt class="computeroutput"><span class="identifier">i</span></tt>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">i</span> <span class="special">==</span> <td><tt class="computeroutput"><span class="identifier">i</span> <span class="special">==</span>
<span class="identifier">j</span></code></td> <span class="identifier">j</span></tt></td>
<td>Iterator <td>Iterator
equality comparison</td> equality comparison</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">i</span> <span class="special">!=</span> <td><tt class="computeroutput"><span class="identifier">i</span> <span class="special">!=</span>
<span class="identifier">j</span></code></td> <span class="identifier">j</span></tt></td>
<td>Iterator <td>Iterator
inequality comparison</td> inequality comparison</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/advance_c.html" title="advance_c"><code class="computeroutput"><span class="identifier">advance_c</span></code></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/advance_c.html" title="advance_c"><tt class="computeroutput"><span class="identifier">advance_c</span></tt></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td>An <td>An
iterator n elements after <code class="computeroutput"><span class="identifier">i</span></code> iterator n elements after <tt class="computeroutput"><span class="identifier">i</span></tt>
in the sequence</td> in the sequence</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/advance.html" title="advance"><code class="computeroutput"><span class="identifier">advance</span></code></a><span class="special">&lt;</span><span class="identifier">M</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/advance.html" title="advance"><tt class="computeroutput"><span class="identifier">advance</span></tt></a><span class="special">&lt;</span><span class="identifier">M</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td>Equivalent <td>Equivalent
to <code class="computeroutput"><span class="identifier">advance_c</span><span class="special">&lt;</span><span class="identifier">M</span><span class="special">::</span><span class="identifier">value</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></code> to <tt class="computeroutput"><span class="identifier">advance_c</span><span class="special">&lt;</span><span class="identifier">M</span><span class="special">::</span><span class="identifier">value</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></tt>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/distance.html" title="distance"><code class="computeroutput"><span class="identifier">distance</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">,</span> <span class="identifier">j</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/distance.html" title="distance"><tt class="computeroutput"><span class="identifier">distance</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">,</span> <span class="identifier">j</span><span class="special">)</span></tt></td>
<td>The <td>The
number of elements between <code class="computeroutput"><span class="identifier">i</span></code> number of elements between <tt class="computeroutput"><span class="identifier">i</span></tt>
and <code class="computeroutput"><span class="identifier">j</span></code> and <tt class="computeroutput"><span class="identifier">j</span></tt>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td>The <td>The
element at position<code class="computeroutput"><span class="identifier">i</span></code> element at position<tt class="computeroutput"><span class="identifier">i</span></tt>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="special">*</span><span class="identifier">i</span></code></td> <td><tt class="computeroutput"><span class="special">*</span><span class="identifier">i</span></tt></td>
<td>Equivalent <td>Equivalent
to <code class="computeroutput"><span class="identifier">deref</span><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></code> to <tt class="computeroutput"><span class="identifier">deref</span><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></tt>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table></div> </table></div>
<a name="fusion.iterators.concepts.forward_iterator.invariants"></a><h5> <a name="fusion.iterators.concepts.forward_iterator.invariants"></a><h5>
<a name="id928991"></a> <a name="id460608"></a>
<a href="forward_iterator.html#fusion.iterators.concepts.forward_iterator.invariants">Invariants</a> <a href="forward_iterator.html#fusion.iterators.concepts.forward_iterator.invariants">Invariants</a>
</h5> </h5>
<p> <p>
The following invariants always hold: The following invariants always hold:
</p> </p>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li><code class="computeroutput"><span class="special">!(</span><span class="identifier">i</span> <li><tt class="computeroutput"><span class="special">!(</span><span class="identifier">i</span>
<span class="special">==</span> <span class="identifier">j</span><span class="special">)</span> <span class="special">==</span> <span class="special">(</span><span class="identifier">i</span> <span class="special">!=</span> <span class="identifier">j</span><span class="special">)</span></code></li> <span class="special">==</span> <span class="identifier">j</span><span class="special">)</span> <span class="special">==</span> <span class="special">(</span><span class="identifier">i</span> <span class="special">!=</span> <span class="identifier">j</span><span class="special">)</span></tt></li>
<li><code class="computeroutput"><a href="../functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span> <span class="special">==</span> <a href="../functions/advance_c.html" title="advance_c"><code class="computeroutput"><span class="identifier">advance_c</span></code></a><span class="special">&lt;</span><span class="number">1</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></code></li> <li><tt class="computeroutput"><a href="../functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span> <span class="special">==</span> <a href="../functions/advance_c.html" title="advance_c"><tt class="computeroutput"><span class="identifier">advance_c</span></tt></a><span class="special">&lt;</span><span class="number">1</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></tt></li>
<li><code class="computeroutput"><a href="../functions/distance.html" title="distance"><code class="computeroutput"><span class="identifier">distance</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">,</span> <a href="../functions/advance_c.html" title="advance_c"><code class="computeroutput"><span class="identifier">advance_c</span></code></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">))</span> <span class="special">==</span> <span class="identifier">N</span></code></li> <li><tt class="computeroutput"><a href="../functions/distance.html" title="distance"><tt class="computeroutput"><span class="identifier">distance</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">,</span> <a href="../functions/advance_c.html" title="advance_c"><tt class="computeroutput"><span class="identifier">advance_c</span></tt></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">))</span> <span class="special">==</span> <span class="identifier">N</span></tt></li>
<li> <li>
Using <code class="computeroutput"><a href="../functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a></code> to traverse the Using <tt class="computeroutput"><a href="../functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a></tt> to traverse the
sequence will never return to a previously seen position sequence will never return to a previously seen position
</li> </li>
<li> <li>
<code class="computeroutput"><a href="../functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></code> <tt class="computeroutput"><a href="../functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></tt>
is equivalent to <code class="computeroutput"><span class="special">*</span><span class="identifier">i</span></code> is equivalent to <tt class="computeroutput"><span class="special">*</span><span class="identifier">i</span></tt>
</li> </li>
<li> <li>
If <code class="computeroutput"><span class="identifier">i</span> <span class="special">==</span> If <tt class="computeroutput"><span class="identifier">i</span> <span class="special">==</span>
<span class="identifier">j</span></code> then <code class="computeroutput"><span class="special">*</span><span class="identifier">i</span></code> is equivalent to <code class="computeroutput"><span class="special">*</span><span class="identifier">j</span></code> <span class="identifier">j</span></tt> then <tt class="computeroutput"><span class="special">*</span><span class="identifier">i</span></tt> is equivalent to <tt class="computeroutput"><span class="special">*</span><span class="identifier">j</span></tt>
</li> </li>
</ul></div> </ul></div>
<a name="fusion.iterators.concepts.forward_iterator.models"></a><h5> <a name="fusion.iterators.concepts.forward_iterator.models"></a><h5>
<a name="id929356"></a> <a name="id461021"></a>
<a href="forward_iterator.html#fusion.iterators.concepts.forward_iterator.models">Models</a> <a href="forward_iterator.html#fusion.iterators.concepts.forward_iterator.models">Models</a>
</h5> </h5>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li> <li>
<a href="../../sequences/adapted/std__pair.html" title="std::pair"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code></a> <a href="../../sequences/adapted/std__pair.html" title="std::pair"><tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/adapted/boost__array.html" title="boost::array"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></code></a> <a href="../../sequences/adapted/boost__array.html" title="boost::array"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> <a href="../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/containers/cons.html" title="cons"><code class="computeroutput"><span class="identifier">cons</span></code></a> <a href="../../sequences/containers/cons.html" title="cons"><tt class="computeroutput"><span class="identifier">cons</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a> <a href="../../sequences/containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/containers/set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a> <a href="../../sequences/containers/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/containers/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a> <a href="../../sequences/containers/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/views/single_view.html" title="single_view"><code class="computeroutput"><span class="identifier">single_view</span></code></a> <a href="../../sequences/views/single_view.html" title="single_view"><tt class="computeroutput"><span class="identifier">single_view</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/views/filter_view.html" title="filter_view"><code class="computeroutput"><span class="identifier">filter_view</span></code></a> <a href="../../sequences/views/filter_view.html" title="filter_view"><tt class="computeroutput"><span class="identifier">filter_view</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/views/iterator_range.html" title="iterator_range"><code class="computeroutput"><span class="identifier">iterator_range</span></code></a> <a href="../../sequences/views/iterator_range.html" title="iterator_range"><tt class="computeroutput"><span class="identifier">iterator_range</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/views/joint_view.html" title="joint_view"><code class="computeroutput"><span class="identifier">joint_view</span></code></a> <a href="../../sequences/views/joint_view.html" title="joint_view"><tt class="computeroutput"><span class="identifier">joint_view</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/views/transform_view.html" title="transform_view"><code class="computeroutput"><span class="identifier">transform_view</span></code></a> <a href="../../sequences/views/transform_view.html" title="transform_view"><tt class="computeroutput"><span class="identifier">transform_view</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/views/reverse_view.html" title="reverse_view"><code class="computeroutput"><span class="identifier">reverse_view</span></code></a> <a href="../../sequences/views/reverse_view.html" title="reverse_view"><tt class="computeroutput"><span class="identifier">reverse_view</span></tt></a>
iterator iterator
</li> </li>
</ul></div> </ul></div>

View File

@ -4,7 +4,7 @@
<title>Random <title>Random
Access Iterator</title> Access Iterator</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../concepts.html" title="Concepts"> <link rel="up" href="../concepts.html" title="Concepts">
<link rel="prev" href="bidirectional_iterator.html" title="Bidirectional <link rel="prev" href="bidirectional_iterator.html" title="Bidirectional
@ -30,7 +30,7 @@
Access Iterator">Random Access Iterator">Random
Access Iterator</a></h4></div></div></div> Access Iterator</a></h4></div></div></div>
<a name="fusion.iterators.concepts.random_access_iterator.description"></a><h5> <a name="fusion.iterators.concepts.random_access_iterator.description"></a><h5>
<a name="id930776"></a> <a name="id462621"></a>
<a href="random_access_iterator.html#fusion.iterators.concepts.random_access_iterator.description">Description</a> <a href="random_access_iterator.html#fusion.iterators.concepts.random_access_iterator.description">Description</a>
</h5> </h5>
<p> <p>
@ -41,29 +41,29 @@
<div class="variablelist"> <div class="variablelist">
<p class="title"><b>Notation</b></p> <p class="title"><b>Notation</b></p>
<dl> <dl>
<dt><span class="term"><code class="computeroutput"><span class="identifier">i</span></code>, <dt><span class="term"><tt class="computeroutput"><span class="identifier">i</span></tt>,
<code class="computeroutput"><span class="identifier">j</span></code></span></dt> <tt class="computeroutput"><span class="identifier">j</span></tt></span></dt>
<dd> <dd>
Random Access Iterators Random Access Iterators
</dd> </dd>
<dt><span class="term"><code class="computeroutput"><span class="identifier">I</span></code>, <dt><span class="term"><tt class="computeroutput"><span class="identifier">I</span></tt>,
<code class="computeroutput"><span class="identifier">J</span></code></span></dt> <tt class="computeroutput"><span class="identifier">J</span></tt></span></dt>
<dd> <dd>
Random Access Iterator types Random Access Iterator types
</dd> </dd>
<dt><span class="term"><code class="computeroutput"><span class="identifier">M</span></code></span></dt> <dt><span class="term"><tt class="computeroutput"><span class="identifier">M</span></tt></span></dt>
<dd> <dd>
An <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a> An <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
integral constant integral constant
</dd> </dd>
<dt><span class="term"><code class="computeroutput"><span class="identifier">N</span></code></span></dt> <dt><span class="term"><tt class="computeroutput"><span class="identifier">N</span></tt></span></dt>
<dd> <dd>
An integral constant An integral constant
</dd> </dd>
</dl> </dl>
</div> </div>
<a name="fusion.iterators.concepts.random_access_iterator.refinement_of"></a><h5> <a name="fusion.iterators.concepts.random_access_iterator.refinement_of"></a><h5>
<a name="id930908"></a> <a name="id462768"></a>
<a href="random_access_iterator.html#fusion.iterators.concepts.random_access_iterator.refinement_of">Refinement <a href="random_access_iterator.html#fusion.iterators.concepts.random_access_iterator.refinement_of">Refinement
of</a> of</a>
</h5> </h5>
@ -73,7 +73,7 @@
Iterator</a> Iterator</a>
</p> </p>
<a name="fusion.iterators.concepts.random_access_iterator.expression_requirements"></a><h5> <a name="fusion.iterators.concepts.random_access_iterator.expression_requirements"></a><h5>
<a name="id930945"></a> <a name="id462809"></a>
<a href="random_access_iterator.html#fusion.iterators.concepts.random_access_iterator.expression_requirements">Expression <a href="random_access_iterator.html#fusion.iterators.concepts.random_access_iterator.expression_requirements">Expression
requirements</a> requirements</a>
</h5> </h5>
@ -96,28 +96,28 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td><a href="random_access_iterator.html" title="Random <td><a href="random_access_iterator.html" title="Random
Access Iterator">Random Access Iterator">Random
Access Iterator</a></td> Access Iterator</a></td>
<td>Constant</td> <td>Constant</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/prior.html" title="prior"><code class="computeroutput"><span class="identifier">prior</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">prior</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td><a href="random_access_iterator.html" title="Random <td><a href="random_access_iterator.html" title="Random
Access Iterator">Random Access Iterator">Random
Access Iterator</a></td> Access Iterator</a></td>
<td>Constant</td> <td>Constant</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/advance_c.html" title="advance_c"><code class="computeroutput"><span class="identifier">advance_c</span></code></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/advance_c.html" title="advance_c"><tt class="computeroutput"><span class="identifier">advance_c</span></tt></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td><a href="random_access_iterator.html" title="Random <td><a href="random_access_iterator.html" title="Random
Access Iterator">Random Access Iterator">Random
Access Iterator</a></td> Access Iterator</a></td>
<td>Constant</td> <td>Constant</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../functions/advance.html" title="advance"><code class="computeroutput"><span class="identifier">advance</span></code></a><span class="special">&lt;</span><span class="identifier">M</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></code></td> <td><tt class="computeroutput"><a href="../functions/advance.html" title="advance"><tt class="computeroutput"><span class="identifier">advance</span></tt></a><span class="special">&lt;</span><span class="identifier">M</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">)</span></tt></td>
<td><a href="random_access_iterator.html" title="Random <td><a href="random_access_iterator.html" title="Random
Access Iterator">Random Access Iterator">Random
Access Iterator</a></td> Access Iterator</a></td>
@ -126,7 +126,7 @@
</tbody> </tbody>
</table></div> </table></div>
<a name="fusion.iterators.concepts.random_access_iterator.meta_expressions"></a><h5> <a name="fusion.iterators.concepts.random_access_iterator.meta_expressions"></a><h5>
<a name="id931213"></a> <a name="id463110"></a>
<a href="random_access_iterator.html#fusion.iterators.concepts.random_access_iterator.meta_expressions">Meta <a href="random_access_iterator.html#fusion.iterators.concepts.random_access_iterator.meta_expressions">Meta
Expressions</a> Expressions</a>
</h5> </h5>
@ -141,53 +141,53 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><a href="../metafunctions/advance_c.html" title="advance_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance_c</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">N</span><span class="special">&gt;::</span><span class="identifier">type</span></code></td> <td><tt class="computeroutput"><a href="../metafunctions/advance_c.html" title="advance_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance_c</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">N</span><span class="special">&gt;::</span><span class="identifier">type</span></tt></td>
<td>Amortized constant <td>Amortized constant
time</td> time</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../metafunctions/advance.html" title="advance"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">M</span><span class="special">&gt;::</span><span class="identifier">type</span></code></td> <td><tt class="computeroutput"><a href="../metafunctions/advance.html" title="advance"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">M</span><span class="special">&gt;::</span><span class="identifier">type</span></tt></td>
<td>Amortized constant <td>Amortized constant
time</td> time</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><a href="../metafunctions/distance.html" title="distance"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">distance</span></code></a><span class="special">&lt;</span><span class="identifier">I</span> <span class="special">,</span><span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">type</span></code></td> <td><tt class="computeroutput"><a href="../metafunctions/distance.html" title="distance"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">distance</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span> <span class="special">,</span><span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">type</span></tt></td>
<td>Amortized constant <td>Amortized constant
time</td> time</td>
</tr> </tr>
</tbody> </tbody>
</table></div> </table></div>
<a name="fusion.iterators.concepts.random_access_iterator.models"></a><h5> <a name="fusion.iterators.concepts.random_access_iterator.models"></a><h5>
<a name="id931444"></a> <a name="id463372"></a>
<a href="random_access_iterator.html#fusion.iterators.concepts.random_access_iterator.models">Models</a> <a href="random_access_iterator.html#fusion.iterators.concepts.random_access_iterator.models">Models</a>
</h5> </h5>
<div class="itemizedlist"><ul type="disc"> <div class="itemizedlist"><ul type="disc">
<li> <li>
<a href="../../sequences/containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> <a href="../../sequences/containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/adapted/std__pair.html" title="std::pair"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code></a> <a href="../../sequences/adapted/std__pair.html" title="std::pair"><tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/adapted/boost__array.html" title="boost::array"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></code></a> <a href="../../sequences/adapted/boost__array.html" title="boost::array"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt></a>
iterator iterator
</li> </li>
<li> <li>
<a href="../../sequences/views/iterator_range.html" title="iterator_range"><code class="computeroutput"><span class="identifier">iterator_range</span></code></a> <a href="../../sequences/views/iterator_range.html" title="iterator_range"><tt class="computeroutput"><span class="identifier">iterator_range</span></tt></a>
iterator (where adapted sequence is a <a href="../../sequences/concepts/random_access_sequence.html" title="Random iterator (where adapted sequence is a <a href="../../sequences/concepts/random_access_sequence.html" title="Random
Access Sequence">Random Access Sequence">Random
Access Sequence</a>) Access Sequence</a>)
</li> </li>
<li> <li>
<a href="../../sequences/views/transform_view.html" title="transform_view"><code class="computeroutput"><span class="identifier">transform_view</span></code></a> <a href="../../sequences/views/transform_view.html" title="transform_view"><tt class="computeroutput"><span class="identifier">transform_view</span></tt></a>
iterator (where adapted sequence is a <a href="../../sequences/concepts/random_access_sequence.html" title="Random iterator (where adapted sequence is a <a href="../../sequences/concepts/random_access_sequence.html" title="Random
Access Sequence">Random Access Sequence">Random
Access Sequence</a>) Access Sequence</a>)
</li> </li>
<li> <li>
<a href="../../sequences/views/reverse_view.html" title="reverse_view"><code class="computeroutput"><span class="identifier">reverse_view</span></code></a> <a href="../../sequences/views/reverse_view.html" title="reverse_view"><tt class="computeroutput"><span class="identifier">reverse_view</span></tt></a>
iterator (where adapted sequence is a <a href="../../sequences/concepts/random_access_sequence.html" title="Random iterator (where adapted sequence is a <a href="../../sequences/concepts/random_access_sequence.html" title="Random
Access Sequence">Random Access Sequence">Random
Access Sequence</a>) Access Sequence</a>)

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Functions</title> <title>Functions</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../iterators.html" title="Iterators"> <link rel="up" href="../iterators.html" title="Iterators">
<link rel="prev" href="concepts/random_access_iterator.html" title="Random <link rel="prev" href="concepts/random_access_iterator.html" title="Random

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>advance</title> <title>advance</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="distance.html" title="distance"> <link rel="prev" href="distance.html" title="distance">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.iterators.functions.advance"></a><a href="advance.html" title="advance">advance</a></h4></div></div></div> <a name="fusion.iterators.functions.advance"></a><a href="advance.html" title="advance">advance</a></h4></div></div></div>
<a name="fusion.iterators.functions.advance.description"></a><h5> <a name="fusion.iterators.functions.advance.description"></a><h5>
<a name="id934725"></a> <a name="id467088"></a>
<a href="advance.html#fusion.iterators.functions.advance.description">Description</a> <a href="advance.html#fusion.iterators.functions.advance.description">Description</a>
</h5> </h5>
<p> <p>
Moves an iterator by a specified distance. Moves an iterator by a specified distance.
</p> </p>
<a name="fusion.iterators.functions.advance.synopsis"></a><h5> <a name="fusion.iterators.functions.advance.synopsis"></a><h5>
<a name="id934751"></a> <a name="id467117"></a>
<a href="advance.html#fusion.iterators.functions.advance.synopsis">Synopsis</a> <a href="advance.html#fusion.iterators.functions.advance.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -41,10 +41,10 @@
<span class="keyword">typename</span> <span class="identifier">I</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">I</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">M</span> <span class="keyword">typename</span> <span class="identifier">M</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/advance.html" title="advance"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">M</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">advance</span><span class="special">(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/advance.html" title="advance"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">M</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">advance</span><span class="special">(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id934901"></a><p class="title"><b>Table<EFBFBD>1.6.<2E>Parameters</b></p> <a name="id467289"></a><p class="title"><b>Table<EFBFBD>1.6.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -58,7 +58,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">i</span></code></td> <td><tt class="computeroutput"><span class="identifier">i</span></tt></td>
<td>Model <td>Model
of <a href="../concepts/forward_iterator.html" title="Forward of <a href="../concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -67,7 +67,7 @@
<td>Iterator to move relative to</td> <td>Iterator to move relative to</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">N</span></code></td> <td><tt class="computeroutput"><span class="identifier">N</span></tt></td>
<td>An <td>An
MPL Integral Constant</td> MPL Integral Constant</td>
<td>Number of positions to move</td> <td>Number of positions to move</td>
@ -76,42 +76,42 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.functions.advance.expression_semantics"></a><h5> <a name="fusion.iterators.functions.advance.expression_semantics"></a><h5>
<a name="id934984"></a> <a name="id467382"></a>
<a href="advance.html#fusion.iterators.functions.advance.expression_semantics">Expression <a href="advance.html#fusion.iterators.functions.advance.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<a href="advance.html" title="advance"><code class="computeroutput"><span class="identifier">advance</span></code></a><span class="special">&lt;</span><span class="identifier">M</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">);</span> <a href="advance.html" title="advance"><tt class="computeroutput"><span class="identifier">advance</span></tt></a><span class="special">&lt;</span><span class="identifier">M</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of the same iterator <span class="bold"><b>Return type</b></span>: A model of the same iterator
concept as <code class="computeroutput"><span class="identifier">i</span></code>. concept as <tt class="computeroutput"><span class="identifier">i</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the <span class="bold"><b>Semantics</b></span>: Returns an iterator to the
element <code class="computeroutput"><span class="identifier">M</span></code> positions from element <tt class="computeroutput"><span class="identifier">M</span></tt> positions from
<code class="computeroutput"><span class="identifier">i</span></code>. If <code class="computeroutput"><span class="identifier">i</span></code> <tt class="computeroutput"><span class="identifier">i</span></tt>. If <tt class="computeroutput"><span class="identifier">i</span></tt>
is a <a href="../concepts/bidirectional_iterator.html" title="Bidirectional is a <a href="../concepts/bidirectional_iterator.html" title="Bidirectional
Iterator">Bidirectional Iterator">Bidirectional
Iterator</a> then <code class="computeroutput"><span class="identifier">M</span></code> Iterator</a> then <tt class="computeroutput"><span class="identifier">M</span></tt>
may be negative. may be negative.
</p> </p>
<a name="fusion.iterators.functions.advance.header"></a><h5> <a name="fusion.iterators.functions.advance.header"></a><h5>
<a name="id935123"></a> <a name="id467539"></a>
<a href="advance.html#fusion.iterators.functions.advance.header">Header</a> <a href="advance.html#fusion.iterators.functions.advance.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <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">iterator</span><span class="special">/</span><span class="identifier">advance</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">iterator</span><span class="special">/</span><span class="identifier">advance</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.iterators.functions.advance.example"></a><h5> <a name="fusion.iterators.functions.advance.example"></a><h5>
<a name="id935206"></a> <a name="id467633"></a>
<a href="advance.html#fusion.iterators.functions.advance.example">Example</a> <a href="advance.html#fusion.iterators.functions.advance.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">typedef</span> <a href="../../sequences/containers/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">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/containers/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">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
<span class="identifier">vec</span> <span class="identifier">v</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">3</span><span class="special">);</span> <span class="identifier">vec</span> <span class="identifier">v</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">3</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a href="advance.html" title="advance"><code class="computeroutput"><span class="identifier">advance</span></code></a><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special">&lt;</span><span class="number">2</span><span class="special">&gt;</span> <span class="special">&gt;(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">)))</span> <span class="special">==</span> <span class="number">3</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="advance.html" title="advance"><tt class="computeroutput"><span class="identifier">advance</span></tt></a><span class="special">&lt;</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special">&lt;</span><span class="number">2</span><span class="special">&gt;</span> <span class="special">&gt;(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">)))</span> <span class="special">==</span> <span class="number">3</span><span class="special">);</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>advance_c</title> <title>advance_c</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="advance.html" title="advance"> <link rel="prev" href="advance.html" title="advance">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.iterators.functions.advance_c"></a><a href="advance_c.html" title="advance_c">advance_c</a></h4></div></div></div> <a name="fusion.iterators.functions.advance_c"></a><a href="advance_c.html" title="advance_c">advance_c</a></h4></div></div></div>
<a name="fusion.iterators.functions.advance_c.description"></a><h5> <a name="fusion.iterators.functions.advance_c.description"></a><h5>
<a name="id935468"></a> <a name="id467930"></a>
<a href="advance_c.html#fusion.iterators.functions.advance_c.description">Description</a> <a href="advance_c.html#fusion.iterators.functions.advance_c.description">Description</a>
</h5> </h5>
<p> <p>
Moves an iterator by a specified distance. Moves an iterator by a specified distance.
</p> </p>
<a name="fusion.iterators.functions.advance_c.synopsis"></a><h5> <a name="fusion.iterators.functions.advance_c.synopsis"></a><h5>
<a name="id935496"></a> <a name="id467961"></a>
<a href="advance_c.html#fusion.iterators.functions.advance_c.synopsis">Synopsis</a> <a href="advance_c.html#fusion.iterators.functions.advance_c.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -41,10 +41,10 @@
<span class="keyword">typename</span> <span class="identifier">I</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">I</span><span class="special">,</span>
<span class="keyword">int</span> <span class="identifier">N</span> <span class="keyword">int</span> <span class="identifier">N</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/advance_c.html" title="advance_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance_c</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">N</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">advance_c</span><span class="special">(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/advance_c.html" title="advance_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance_c</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">N</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">advance_c</span><span class="special">(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id935647"></a><p class="title"><b>Table<EFBFBD>1.7.<2E>Parameters</b></p> <a name="id468133"></a><p class="title"><b>Table<EFBFBD>1.7.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -58,7 +58,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">i</span></code></td> <td><tt class="computeroutput"><span class="identifier">i</span></tt></td>
<td>Model <td>Model
of <a href="../concepts/forward_iterator.html" title="Forward of <a href="../concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -67,7 +67,7 @@
<td>Iterator to move relative to</td> <td>Iterator to move relative to</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">N</span></code></td> <td><tt class="computeroutput"><span class="identifier">N</span></tt></td>
<td>Integer <td>Integer
constant</td> constant</td>
<td>Number of positions to move</td> <td>Number of positions to move</td>
@ -76,42 +76,42 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.functions.advance_c.expression_semantics"></a><h5> <a name="fusion.iterators.functions.advance_c.expression_semantics"></a><h5>
<a name="id935730"></a> <a name="id468227"></a>
<a href="advance_c.html#fusion.iterators.functions.advance_c.expression_semantics">Expression <a href="advance_c.html#fusion.iterators.functions.advance_c.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<a href="advance_c.html" title="advance_c"><code class="computeroutput"><span class="identifier">advance_c</span></code></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">);</span> <a href="advance_c.html" title="advance_c"><tt class="computeroutput"><span class="identifier">advance_c</span></tt></a><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;(</span><span class="identifier">i</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of the same iterator <span class="bold"><b>Return type</b></span>: A model of the same iterator
concept as <code class="computeroutput"><span class="identifier">i</span></code>. concept as <tt class="computeroutput"><span class="identifier">i</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the <span class="bold"><b>Semantics</b></span>: Returns an iterator to the
element <code class="computeroutput"><span class="identifier">N</span></code> positions from element <tt class="computeroutput"><span class="identifier">N</span></tt> positions from
<code class="computeroutput"><span class="identifier">i</span></code>. If <code class="computeroutput"><span class="identifier">i</span></code> <tt class="computeroutput"><span class="identifier">i</span></tt>. If <tt class="computeroutput"><span class="identifier">i</span></tt>
is a <a href="../concepts/bidirectional_iterator.html" title="Bidirectional is a <a href="../concepts/bidirectional_iterator.html" title="Bidirectional
Iterator">Bidirectional Iterator">Bidirectional
Iterator</a> then <code class="computeroutput"><span class="identifier">N</span></code> Iterator</a> then <tt class="computeroutput"><span class="identifier">N</span></tt>
may be negative. may be negative.
</p> </p>
<a name="fusion.iterators.functions.advance_c.header"></a><h5> <a name="fusion.iterators.functions.advance_c.header"></a><h5>
<a name="id935868"></a> <a name="id468384"></a>
<a href="advance_c.html#fusion.iterators.functions.advance_c.header">Header</a> <a href="advance_c.html#fusion.iterators.functions.advance_c.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <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">iterator</span><span class="special">/</span><span class="identifier">advance</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">iterator</span><span class="special">/</span><span class="identifier">advance</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.iterators.functions.advance_c.example"></a><h5> <a name="fusion.iterators.functions.advance_c.example"></a><h5>
<a name="id935951"></a> <a name="id468478"></a>
<a href="advance_c.html#fusion.iterators.functions.advance_c.example">Example</a> <a href="advance_c.html#fusion.iterators.functions.advance_c.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">typedef</span> <a href="../../sequences/containers/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">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/containers/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">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
<span class="identifier">vec</span> <span class="identifier">v</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">3</span><span class="special">);</span> <span class="identifier">vec</span> <span class="identifier">v</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">3</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a href="advance_c.html" title="advance_c"><code class="computeroutput"><span class="identifier">advance_c</span></code></a><span class="special">&lt;</span><span class="number">2</span><span class="special">&gt;(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">)))</span> <span class="special">==</span> <span class="number">3</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="advance_c.html" title="advance_c"><tt class="computeroutput"><span class="identifier">advance_c</span></tt></a><span class="special">&lt;</span><span class="number">2</span><span class="special">&gt;(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">)))</span> <span class="special">==</span> <span class="number">3</span><span class="special">);</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>deref</title> <title>deref</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="../functions.html" title="Functions"> <link rel="prev" href="../functions.html" title="Functions">
@ -26,24 +26,24 @@
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.iterators.functions.deref"></a><a href="deref.html" title="deref">deref</a></h4></div></div></div> <a name="fusion.iterators.functions.deref"></a><a href="deref.html" title="deref">deref</a></h4></div></div></div>
<a name="fusion.iterators.functions.deref.description"></a><h5> <a name="fusion.iterators.functions.deref.description"></a><h5>
<a name="id931670"></a> <a name="id463627"></a>
<a href="deref.html#fusion.iterators.functions.deref.description">Description</a> <a href="deref.html#fusion.iterators.functions.deref.description">Description</a>
</h5> </h5>
<p> <p>
Deferences an iterator. Deferences an iterator.
</p> </p>
<a name="fusion.iterators.functions.deref.synopsis"></a><h5> <a name="fusion.iterators.functions.deref.synopsis"></a><h5>
<a name="id931696"></a> <a name="id463656"></a>
<a href="deref.html#fusion.iterators.functions.deref.synopsis">Synopsis</a> <a href="deref.html#fusion.iterators.functions.deref.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">I</span> <span class="keyword">typename</span> <span class="identifier">I</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">deref</span><span class="special">(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">deref</span><span class="special">(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id931822"></a><p class="title"><b>Table<EFBFBD>1.2.<2E>Parameters</b></p> <a name="id463800"></a><p class="title"><b>Table<EFBFBD>1.2.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -56,7 +56,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">i</span></code></td> <td><tt class="computeroutput"><span class="identifier">i</span></tt></td>
<td>Model <td>Model
of <a href="../concepts/forward_iterator.html" title="Forward of <a href="../concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -67,39 +67,39 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.functions.deref.expression_semantics"></a><h5> <a name="fusion.iterators.functions.deref.expression_semantics"></a><h5>
<a name="id931887"></a> <a name="id463873"></a>
<a href="deref.html#fusion.iterators.functions.deref.expression_semantics">Expression <a href="deref.html#fusion.iterators.functions.deref.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<a href="deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">);</span> <a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><a href="../metafunctions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span></code> <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><a href="../metafunctions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span></tt>
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Dereferences the iterator <span class="bold"><b>Semantics</b></span>: Dereferences the iterator
<code class="computeroutput"><span class="identifier">i</span></code>. <tt class="computeroutput"><span class="identifier">i</span></tt>.
</p> </p>
<a name="fusion.iterators.functions.deref.header"></a><h5> <a name="fusion.iterators.functions.deref.header"></a><h5>
<a name="id932014"></a> <a name="id464016"></a>
<a href="deref.html#fusion.iterators.functions.deref.header">Header</a> <a href="deref.html#fusion.iterators.functions.deref.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <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">iterator</span><span class="special">/</span><span class="identifier">deref</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">iterator</span><span class="special">/</span><span class="identifier">deref</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.iterators.functions.deref.example"></a><h5> <a name="fusion.iterators.functions.deref.example"></a><h5>
<a name="id932096"></a> <a name="id464110"></a>
<a href="deref.html#fusion.iterators.functions.deref.example">Example</a> <a href="deref.html#fusion.iterators.functions.deref.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">typedef</span> <a href="../../sequences/containers/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">&amp;&gt;</span> <span class="identifier">vec</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/containers/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">&amp;&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
<span class="keyword">int</span> <span class="identifier">i</span><span class="special">(</span><span class="number">0</span><span class="special">);</span> <span class="keyword">int</span> <span class="identifier">i</span><span class="special">(</span><span class="number">0</span><span class="special">);</span>
<span class="identifier">vec</span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="identifier">i</span><span class="special">);</span> <span class="identifier">vec</span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="identifier">i</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">))</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">))</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a href="next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">)))</span> <span class="special">==</span> <span class="number">0</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">)))</span> <span class="special">==</span> <span class="number">0</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(&amp;(</span><a href="deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a href="next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">))))</span> <span class="special">==</span> <span class="special">&amp;</span><span class="identifier">i</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(&amp;(</span><a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">))))</span> <span class="special">==</span> <span class="special">&amp;</span><span class="identifier">i</span><span class="special">);</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>distance</title> <title>distance</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="prior.html" title="prior"> <link rel="prev" href="prior.html" title="prior">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.iterators.functions.distance"></a><a href="distance.html" title="distance">distance</a></h4></div></div></div> <a name="fusion.iterators.functions.distance"></a><a href="distance.html" title="distance">distance</a></h4></div></div></div>
<a name="fusion.iterators.functions.distance.description"></a><h5> <a name="fusion.iterators.functions.distance.description"></a><h5>
<a name="id933982"></a> <a name="id466246"></a>
<a href="distance.html#fusion.iterators.functions.distance.description">Description</a> <a href="distance.html#fusion.iterators.functions.distance.description">Description</a>
</h5> </h5>
<p> <p>
Returns the distance between 2 iterators. Returns the distance between 2 iterators.
</p> </p>
<a name="fusion.iterators.functions.distance.synopsis"></a><h5> <a name="fusion.iterators.functions.distance.synopsis"></a><h5>
<a name="id934008"></a> <a name="id466275"></a>
<a href="distance.html#fusion.iterators.functions.distance.synopsis">Synopsis</a> <a href="distance.html#fusion.iterators.functions.distance.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -41,10 +41,10 @@
<span class="keyword">typename</span> <span class="identifier">I</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">I</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">J</span> <span class="keyword">typename</span> <span class="identifier">J</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/distance.html" title="distance"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">distance</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">distance</span><span class="special">(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">J</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">j</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/distance.html" title="distance"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">distance</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">distance</span><span class="special">(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">J</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">j</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id934184"></a><p class="title"><b>Table<EFBFBD>1.5.<2E>Parameters</b></p> <a name="id466475"></a><p class="title"><b>Table<EFBFBD>1.5.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -58,7 +58,7 @@
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td>
<code class="computeroutput"><span class="identifier">i</span></code>, <code class="computeroutput"><span class="identifier">j</span></code> <tt class="computeroutput"><span class="identifier">i</span></tt>, <tt class="computeroutput"><span class="identifier">j</span></tt>
</td> </td>
<td>Models of <a href="../concepts/forward_iterator.html" title="Forward <td>Models of <a href="../concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -69,36 +69,36 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.functions.distance.expression_semantics"></a><h5> <a name="fusion.iterators.functions.distance.expression_semantics"></a><h5>
<a name="id934259"></a> <a name="id466559"></a>
<a href="distance.html#fusion.iterators.functions.distance.expression_semantics">Expression <a href="distance.html#fusion.iterators.functions.distance.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<a href="distance.html" title="distance"><code class="computeroutput"><span class="identifier">distance</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">,</span><span class="identifier">j</span><span class="special">);</span> <a href="distance.html" title="distance"><tt class="computeroutput"><span class="identifier">distance</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">,</span><span class="identifier">j</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">int</span></code> <span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">int</span></tt>
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the distance between <span class="bold"><b>Semantics</b></span>: Returns the distance between
iterators <code class="computeroutput"><span class="identifier">i</span></code> and <code class="computeroutput"><span class="identifier">j</span></code>. iterators <tt class="computeroutput"><span class="identifier">i</span></tt> and <tt class="computeroutput"><span class="identifier">j</span></tt>.
</p> </p>
<a name="fusion.iterators.functions.distance.header"></a><h5> <a name="fusion.iterators.functions.distance.header"></a><h5>
<a name="id934369"></a> <a name="id466684"></a>
<a href="distance.html#fusion.iterators.functions.distance.header">Header</a> <a href="distance.html#fusion.iterators.functions.distance.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <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">iterator</span><span class="special">/</span><span class="identifier">distance</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">iterator</span><span class="special">/</span><span class="identifier">distance</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.iterators.functions.distance.example"></a><h5> <a name="fusion.iterators.functions.distance.example"></a><h5>
<a name="id934452"></a> <a name="id466778"></a>
<a href="distance.html#fusion.iterators.functions.distance.example">Example</a> <a href="distance.html#fusion.iterators.functions.distance.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">typedef</span> <a href="../../sequences/containers/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">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/containers/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">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
<span class="identifier">vec</span> <span class="identifier">v</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">3</span><span class="special">);</span> <span class="identifier">vec</span> <span class="identifier">v</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">3</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="distance.html" title="distance"><code class="computeroutput"><span class="identifier">distance</span></code></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">),</span> <a href="next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">))))</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="distance.html" title="distance"><tt class="computeroutput"><span class="identifier">distance</span></tt></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">),</span> <a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">))))</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>next</title> <title>next</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="deref.html" title="deref"> <link rel="prev" href="deref.html" title="deref">
@ -26,24 +26,24 @@
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.iterators.functions.next"></a><a href="next.html" title="next">next</a></h4></div></div></div> <a name="fusion.iterators.functions.next"></a><a href="next.html" title="next">next</a></h4></div></div></div>
<a name="fusion.iterators.functions.next.description"></a><h5> <a name="fusion.iterators.functions.next.description"></a><h5>
<a name="id932490"></a> <a name="id464557"></a>
<a href="next.html#fusion.iterators.functions.next.description">Description</a> <a href="next.html#fusion.iterators.functions.next.description">Description</a>
</h5> </h5>
<p> <p>
Moves an iterator 1 position forwards. Moves an iterator 1 position forwards.
</p> </p>
<a name="fusion.iterators.functions.next.synopsis"></a><h5> <a name="fusion.iterators.functions.next.synopsis"></a><h5>
<a name="id932516"></a> <a name="id464587"></a>
<a href="next.html#fusion.iterators.functions.next.synopsis">Synopsis</a> <a href="next.html#fusion.iterators.functions.next.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">I</span> <span class="keyword">typename</span> <span class="identifier">I</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/next.html" title="next"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">next</span><span class="special">(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">next</span><span class="special">(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id932642"></a><p class="title"><b>Table<EFBFBD>1.3.<2E>Parameters</b></p> <a name="id464731"></a><p class="title"><b>Table<EFBFBD>1.3.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -56,7 +56,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">i</span></code></td> <td><tt class="computeroutput"><span class="identifier">i</span></tt></td>
<td>Model <td>Model
of <a href="../concepts/forward_iterator.html" title="Forward of <a href="../concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -67,7 +67,7 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.functions.next.expression_semantics"></a><h5> <a name="fusion.iterators.functions.next.expression_semantics"></a><h5>
<a name="id932706"></a> <a name="id464803"></a>
<a href="next.html#fusion.iterators.functions.next.expression_semantics">Expression <a href="next.html#fusion.iterators.functions.next.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
@ -75,31 +75,31 @@
<span class="identifier">next</span><span class="special">(</span><span class="identifier">i</span><span class="special">);</span> <span class="identifier">next</span><span class="special">(</span><span class="identifier">i</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of the same iterator <span class="bold"><b>Return type</b></span>: A model of the same iterator
concept as <code class="computeroutput"><span class="identifier">i</span></code>. concept as <tt class="computeroutput"><span class="identifier">i</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the <span class="bold"><b>Semantics</b></span>: Returns an iterator to the
next element after <code class="computeroutput"><span class="identifier">i</span></code>. next element after <tt class="computeroutput"><span class="identifier">i</span></tt>.
</p> </p>
<a name="fusion.iterators.functions.next.header"></a><h5> <a name="fusion.iterators.functions.next.header"></a><h5>
<a name="id932791"></a> <a name="id464897"></a>
<a href="next.html#fusion.iterators.functions.next.header">Header</a> <a href="next.html#fusion.iterators.functions.next.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <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">iterator</span><span class="special">/</span><span class="identifier">next</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">iterator</span><span class="special">/</span><span class="identifier">next</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.iterators.functions.next.example"></a><h5> <a name="fusion.iterators.functions.next.example"></a><h5>
<a name="id932874"></a> <a name="id464991"></a>
<a href="next.html#fusion.iterators.functions.next.example">Example</a> <a href="next.html#fusion.iterators.functions.next.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">typedef</span> <a href="../../sequences/containers/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">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/containers/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">,</span><span class="keyword">int</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
<span class="identifier">vec</span> <span class="identifier">v</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">3</span><span class="special">);</span> <span class="identifier">vec</span> <span class="identifier">v</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">3</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">))</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">))</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a href="next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">)))</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">)))</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a href="next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">))))</span> <span class="special">==</span> <span class="number">3</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">))))</span> <span class="special">==</span> <span class="number">3</span><span class="special">);</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>prior</title> <title>prior</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../functions.html" title="Functions"> <link rel="up" href="../functions.html" title="Functions">
<link rel="prev" href="next.html" title="next"> <link rel="prev" href="next.html" title="next">
@ -26,24 +26,24 @@
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.iterators.functions.prior"></a><a href="prior.html" title="prior">prior</a></h4></div></div></div> <a name="fusion.iterators.functions.prior"></a><a href="prior.html" title="prior">prior</a></h4></div></div></div>
<a name="fusion.iterators.functions.prior.description"></a><h5> <a name="fusion.iterators.functions.prior.description"></a><h5>
<a name="id933274"></a> <a name="id465444"></a>
<a href="prior.html#fusion.iterators.functions.prior.description">Description</a> <a href="prior.html#fusion.iterators.functions.prior.description">Description</a>
</h5> </h5>
<p> <p>
Moves an iterator 1 position backwards. Moves an iterator 1 position backwards.
</p> </p>
<a name="fusion.iterators.functions.prior.synopsis"></a><h5> <a name="fusion.iterators.functions.prior.synopsis"></a><h5>
<a name="id933300"></a> <a name="id465474"></a>
<a href="prior.html#fusion.iterators.functions.prior.synopsis">Synopsis</a> <a href="prior.html#fusion.iterators.functions.prior.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">I</span> <span class="keyword">typename</span> <span class="identifier">I</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/prior.html" title="prior"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">prior</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">prior</span><span class="special">(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">prior</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">prior</span><span class="special">(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id933426"></a><p class="title"><b>Table<EFBFBD>1.4.<2E>Parameters</b></p> <a name="id465617"></a><p class="title"><b>Table<EFBFBD>1.4.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -56,7 +56,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">i</span></code></td> <td><tt class="computeroutput"><span class="identifier">i</span></tt></td>
<td>Model <td>Model
of <a href="../concepts/bidirectional_iterator.html" title="Bidirectional of <a href="../concepts/bidirectional_iterator.html" title="Bidirectional
Iterator">Bidirectional Iterator">Bidirectional
@ -67,38 +67,38 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.functions.prior.expression_semantics"></a><h5> <a name="fusion.iterators.functions.prior.expression_semantics"></a><h5>
<a name="id933492"></a> <a name="id465691"></a>
<a href="prior.html#fusion.iterators.functions.prior.expression_semantics">Expression <a href="prior.html#fusion.iterators.functions.prior.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<a href="prior.html" title="prior"><code class="computeroutput"><span class="identifier">prior</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">);</span> <a href="prior.html" title="prior"><tt class="computeroutput"><span class="identifier">prior</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">);</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of the same iterator <span class="bold"><b>Return type</b></span>: A model of the same iterator
concept as <code class="computeroutput"><span class="identifier">i</span></code>. concept as <tt class="computeroutput"><span class="identifier">i</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the <span class="bold"><b>Semantics</b></span>: Returns an iterator to the
element prior to <code class="computeroutput"><span class="identifier">i</span></code>. element prior to <tt class="computeroutput"><span class="identifier">i</span></tt>.
</p> </p>
<a name="fusion.iterators.functions.prior.header"></a><h5> <a name="fusion.iterators.functions.prior.header"></a><h5>
<a name="id933586"></a> <a name="id465795"></a>
<a href="prior.html#fusion.iterators.functions.prior.header">Header</a> <a href="prior.html#fusion.iterators.functions.prior.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <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">iterator</span><span class="special">/</span><span class="identifier">prior</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">iterator</span><span class="special">/</span><span class="identifier">prior</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.iterators.functions.prior.example"></a><h5> <a name="fusion.iterators.functions.prior.example"></a><h5>
<a name="id933668"></a> <a name="id465890"></a>
<a href="prior.html#fusion.iterators.functions.prior.example">Example</a> <a href="prior.html#fusion.iterators.functions.prior.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">typedef</span> <a href="../../sequences/containers/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">vec</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/containers/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">vec</span><span class="special">;</span>
<span class="identifier">vec</span> <span class="identifier">v</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">vec</span> <span class="identifier">v</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">assert</span><span class="special">(</span><a href="deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a href="next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">)))</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">)))</span> <span class="special">==</span> <span class="number">2</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a href="prior.html" title="prior"><code class="computeroutput"><span class="identifier">prior</span></code></a><span class="special">(</span><a href="next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">))))</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(</span><a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="prior.html" title="prior"><tt class="computeroutput"><span class="identifier">prior</span></tt></a><span class="special">(</span><a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">))))</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Metafunctions</title> <title>Metafunctions</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../iterators.html" title="Iterators"> <link rel="up" href="../iterators.html" title="Iterators">
<link rel="prev" href="operators/operator_inequality.html" title=" Operator <link rel="prev" href="operators/operator_inequality.html" title=" Operator

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>advance</title> <title>advance</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="distance.html" title="distance"> <link rel="prev" href="distance.html" title="distance">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.iterators.metafunctions.advance"></a><a href="advance.html" title="advance">advance</a></h4></div></div></div> <a name="fusion.iterators.metafunctions.advance"></a><a href="advance.html" title="advance">advance</a></h4></div></div></div>
<a name="fusion.iterators.metafunctions.advance.description"></a><h5> <a name="fusion.iterators.metafunctions.advance.description"></a><h5>
<a name="id942718"></a> <a name="id476145"></a>
<a href="advance.html#fusion.iterators.metafunctions.advance.description">Description</a> <a href="advance.html#fusion.iterators.metafunctions.advance.description">Description</a>
</h5> </h5>
<p> <p>
Moves an iterator a specified distance. Moves an iterator a specified distance.
</p> </p>
<a name="fusion.iterators.metafunctions.advance.synopsis"></a><h5> <a name="fusion.iterators.metafunctions.advance.synopsis"></a><h5>
<a name="id942746"></a> <a name="id476176"></a>
<a href="advance.html#fusion.iterators.metafunctions.advance.synopsis">Synopsis</a> <a href="advance.html#fusion.iterators.metafunctions.advance.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id942848"></a><p class="title"><b>Table<EFBFBD>1.17.<2E>Parameters</b></p> <a name="id476291"></a><p class="title"><b>Table<EFBFBD>1.17.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -61,7 +61,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">I</span></code></td> <td><tt class="computeroutput"><span class="identifier">I</span></tt></td>
<td>Model <td>Model
of <a href="../concepts/forward_iterator.html" title="Forward of <a href="../concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -70,7 +70,7 @@
<td>Iterator to move relative to</td> <td>Iterator to move relative to</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">M</span></code></td> <td><tt class="computeroutput"><span class="identifier">M</span></tt></td>
<td>Model <td>Model
of MPL Integral Constant</td> of MPL Integral Constant</td>
<td>Number of positions to move</td> <td>Number of positions to move</td>
@ -79,43 +79,43 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.metafunctions.advance.expression_semantics"></a><h5> <a name="fusion.iterators.metafunctions.advance.expression_semantics"></a><h5>
<a name="id942930"></a> <a name="id476386"></a>
<a href="advance.html#fusion.iterators.metafunctions.advance.expression_semantics">Expression <a href="advance.html#fusion.iterators.metafunctions.advance.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<a href="advance.html" title="advance"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span><span class="identifier">M</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="advance.html" title="advance"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span><span class="identifier">M</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of the same iterator <span class="bold"><b>Return type</b></span>: A model of the same iterator
concept as <code class="computeroutput"><span class="identifier">I</span></code>. concept as <tt class="computeroutput"><span class="identifier">I</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns an iterator a distance <span class="bold"><b>Semantics</b></span>: Returns an iterator a distance
<code class="computeroutput"><span class="identifier">M</span></code> from <code class="computeroutput"><span class="identifier">I</span></code>. <tt class="computeroutput"><span class="identifier">M</span></tt> from <tt class="computeroutput"><span class="identifier">I</span></tt>.
If <code class="computeroutput"><span class="identifier">I</span></code> is a <a href="../concepts/bidirectional_iterator.html" title="Bidirectional If <tt class="computeroutput"><span class="identifier">I</span></tt> is a <a href="../concepts/bidirectional_iterator.html" title="Bidirectional
Iterator">Bidirectional Iterator">Bidirectional
Iterator</a> then <code class="computeroutput"><span class="identifier">M</span></code> Iterator</a> then <tt class="computeroutput"><span class="identifier">M</span></tt>
may be negative. may be negative.
</p> </p>
<a name="fusion.iterators.metafunctions.advance.header"></a><h5> <a name="fusion.iterators.metafunctions.advance.header"></a><h5>
<a name="id943081"></a> <a name="id476556"></a>
<a href="advance.html#fusion.iterators.metafunctions.advance.header">Header</a> <a href="advance.html#fusion.iterators.metafunctions.advance.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <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">iterator</span><span class="special">/</span><span class="identifier">advance</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">iterator</span><span class="special">/</span><span class="identifier">advance</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.iterators.metafunctions.advance.example"></a><h5> <a name="fusion.iterators.metafunctions.advance.example"></a><h5>
<a name="id943164"></a> <a name="id476650"></a>
<a href="advance.html#fusion.iterators.metafunctions.advance.example">Example</a> <a href="advance.html#fusion.iterators.metafunctions.advance.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">typedef</span> <a href="../../sequences/containers/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">double</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/containers/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">double</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="next.html" title="next"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></code></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">second</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">second</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="next.html" title="next"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></code></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">third</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">third</span><span class="special">;</span>
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a href="equal_to.html" title="equal_to"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></code></a><span class="special">&lt;</span><a href="advance.html" title="advance"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance</span></code></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special">&lt;</span><span class="number">2</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="identifier">third</span><span class="special">&gt;));</span> <span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a href="equal_to.html" title="equal_to"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></tt></a><span class="special">&lt;</span><a href="advance.html" title="advance"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance</span></tt></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special">&lt;</span><span class="number">2</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="identifier">third</span><span class="special">&gt;));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>advance_c</title> <title>advance_c</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="advance.html" title="advance"> <link rel="prev" href="advance.html" title="advance">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.iterators.metafunctions.advance_c"></a><a href="advance_c.html" title="advance_c">advance_c</a></h4></div></div></div> <a name="fusion.iterators.metafunctions.advance_c"></a><a href="advance_c.html" title="advance_c">advance_c</a></h4></div></div></div>
<a name="fusion.iterators.metafunctions.advance_c.description"></a><h5> <a name="fusion.iterators.metafunctions.advance_c.description"></a><h5>
<a name="id943570"></a> <a name="id477111"></a>
<a href="advance_c.html#fusion.iterators.metafunctions.advance_c.description">Description</a> <a href="advance_c.html#fusion.iterators.metafunctions.advance_c.description">Description</a>
</h5> </h5>
<p> <p>
Moves an iterator by a specified distance. Moves an iterator by a specified distance.
</p> </p>
<a name="fusion.iterators.metafunctions.advance_c.synopsis"></a><h5> <a name="fusion.iterators.metafunctions.advance_c.synopsis"></a><h5>
<a name="id943598"></a> <a name="id477141"></a>
<a href="advance_c.html#fusion.iterators.metafunctions.advance_c.synopsis">Synopsis</a> <a href="advance_c.html#fusion.iterators.metafunctions.advance_c.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id943701"></a><p class="title"><b>Table<EFBFBD>1.18.<2E>Parameters</b></p> <a name="id477258"></a><p class="title"><b>Table<EFBFBD>1.18.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -61,7 +61,7 @@
</tr></thead> </tr></thead>
<tbody> <tbody>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">I</span></code></td> <td><tt class="computeroutput"><span class="identifier">I</span></tt></td>
<td>Model <td>Model
of <a href="../concepts/forward_iterator.html" title="Forward of <a href="../concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -70,7 +70,7 @@
<td>Iterator to move relative to</td> <td>Iterator to move relative to</td>
</tr> </tr>
<tr> <tr>
<td><code class="computeroutput"><span class="identifier">N</span></code></td> <td><tt class="computeroutput"><span class="identifier">N</span></tt></td>
<td>Integer <td>Integer
constant</td> constant</td>
<td>Number of positions to move</td> <td>Number of positions to move</td>
@ -79,43 +79,43 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.metafunctions.advance_c.expression_semantics"></a><h5> <a name="fusion.iterators.metafunctions.advance_c.expression_semantics"></a><h5>
<a name="id961260"></a> <a name="id477352"></a>
<a href="advance_c.html#fusion.iterators.metafunctions.advance_c.expression_semantics">Expression <a href="advance_c.html#fusion.iterators.metafunctions.advance_c.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<a href="advance_c.html" title="advance_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance_c</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">N</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="advance_c.html" title="advance_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance_c</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">N</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of the same iterator <span class="bold"><b>Return type</b></span>: A model of the same iterator
concept as <code class="computeroutput"><span class="identifier">I</span></code>. concept as <tt class="computeroutput"><span class="identifier">I</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns an iterator a distance <span class="bold"><b>Semantics</b></span>: Returns an iterator a distance
<code class="computeroutput"><span class="identifier">N</span></code> from <code class="computeroutput"><span class="identifier">I</span></code>. <tt class="computeroutput"><span class="identifier">N</span></tt> from <tt class="computeroutput"><span class="identifier">I</span></tt>.
If <code class="computeroutput"><span class="identifier">I</span></code> is a <a href="../concepts/bidirectional_iterator.html" title="Bidirectional If <tt class="computeroutput"><span class="identifier">I</span></tt> is a <a href="../concepts/bidirectional_iterator.html" title="Bidirectional
Iterator">Bidirectional Iterator">Bidirectional
Iterator</a> then <code class="computeroutput"><span class="identifier">N</span></code> Iterator</a> then <tt class="computeroutput"><span class="identifier">N</span></tt>
may be negative. Equivalent to <code class="computeroutput"><a href="advance.html" title="advance"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span></code>. may be negative. Equivalent to <tt class="computeroutput"><a href="advance.html" title="advance"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special">&lt;</span><span class="identifier">N</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span></tt>.
</p> </p>
<a name="fusion.iterators.metafunctions.advance_c.header"></a><h5> <a name="fusion.iterators.metafunctions.advance_c.header"></a><h5>
<a name="id961498"></a> <a name="id477624"></a>
<a href="advance_c.html#fusion.iterators.metafunctions.advance_c.header">Header</a> <a href="advance_c.html#fusion.iterators.metafunctions.advance_c.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <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">iterator</span><span class="special">/</span><span class="identifier">advance</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">iterator</span><span class="special">/</span><span class="identifier">advance</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.iterators.metafunctions.advance_c.example"></a><h5> <a name="fusion.iterators.metafunctions.advance_c.example"></a><h5>
<a name="id961581"></a> <a name="id477717"></a>
<a href="advance_c.html#fusion.iterators.metafunctions.advance_c.example">Example</a> <a href="advance_c.html#fusion.iterators.metafunctions.advance_c.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">typedef</span> <a href="../../sequences/containers/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">double</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/containers/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">double</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="next.html" title="next"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></code></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">second</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">second</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="next.html" title="next"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></code></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">third</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">third</span><span class="special">;</span>
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a href="equal_to.html" title="equal_to"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></code></a><span class="special">&lt;</span><a href="advance_c.html" title="advance_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance_c</span></code></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">,</span> <span class="number">2</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="identifier">third</span><span class="special">&gt;));</span> <span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a href="equal_to.html" title="equal_to"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></tt></a><span class="special">&lt;</span><a href="advance_c.html" title="advance_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">advance_c</span></tt></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">,</span> <span class="number">2</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="identifier">third</span><span class="special">&gt;));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>deref</title> <title>deref</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="value_of.html" title="value_of"> <link rel="prev" href="value_of.html" title="value_of">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.iterators.metafunctions.deref"></a><a href="deref.html" title="deref">deref</a></h4></div></div></div> <a name="fusion.iterators.metafunctions.deref"></a><a href="deref.html" title="deref">deref</a></h4></div></div></div>
<a name="fusion.iterators.metafunctions.deref.description"></a><h5> <a name="fusion.iterators.metafunctions.deref.description"></a><h5>
<a name="id938856"></a> <a name="id471765"></a>
<a href="deref.html#fusion.iterators.metafunctions.deref.description">Description</a> <a href="deref.html#fusion.iterators.metafunctions.deref.description">Description</a>
</h5> </h5>
<p> <p>
Returns the type that will be returned by dereferencing an iterator. Returns the type that will be returned by dereferencing an iterator.
</p> </p>
<a name="fusion.iterators.metafunctions.deref.synposis"></a><h5> <a name="fusion.iterators.metafunctions.deref.synposis"></a><h5>
<a name="id938884"></a> <a name="id471796"></a>
<a href="deref.html#fusion.iterators.metafunctions.deref.synposis">Synposis</a> <a href="deref.html#fusion.iterators.metafunctions.deref.synposis">Synposis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -46,7 +46,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id938970"></a><p class="title"><b>Table<EFBFBD>1.12.<2E>Parameters</b></p> <a name="id471894"></a><p class="title"><b>Table<EFBFBD>1.12.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -59,7 +59,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">I</span></code></td> <td><tt class="computeroutput"><span class="identifier">I</span></tt></td>
<td>Model <td>Model
of <a href="../concepts/forward_iterator.html" title="Forward of <a href="../concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -70,42 +70,42 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.metafunctions.deref.expression_semantics"></a><h5> <a name="fusion.iterators.metafunctions.deref.expression_semantics"></a><h5>
<a name="id939034"></a> <a name="id471967"></a>
<a href="deref.html#fusion.iterators.metafunctions.deref.expression_semantics">Expression <a href="deref.html#fusion.iterators.metafunctions.deref.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<a href="deref.html" title="deref"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: Any type <span class="bold"><b>Return type</b></span>: Any type
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the result of dereferencing <span class="bold"><b>Semantics</b></span>: Returns the result of dereferencing
an iterator of type <code class="computeroutput"><span class="identifier">I</span></code>. an iterator of type <tt class="computeroutput"><span class="identifier">I</span></tt>.
</p> </p>
<a name="fusion.iterators.metafunctions.deref.header"></a><h5> <a name="fusion.iterators.metafunctions.deref.header"></a><h5>
<a name="id939132"></a> <a name="id472079"></a>
<a href="deref.html#fusion.iterators.metafunctions.deref.header">Header</a> <a href="deref.html#fusion.iterators.metafunctions.deref.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <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">iterator</span><span class="special">/</span><span class="identifier">deref</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">iterator</span><span class="special">/</span><span class="identifier">deref</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.iterators.metafunctions.deref.example"></a><h5> <a name="fusion.iterators.metafunctions.deref.example"></a><h5>
<a name="id939215"></a> <a name="id472173"></a>
<a href="deref.html#fusion.iterators.metafunctions.deref.example">Example</a> <a href="deref.html#fusion.iterators.metafunctions.deref.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">typedef</span> <a href="../../sequences/containers/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">&amp;&gt;</span> <span class="identifier">vec</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/containers/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">&amp;&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="keyword">const</span> <span class="identifier">vec</span> <span class="identifier">const_vec</span><span class="special">;</span> <span class="keyword">typedef</span> <span class="keyword">const</span> <span class="identifier">vec</span> <span class="identifier">const_vec</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="next.html" title="next"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></code></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">second</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">second</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special">&lt;</span><span class="identifier">const_vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">const_first</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special">&lt;</span><span class="identifier">const_vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">const_first</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="next.html" title="next"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></code></a><span class="special">&lt;</span><span class="identifier">const_first</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">const_second</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><span class="identifier">const_first</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">const_second</span><span class="special">;</span>
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="deref.html" title="deref"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></code></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&amp;&gt;));</span> <span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></tt></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&amp;&gt;));</span>
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="deref.html" title="deref"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></code></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&amp;&gt;));</span> <span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="deref.html" title="deref"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></tt></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&amp;&gt;));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>distance</title> <title>distance</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="equal_to.html" title="equal_to"> <link rel="prev" href="equal_to.html" title="equal_to">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.iterators.metafunctions.distance"></a><a href="distance.html" title="distance">distance</a></h4></div></div></div> <a name="fusion.iterators.metafunctions.distance"></a><a href="distance.html" title="distance">distance</a></h4></div></div></div>
<a name="fusion.iterators.metafunctions.distance.description"></a><h5> <a name="fusion.iterators.metafunctions.distance.description"></a><h5>
<a name="id941929"></a> <a name="id475250"></a>
<a href="distance.html#fusion.iterators.metafunctions.distance.description">Description</a> <a href="distance.html#fusion.iterators.metafunctions.distance.description">Description</a>
</h5> </h5>
<p> <p>
Returns the distance between two iterators. Returns the distance between two iterators.
</p> </p>
<a name="fusion.iterators.metafunctions.distance.synopsis"></a><h5> <a name="fusion.iterators.metafunctions.distance.synopsis"></a><h5>
<a name="id941957"></a> <a name="id475281"></a>
<a href="distance.html#fusion.iterators.metafunctions.distance.synopsis">Synopsis</a> <a href="distance.html#fusion.iterators.metafunctions.distance.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -47,7 +47,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id942061"></a><p class="title"><b>Table<EFBFBD>1.16.<2E>Parameters</b></p> <a name="id475399"></a><p class="title"><b>Table<EFBFBD>1.16.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -61,7 +61,7 @@
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td>
<code class="computeroutput"><span class="identifier">I</span></code>, <code class="computeroutput"><span class="identifier">J</span></code> <tt class="computeroutput"><span class="identifier">I</span></tt>, <tt class="computeroutput"><span class="identifier">J</span></tt>
</td> </td>
<td>Models of <a href="../concepts/forward_iterator.html" title="Forward <td>Models of <a href="../concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -72,38 +72,38 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.metafunctions.distance.expression_semantics"></a><h5> <a name="fusion.iterators.metafunctions.distance.expression_semantics"></a><h5>
<a name="id942136"></a> <a name="id475485"></a>
<a href="distance.html#fusion.iterators.metafunctions.distance.expression_semantics">Expression <a href="distance.html#fusion.iterators.metafunctions.distance.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<a href="distance.html" title="distance"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">distance</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="distance.html" title="distance"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">distance</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of MPL Integral Constant. <span class="bold"><b>Return type</b></span>: A model of MPL Integral Constant.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the distance between <span class="bold"><b>Semantics</b></span>: Returns the distance between
iterators of types <code class="computeroutput"><span class="identifier">I</span></code> and iterators of types <tt class="computeroutput"><span class="identifier">I</span></tt> and
<code class="computeroutput"><span class="identifier">J</span></code>. <tt class="computeroutput"><span class="identifier">J</span></tt>.
</p> </p>
<a name="fusion.iterators.metafunctions.distance.header"></a><h5> <a name="fusion.iterators.metafunctions.distance.header"></a><h5>
<a name="id942253"></a> <a name="id475618"></a>
<a href="distance.html#fusion.iterators.metafunctions.distance.header">Header</a> <a href="distance.html#fusion.iterators.metafunctions.distance.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <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">iterator</span><span class="special">/</span><span class="identifier">distance</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">iterator</span><span class="special">/</span><span class="identifier">distance</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.iterators.metafunctions.distance.example"></a><h5> <a name="fusion.iterators.metafunctions.distance.example"></a><h5>
<a name="id942336"></a> <a name="id475712"></a>
<a href="distance.html#fusion.iterators.metafunctions.distance.example">Example</a> <a href="distance.html#fusion.iterators.metafunctions.distance.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">typedef</span> <a href="../../sequences/containers/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">double</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/containers/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">double</span><span class="special">,</span><span class="keyword">char</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="next.html" title="next"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></code></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">second</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">second</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="next.html" title="next"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></code></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">third</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">third</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="distance.html" title="distance"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">distance</span></code></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">,</span><span class="identifier">third</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">dist</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="distance.html" title="distance"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">distance</span></tt></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">,</span><span class="identifier">third</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">dist</span><span class="special">;</span>
<span class="identifier">BOOST_MPL_ASSERT_RELATION</span><span class="special">(</span><span class="identifier">dist</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="special">==,</span> <span class="number">2</span><span class="special">);</span> <span class="identifier">BOOST_MPL_ASSERT_RELATION</span><span class="special">(</span><span class="identifier">dist</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="special">==,</span> <span class="number">2</span><span class="special">);</span>
</pre> </pre>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>equal_to</title> <title>equal_to</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="prior.html" title="prior"> <link rel="prev" href="prior.html" title="prior">
@ -26,15 +26,15 @@
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.iterators.metafunctions.equal_to"></a><a href="equal_to.html" title="equal_to">equal_to</a></h4></div></div></div> <a name="fusion.iterators.metafunctions.equal_to"></a><a href="equal_to.html" title="equal_to">equal_to</a></h4></div></div></div>
<a name="fusion.iterators.metafunctions.equal_to.description"></a><h5> <a name="fusion.iterators.metafunctions.equal_to.description"></a><h5>
<a name="id941142"></a> <a name="id474357"></a>
<a href="equal_to.html#fusion.iterators.metafunctions.equal_to.description">Description</a> <a href="equal_to.html#fusion.iterators.metafunctions.equal_to.description">Description</a>
</h5> </h5>
<p> <p>
Returns a true-valued MPL Integral Constant if <code class="computeroutput"><span class="identifier">I</span></code> Returns a true-valued MPL Integral Constant if <tt class="computeroutput"><span class="identifier">I</span></tt>
and <code class="computeroutput"><span class="identifier">J</span></code> are equal. and <tt class="computeroutput"><span class="identifier">J</span></tt> are equal.
</p> </p>
<a name="fusion.iterators.metafunctions.equal_to.synopsis"></a><h5> <a name="fusion.iterators.metafunctions.equal_to.synopsis"></a><h5>
<a name="id941187"></a> <a name="id474408"></a>
<a href="equal_to.html#fusion.iterators.metafunctions.equal_to.synopsis">Synopsis</a> <a href="equal_to.html#fusion.iterators.metafunctions.equal_to.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id941291"></a><p class="title"><b>Table<EFBFBD>1.15.<2E>Parameters</b></p> <a name="id474526"></a><p class="title"><b>Table<EFBFBD>1.15.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td>
<code class="computeroutput"><span class="identifier">I</span></code>, <code class="computeroutput"><span class="identifier">J</span></code> <tt class="computeroutput"><span class="identifier">I</span></tt>, <tt class="computeroutput"><span class="identifier">J</span></tt>
</td> </td>
<td>Any fusion iterators</td> <td>Any fusion iterators</td>
<td>Operation's <td>Operation's
@ -71,38 +71,38 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.metafunctions.equal_to.expression_semantics"></a><h5> <a name="fusion.iterators.metafunctions.equal_to.expression_semantics"></a><h5>
<a name="id941357"></a> <a name="id474600"></a>
<a href="equal_to.html#fusion.iterators.metafunctions.equal_to.expression_semantics">Expression <a href="equal_to.html#fusion.iterators.metafunctions.equal_to.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<a href="equal_to.html" title="equal_to"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="equal_to.html" title="equal_to"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span> <span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of MPL Integral Constant. <span class="bold"><b>Return type</b></span>: A model of MPL Integral Constant.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code> <span class="bold"><b>Semantics</b></span>: Returns <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>
if <code class="computeroutput"><span class="identifier">I</span></code> and <code class="computeroutput"><span class="identifier">J</span></code> are iterators to the same position. if <tt class="computeroutput"><span class="identifier">I</span></tt> and <tt class="computeroutput"><span class="identifier">J</span></tt> are iterators to the same position.
Returns <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code> otherwise. Returns <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></tt> otherwise.
</p> </p>
<a name="fusion.iterators.metafunctions.equal_to.header"></a><h5> <a name="fusion.iterators.metafunctions.equal_to.header"></a><h5>
<a name="id941526"></a> <a name="id474792"></a>
<a href="equal_to.html#fusion.iterators.metafunctions.equal_to.header">Header</a> <a href="equal_to.html#fusion.iterators.metafunctions.equal_to.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <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">iterator</span><span class="special">/</span><span class="identifier">equal_to</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">iterator</span><span class="special">/</span><span class="identifier">equal_to</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.iterators.metafunctions.equal_to.example"></a><h5> <a name="fusion.iterators.metafunctions.equal_to.example"></a><h5>
<a name="id941609"></a> <a name="id474886"></a>
<a href="equal_to.html#fusion.iterators.metafunctions.equal_to.example">Example</a> <a href="equal_to.html#fusion.iterators.metafunctions.equal_to.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">typedef</span> <a href="../../sequences/containers/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">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/containers/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">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/end.html" title="end"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></code></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">last</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/end.html" title="end"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span></tt></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">last</span><span class="special">;</span>
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a href="equal_to.html" title="equal_to"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></code></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">first</span><span class="special">&gt;));</span> <span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a href="equal_to.html" title="equal_to"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></tt></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">first</span><span class="special">&gt;));</span>
<span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span><a href="equal_to.html" title="equal_to"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></code></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">,</span><span class="identifier">last</span><span class="special">&gt;));</span> <span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span><a href="equal_to.html" title="equal_to"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></tt></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">,</span><span class="identifier">last</span><span class="special">&gt;));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>next</title> <title>next</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="deref.html" title="deref"> <link rel="prev" href="deref.html" title="deref">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.iterators.metafunctions.next"></a><a href="next.html" title="next">next</a></h4></div></div></div> <a name="fusion.iterators.metafunctions.next"></a><a href="next.html" title="next">next</a></h4></div></div></div>
<a name="fusion.iterators.metafunctions.next.description"></a><h5> <a name="fusion.iterators.metafunctions.next.description"></a><h5>
<a name="id939727"></a> <a name="id472753"></a>
<a href="next.html#fusion.iterators.metafunctions.next.description">Description</a> <a href="next.html#fusion.iterators.metafunctions.next.description">Description</a>
</h5> </h5>
<p> <p>
Returns the type of the next iterator in a sequence. Returns the type of the next iterator in a sequence.
</p> </p>
<a name="fusion.iterators.metafunctions.next.synposis"></a><h5> <a name="fusion.iterators.metafunctions.next.synposis"></a><h5>
<a name="id939753"></a> <a name="id472783"></a>
<a href="next.html#fusion.iterators.metafunctions.next.synposis">Synposis</a> <a href="next.html#fusion.iterators.metafunctions.next.synposis">Synposis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -46,7 +46,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id939840"></a><p class="title"><b>Table<EFBFBD>1.13.<2E>Parameters</b></p> <a name="id472882"></a><p class="title"><b>Table<EFBFBD>1.13.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -59,7 +59,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">I</span></code></td> <td><tt class="computeroutput"><span class="identifier">I</span></tt></td>
<td>Model <td>Model
of <a href="../concepts/forward_iterator.html" title="Forward of <a href="../concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -70,37 +70,37 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.metafunctions.next.expression_semantics"></a><h5> <a name="fusion.iterators.metafunctions.next.expression_semantics"></a><h5>
<a name="id939905"></a> <a name="id472955"></a>
<a href="next.html#fusion.iterators.metafunctions.next.expression_semantics">Expression <a href="next.html#fusion.iterators.metafunctions.next.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<a href="next.html" title="next"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of the same iterator <span class="bold"><b>Return type</b></span>: A model of the same iterator
concept as <code class="computeroutput"><span class="identifier">I</span></code>. concept as <tt class="computeroutput"><span class="identifier">I</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the <span class="bold"><b>Semantics</b></span>: Returns an iterator to the
next element in the sequence after <code class="computeroutput"><span class="identifier">I</span></code>. next element in the sequence after <tt class="computeroutput"><span class="identifier">I</span></tt>.
</p> </p>
<a name="fusion.iterators.metafunctions.next.header"></a><h5> <a name="fusion.iterators.metafunctions.next.header"></a><h5>
<a name="id940012"></a> <a name="id473076"></a>
<a href="next.html#fusion.iterators.metafunctions.next.header">Header</a> <a href="next.html#fusion.iterators.metafunctions.next.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <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">iterator</span><span class="special">/</span><span class="identifier">next</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">iterator</span><span class="special">/</span><span class="identifier">next</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.iterators.metafunctions.next.example"></a><h5> <a name="fusion.iterators.metafunctions.next.example"></a><h5>
<a name="id940093"></a> <a name="id473169"></a>
<a href="next.html#fusion.iterators.metafunctions.next.example">Example</a> <a href="next.html#fusion.iterators.metafunctions.next.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">typedef</span> <a href="../../sequences/containers/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">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/containers/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">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="next.html" title="next"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></code></a><span class="special">&lt;</span><a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">second</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">second</span><span class="special">;</span>
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></code></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">double</span><span class="special">&gt;));</span> <span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></tt></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">double</span><span class="special">&gt;));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>prior</title> <title>prior</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="next.html" title="next"> <link rel="prev" href="next.html" title="next">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.iterators.metafunctions.prior"></a><a href="prior.html" title="prior">prior</a></h4></div></div></div> <a name="fusion.iterators.metafunctions.prior"></a><a href="prior.html" title="prior">prior</a></h4></div></div></div>
<a name="fusion.iterators.metafunctions.prior.description"></a><h5> <a name="fusion.iterators.metafunctions.prior.description"></a><h5>
<a name="id940363"></a> <a name="id473475"></a>
<a href="prior.html#fusion.iterators.metafunctions.prior.description">Description</a> <a href="prior.html#fusion.iterators.metafunctions.prior.description">Description</a>
</h5> </h5>
<p> <p>
Returns the type of the previous iterator in a sequence. Returns the type of the previous iterator in a sequence.
</p> </p>
<a name="fusion.iterators.metafunctions.prior.synopsis"></a><h5> <a name="fusion.iterators.metafunctions.prior.synopsis"></a><h5>
<a name="id940391"></a> <a name="id473506"></a>
<a href="prior.html#fusion.iterators.metafunctions.prior.synopsis">Synopsis</a> <a href="prior.html#fusion.iterators.metafunctions.prior.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -46,7 +46,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id940478"></a><p class="title"><b>Table<EFBFBD>1.14.<2E>Parameters</b></p> <a name="id473605"></a><p class="title"><b>Table<EFBFBD>1.14.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -59,7 +59,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">I</span></code></td> <td><tt class="computeroutput"><span class="identifier">I</span></tt></td>
<td>Model <td>Model
of <a href="../concepts/bidirectional_iterator.html" title="Bidirectional of <a href="../concepts/bidirectional_iterator.html" title="Bidirectional
Iterator">Bidirectional Iterator">Bidirectional
@ -70,40 +70,40 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.metafunctions.prior.expression_semantics"></a><h5> <a name="fusion.iterators.metafunctions.prior.expression_semantics"></a><h5>
<a name="id940543"></a> <a name="id473678"></a>
<a href="prior.html#fusion.iterators.metafunctions.prior.expression_semantics">Expression <a href="prior.html#fusion.iterators.metafunctions.prior.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<a href="prior.html" title="prior"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">prior</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="prior.html" title="prior"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">prior</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: A model of the same iterator <span class="bold"><b>Return type</b></span>: A model of the same iterator
concept as <code class="computeroutput"><span class="identifier">I</span></code>. concept as <tt class="computeroutput"><span class="identifier">I</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns an iterator to the <span class="bold"><b>Semantics</b></span>: Returns an iterator to the
previous element in the sequence before <code class="computeroutput"><span class="identifier">I</span></code>. previous element in the sequence before <tt class="computeroutput"><span class="identifier">I</span></tt>.
</p> </p>
<a name="fusion.iterators.metafunctions.prior.header"></a><h5> <a name="fusion.iterators.metafunctions.prior.header"></a><h5>
<a name="id940650"></a> <a name="id473800"></a>
<a href="prior.html#fusion.iterators.metafunctions.prior.header">Header</a> <a href="prior.html#fusion.iterators.metafunctions.prior.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <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">iterator</span><span class="special">/</span><span class="identifier">prior</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">iterator</span><span class="special">/</span><span class="identifier">prior</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.iterators.metafunctions.prior.example"></a><h5> <a name="fusion.iterators.metafunctions.prior.example"></a><h5>
<a name="id940733"></a> <a name="id473894"></a>
<a href="prior.html#fusion.iterators.metafunctions.prior.example">Example</a> <a href="prior.html#fusion.iterators.metafunctions.prior.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">typedef</span> <a href="../../sequences/containers/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">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/containers/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">double</span><span class="special">&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="next.html" title="next"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></code></a><span class="special">&lt;</span><a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">second</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">second</span><span class="special">;</span>
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></code></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">double</span><span class="special">&gt;));</span> <span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></tt></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">double</span><span class="special">&gt;));</span>
<span class="keyword">typedef</span> <a href="prior.html" title="prior"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">prior</span></code></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="prior.html" title="prior"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">prior</span></tt></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span>
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></code></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&gt;));</span> <span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></tt></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&gt;));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>value_of</title> <title>value_of</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="Metafunctions"> <link rel="up" href="../metafunctions.html" title="Metafunctions">
<link rel="prev" href="../metafunctions.html" title="Metafunctions"> <link rel="prev" href="../metafunctions.html" title="Metafunctions">
@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h4 class="title"> <div class="titlepage"><div><div><h4 class="title">
<a name="fusion.iterators.metafunctions.value_of"></a><a href="value_of.html" title="value_of">value_of</a></h4></div></div></div> <a name="fusion.iterators.metafunctions.value_of"></a><a href="value_of.html" title="value_of">value_of</a></h4></div></div></div>
<a name="fusion.iterators.metafunctions.value_of.description"></a><h5> <a name="fusion.iterators.metafunctions.value_of.description"></a><h5>
<a name="id937963"></a> <a name="id470756"></a>
<a href="value_of.html#fusion.iterators.metafunctions.value_of.description">Description</a> <a href="value_of.html#fusion.iterators.metafunctions.value_of.description">Description</a>
</h5> </h5>
<p> <p>
Returns the type stored at the position of an iterator. Returns the type stored at the position of an iterator.
</p> </p>
<a name="fusion.iterators.metafunctions.value_of.synopsis"></a><h5> <a name="fusion.iterators.metafunctions.value_of.synopsis"></a><h5>
<a name="id937990"></a> <a name="id470785"></a>
<a href="value_of.html#fusion.iterators.metafunctions.value_of.synopsis">Synopsis</a> <a href="value_of.html#fusion.iterators.metafunctions.value_of.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -46,7 +46,7 @@
<span class="special">};</span> <span class="special">};</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id938078"></a><p class="title"><b>Table<EFBFBD>1.11.<2E>Parameters</b></p> <a name="id470885"></a><p class="title"><b>Table<EFBFBD>1.11.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -59,7 +59,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">I</span></code></td> <td><tt class="computeroutput"><span class="identifier">I</span></tt></td>
<td>Model <td>Model
of <a href="../concepts/forward_iterator.html" title="Forward of <a href="../concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -70,40 +70,40 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.metafunctions.value_of.expression_semantics"></a><h5> <a name="fusion.iterators.metafunctions.value_of.expression_semantics"></a><h5>
<a name="id938143"></a> <a name="id470958"></a>
<a href="value_of.html#fusion.iterators.metafunctions.value_of.expression_semantics">Expression <a href="value_of.html#fusion.iterators.metafunctions.value_of.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<a href="value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span> <a href="value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: Any type <span class="bold"><b>Return type</b></span>: Any type
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Returns the type stored in <span class="bold"><b>Semantics</b></span>: Returns the type stored in
a sequence at iterator position <code class="computeroutput"><span class="identifier">I</span></code>. a sequence at iterator position <tt class="computeroutput"><span class="identifier">I</span></tt>.
</p> </p>
<a name="fusion.iterators.metafunctions.value_of.header"></a><h5> <a name="fusion.iterators.metafunctions.value_of.header"></a><h5>
<a name="id938242"></a> <a name="id471069"></a>
<a href="value_of.html#fusion.iterators.metafunctions.value_of.header">Header</a> <a href="value_of.html#fusion.iterators.metafunctions.value_of.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <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">iterator</span><span class="special">/</span><span class="identifier">value_of</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">iterator</span><span class="special">/</span><span class="identifier">value_of</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.iterators.metafunctions.value_of.example"></a><h5> <a name="fusion.iterators.metafunctions.value_of.example"></a><h5>
<a name="id938324"></a> <a name="id471163"></a>
<a href="value_of.html#fusion.iterators.metafunctions.value_of.example">Example</a> <a href="value_of.html#fusion.iterators.metafunctions.value_of.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">typedef</span> <a href="../../sequences/containers/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">&amp;,</span><span class="keyword">const</span> <span class="keyword">int</span><span class="special">&amp;&gt;</span> <span class="identifier">vec</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/containers/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">&amp;,</span><span class="keyword">const</span> <span class="keyword">int</span><span class="special">&amp;&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></code></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/intrinsics/metafunctions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span></tt></a><span class="special">&lt;</span><span class="identifier">vec</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">first</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="next.html" title="next"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></code></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">second</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">second</span><span class="special">;</span>
<span class="keyword">typedef</span> <a href="next.html" title="next"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></code></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">third</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="next.html" title="next"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">next</span></tt></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="identifier">third</span><span class="special">;</span>
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></code></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&gt;));</span> <span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></tt></a><span class="special">&lt;</span><span class="identifier">first</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&gt;));</span>
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></code></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&amp;&gt;));</span> <span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></tt></a><span class="special">&lt;</span><span class="identifier">second</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&amp;&gt;));</span>
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="value_of.html" title="value_of"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></code></a><span class="special">&lt;</span><span class="identifier">third</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">int</span><span class="special">&amp;&gt;));</span> <span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_same</span><span class="special">&lt;</span><a href="value_of.html" title="value_of"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_of</span></tt></a><span class="special">&lt;</span><span class="identifier">third</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">int</span><span class="special">&amp;&gt;));</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,7 +3,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Operators</title> <title>Operators</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../iterators.html" title="Iterators"> <link rel="up" href="../iterators.html" title="Iterators">
<link rel="prev" href="functions/advance_c.html" title="advance_c"> <link rel="prev" href="functions/advance_c.html" title="advance_c">

View File

@ -4,7 +4,7 @@
<title> Operator <title> Operator
==</title> ==</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../operators.html" title="Operators"> <link rel="up" href="../operators.html" title="Operators">
<link rel="prev" href="operator_unary_star.html" title=" Operator <link rel="prev" href="operator_unary_star.html" title=" Operator
@ -31,14 +31,14 @@
=="> Operator =="> Operator
==</a></h4></div></div></div> ==</a></h4></div></div></div>
<a name="fusion.iterators.operators.operator_equality.description"></a><h5> <a name="fusion.iterators.operators.operator_equality.description"></a><h5>
<a name="id936994"></a> <a name="id469661"></a>
<a href="operator_equality.html#fusion.iterators.operators.operator_equality.description">Description</a> <a href="operator_equality.html#fusion.iterators.operators.operator_equality.description">Description</a>
</h5> </h5>
<p> <p>
Compares 2 iterators for equality. Compares 2 iterators for equality.
</p> </p>
<a name="fusion.iterators.operators.operator_equality.synopsis"></a><h5> <a name="fusion.iterators.operators.operator_equality.synopsis"></a><h5>
<a name="id937021"></a> <a name="id469692"></a>
<a href="operator_equality.html#fusion.iterators.operators.operator_equality.synopsis">Synopsis</a> <a href="operator_equality.html#fusion.iterators.operators.operator_equality.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -49,7 +49,7 @@
<span class="emphasis"><em>unspecified</em></span> <span class="keyword">operator</span><span class="special">==(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">J</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span> <span class="emphasis"><em>unspecified</em></span> <span class="keyword">operator</span><span class="special">==(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">J</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id937146"></a><p class="title"><b>Table<EFBFBD>1.9.<2E>Parameters</b></p> <a name="id469833"></a><p class="title"><b>Table<EFBFBD>1.9.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -63,7 +63,7 @@
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td>
<code class="computeroutput"><span class="identifier">i</span></code>, <code class="computeroutput"><span class="identifier">j</span></code> <tt class="computeroutput"><span class="identifier">i</span></tt>, <tt class="computeroutput"><span class="identifier">j</span></tt>
</td> </td>
<td>Any fusion iterators</td> <td>Any fusion iterators</td>
<td>Operation's <td>Operation's
@ -72,7 +72,7 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.operators.operator_equality.expression_semantics"></a><h5> <a name="fusion.iterators.operators.operator_equality.expression_semantics"></a><h5>
<a name="id937215"></a> <a name="id469909"></a>
<a href="operator_equality.html#fusion.iterators.operators.operator_equality.expression_semantics">Expression <a href="operator_equality.html#fusion.iterators.operators.operator_equality.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
@ -80,15 +80,15 @@
<span class="identifier">i</span> <span class="special">==</span> <span class="identifier">j</span> <span class="identifier">i</span> <span class="special">==</span> <span class="identifier">j</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: Convertible to <code class="computeroutput"><span class="keyword">bool</span></code>. <span class="bold"><b>Return type</b></span>: Convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Equivalent to <code class="computeroutput"><a href="../metafunctions/equal_to.html" title="equal_to"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span><span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">value</span></code> <span class="bold"><b>Semantics</b></span>: Equivalent to <tt class="computeroutput"><a href="../metafunctions/equal_to.html" title="equal_to"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span><span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">value</span></tt>
where <code class="computeroutput"><span class="identifier">I</span></code> and <code class="computeroutput"><span class="identifier">J</span></code> are the types of <code class="computeroutput"><span class="identifier">i</span></code> where <tt class="computeroutput"><span class="identifier">I</span></tt> and <tt class="computeroutput"><span class="identifier">J</span></tt> are the types of <tt class="computeroutput"><span class="identifier">i</span></tt>
and <code class="computeroutput"><span class="identifier">j</span></code> respectively. and <tt class="computeroutput"><span class="identifier">j</span></tt> respectively.
</p> </p>
<a name="fusion.iterators.operators.operator_equality.header"></a><h5> <a name="fusion.iterators.operators.operator_equality.header"></a><h5>
<a name="id937376"></a> <a name="id470092"></a>
<a href="operator_equality.html#fusion.iterators.operators.operator_equality.header">Header</a> <a href="operator_equality.html#fusion.iterators.operators.operator_equality.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -4,7 +4,7 @@
<title> Operator <title> Operator
!=</title> !=</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../operators.html" title="Operators"> <link rel="up" href="../operators.html" title="Operators">
<link rel="prev" href="operator_equality.html" title=" Operator <link rel="prev" href="operator_equality.html" title=" Operator
@ -30,14 +30,14 @@
!="> Operator !="> Operator
!=</a></h4></div></div></div> !=</a></h4></div></div></div>
<a name="fusion.iterators.operators.operator_inequality.description"></a><h5> <a name="fusion.iterators.operators.operator_inequality.description"></a><h5>
<a name="id937480"></a> <a name="id470210"></a>
<a href="operator_inequality.html#fusion.iterators.operators.operator_inequality.description">Description</a> <a href="operator_inequality.html#fusion.iterators.operators.operator_inequality.description">Description</a>
</h5> </h5>
<p> <p>
Compares 2 iterators for inequality. Compares 2 iterators for inequality.
</p> </p>
<a name="fusion.iterators.operators.operator_inequality.synopsis"></a><h5> <a name="fusion.iterators.operators.operator_inequality.synopsis"></a><h5>
<a name="id937508"></a> <a name="id470242"></a>
<a href="operator_inequality.html#fusion.iterators.operators.operator_inequality.synopsis">Synopsis</a> <a href="operator_inequality.html#fusion.iterators.operators.operator_inequality.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
@ -48,7 +48,7 @@
<span class="emphasis"><em>unspecified</em></span> <span class="keyword">operator</span><span class="special">==(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">J</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span> <span class="emphasis"><em>unspecified</em></span> <span class="keyword">operator</span><span class="special">==(</span><span class="identifier">I</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">,</span> <span class="identifier">J</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id937633"></a><p class="title"><b>Table<EFBFBD>1.10.<2E>Parameters</b></p> <a name="id470384"></a><p class="title"><b>Table<EFBFBD>1.10.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -62,7 +62,7 @@
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td> <td>
<code class="computeroutput"><span class="identifier">i</span></code>, <code class="computeroutput"><span class="identifier">j</span></code> <tt class="computeroutput"><span class="identifier">i</span></tt>, <tt class="computeroutput"><span class="identifier">j</span></tt>
</td> </td>
<td>Any fusion iterators</td> <td>Any fusion iterators</td>
<td>Operation's <td>Operation's
@ -71,20 +71,20 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.operators.operator_inequality.expression_semantics"></a><h5> <a name="fusion.iterators.operators.operator_inequality.expression_semantics"></a><h5>
<a name="id937701"></a> <a name="id470458"></a>
<a href="operator_inequality.html#fusion.iterators.operators.operator_inequality.expression_semantics">Expression <a href="operator_inequality.html#fusion.iterators.operators.operator_inequality.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: Convertible to <code class="computeroutput"><span class="keyword">bool</span></code>. <span class="bold"><b>Return type</b></span>: Convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Equivalent to <code class="computeroutput"><span class="special">!</span><a href="../metafunctions/equal_to.html" title="equal_to"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span><span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">value</span></code> <span class="bold"><b>Semantics</b></span>: Equivalent to <tt class="computeroutput"><span class="special">!</span><a href="../metafunctions/equal_to.html" title="equal_to"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">equal_to</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">,</span><span class="identifier">J</span><span class="special">&gt;::</span><span class="identifier">value</span></tt>
where <code class="computeroutput"><span class="identifier">I</span></code> and <code class="computeroutput"><span class="identifier">J</span></code> are the types of <code class="computeroutput"><span class="identifier">i</span></code> where <tt class="computeroutput"><span class="identifier">I</span></tt> and <tt class="computeroutput"><span class="identifier">J</span></tt> are the types of <tt class="computeroutput"><span class="identifier">i</span></tt>
and <code class="computeroutput"><span class="identifier">j</span></code> respectively. and <tt class="computeroutput"><span class="identifier">j</span></tt> respectively.
</p> </p>
<a name="fusion.iterators.operators.operator_inequality.header"></a><h5> <a name="fusion.iterators.operators.operator_inequality.header"></a><h5>
<a name="id937845"></a> <a name="id470622"></a>
<a href="operator_inequality.html#fusion.iterators.operators.operator_inequality.header">Header</a> <a href="operator_inequality.html#fusion.iterators.operators.operator_inequality.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">

View File

@ -4,7 +4,7 @@
<title> Operator <title> Operator
*</title> *</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1"> <meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
<link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0"> <link rel="start" href="../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../operators.html" title="Operators"> <link rel="up" href="../operators.html" title="Operators">
<link rel="prev" href="../operators.html" title="Operators"> <link rel="prev" href="../operators.html" title="Operators">
@ -30,24 +30,24 @@
*"> Operator *"> Operator
*</a></h4></div></div></div> *</a></h4></div></div></div>
<a name="fusion.iterators.operators.operator_unary_star.description"></a><h5> <a name="fusion.iterators.operators.operator_unary_star.description"></a><h5>
<a name="id936213"></a> <a name="id468777"></a>
<a href="operator_unary_star.html#fusion.iterators.operators.operator_unary_star.description">Description</a> <a href="operator_unary_star.html#fusion.iterators.operators.operator_unary_star.description">Description</a>
</h5> </h5>
<p> <p>
Dereferences an iterator. Dereferences an iterator.
</p> </p>
<a name="fusion.iterators.operators.operator_unary_star.synopsis"></a><h5> <a name="fusion.iterators.operators.operator_unary_star.synopsis"></a><h5>
<a name="id936240"></a> <a name="id468807"></a>
<a href="operator_unary_star.html#fusion.iterators.operators.operator_unary_star.synopsis">Synopsis</a> <a href="operator_unary_star.html#fusion.iterators.operators.operator_unary_star.synopsis">Synopsis</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">template</span><span class="special">&lt;</span> <span class="keyword">template</span><span class="special">&lt;</span>
<span class="keyword">typename</span> <span class="identifier">I</span> <span class="keyword">typename</span> <span class="identifier">I</span>
<span class="special">&gt;</span> <span class="special">&gt;</span>
<span class="keyword">typename</span> <a href="../metafunctions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></code></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="keyword">operator</span><span class="special">*(</span><span class="emphasis"><em>unspecified</em></span><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span> <span class="keyword">typename</span> <a href="../metafunctions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">deref</span></tt></a><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;::</span><span class="identifier">type</span> <span class="keyword">operator</span><span class="special">*(</span><span class="emphasis"><em>unspecified</em></span><span class="special">&lt;</span><span class="identifier">I</span><span class="special">&gt;</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">i</span><span class="special">);</span>
</pre> </pre>
<div class="table"> <div class="table">
<a name="id936379"></a><p class="title"><b>Table<EFBFBD>1.8.<2E>Parameters</b></p> <a name="id468964"></a><p class="title"><b>Table<EFBFBD>1.8.<2E>Parameters</b></p>
<table class="table" summary="Parameters"> <table class="table" summary="Parameters">
<colgroup> <colgroup>
<col> <col>
@ -60,7 +60,7 @@
<th>Description</th> <th>Description</th>
</tr></thead> </tr></thead>
<tbody><tr> <tbody><tr>
<td><code class="computeroutput"><span class="identifier">i</span></code></td> <td><tt class="computeroutput"><span class="identifier">i</span></tt></td>
<td>Model <td>Model
of <a href="../concepts/forward_iterator.html" title="Forward of <a href="../concepts/forward_iterator.html" title="Forward
Iterator">Forward Iterator">Forward
@ -71,7 +71,7 @@
</table> </table>
</div> </div>
<a name="fusion.iterators.operators.operator_unary_star.expression_semantics"></a><h5> <a name="fusion.iterators.operators.operator_unary_star.expression_semantics"></a><h5>
<a name="id936446"></a> <a name="id469039"></a>
<a href="operator_unary_star.html#fusion.iterators.operators.operator_unary_star.expression_semantics">Expression <a href="operator_unary_star.html#fusion.iterators.operators.operator_unary_star.expression_semantics">Expression
Semantics</a> Semantics</a>
</h5> </h5>
@ -79,31 +79,31 @@
<span class="special">*</span><span class="identifier">i</span> <span class="special">*</span><span class="identifier">i</span>
</pre> </pre>
<p> <p>
<span class="bold"><strong>Return type</strong></span>: Equivalent to the return <span class="bold"><b>Return type</b></span>: Equivalent to the return
type of <code class="computeroutput"><a href="../functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></code>. type of <tt class="computeroutput"><a href="../functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></tt>.
</p> </p>
<p> <p>
<span class="bold"><strong>Semantics</strong></span>: Equivalent to <code class="computeroutput"><a href="../functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></code>. <span class="bold"><b>Semantics</b></span>: Equivalent to <tt class="computeroutput"><a href="../functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">)</span></tt>.
</p> </p>
<a name="fusion.iterators.operators.operator_unary_star.header"></a><h5> <a name="fusion.iterators.operators.operator_unary_star.header"></a><h5>
<a name="id936564"></a> <a name="id469173"></a>
<a href="operator_unary_star.html#fusion.iterators.operators.operator_unary_star.header">Header</a> <a href="operator_unary_star.html#fusion.iterators.operators.operator_unary_star.header">Header</a>
</h5> </h5>
<pre class="programlisting"> <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">iterator</span><span class="special">/</span><span class="identifier">deref</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">iterator</span><span class="special">/</span><span class="identifier">deref</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre> </pre>
<a name="fusion.iterators.operators.operator_unary_star.example"></a><h5> <a name="fusion.iterators.operators.operator_unary_star.example"></a><h5>
<a name="id936648"></a> <a name="id469268"></a>
<a href="operator_unary_star.html#fusion.iterators.operators.operator_unary_star.example">Example</a> <a href="operator_unary_star.html#fusion.iterators.operators.operator_unary_star.example">Example</a>
</h5> </h5>
<pre class="programlisting"> <pre class="programlisting">
<span class="keyword">typedef</span> <a href="../../sequences/containers/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">&amp;&gt;</span> <span class="identifier">vec</span><span class="special">;</span> <span class="keyword">typedef</span> <a href="../../sequences/containers/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">&amp;&gt;</span> <span class="identifier">vec</span><span class="special">;</span>
<span class="keyword">int</span> <span class="identifier">i</span><span class="special">(</span><span class="number">0</span><span class="special">);</span> <span class="keyword">int</span> <span class="identifier">i</span><span class="special">(</span><span class="number">0</span><span class="special">);</span>
<span class="identifier">vec</span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="identifier">i</span><span class="special">);</span> <span class="identifier">vec</span> <span class="identifier">v</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="identifier">i</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(*</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(*</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="number">1</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(*</span><a href="../functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">))</span> <span class="special">==</span> <span class="number">0</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(*</span><a href="../functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">))</span> <span class="special">==</span> <span class="number">0</span><span class="special">);</span>
<span class="identifier">assert</span><span class="special">(&amp;(*</span><a href="../functions/next.html" title="next"><code class="computeroutput"><span class="identifier">next</span></code></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">v</span><span class="special">)))</span> <span class="special">==</span> <span class="special">&amp;</span><span class="identifier">i</span><span class="special">);</span> <span class="identifier">assert</span><span class="special">(&amp;(*</span><a href="../functions/next.html" title="next"><tt class="computeroutput"><span class="identifier">next</span></tt></a><span class="special">(</span><a href="../../sequences/intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">v</span><span class="special">)))</span> <span class="special">==</span> <span class="special">&amp;</span><span class="identifier">i</span><span class="special">);</span>
</pre> </pre>
</div> </div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

Some files were not shown because too many files have changed in this diff Show More