forked from boostorg/fusion
introduces documentation for deduce / deduce_sequence
[SVN r36813]
This commit is contained in:
1 parent
1c542fa544
commit
586440e16e
215 files changed
+4061
-3767
No files matched your search
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Adapted</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../sequences.html" title="Sequences">
|
||||
<link rel="prev" href="views/reverse_view.html" title="reverse_view">
|
||||
@@ -26,18 +26,18 @@
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="fusion.sequences.adapted"></a><a href="adapted.html" title="Adapted">Adapted</a></h3></div></div></div>
|
||||
<p>
|
||||
Fusion provides a couple of adapters for other sequences such as <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt>,
|
||||
Fusion provides a couple of adapters for other sequences such as <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> sequences,
|
||||
and <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt>. These adapters are written using
|
||||
and <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></code>. These adapters are written using
|
||||
Fusion's non-intrusive <a href="../extension.html" title="Extension">Extension</a>
|
||||
mechanism. If you wish to use these sequences with fusion, simply include
|
||||
the necessary files and they will be regarded as first-class, fully conforming
|
||||
fusion sequences
|
||||
<sup>[<a name="id500080" href="#ftn.id500080">4</a>]</sup>
|
||||
<sup>[<a name="id1000253" href="#ftn.id1000253">4</a>]</sup>
|
||||
.
|
||||
</p>
|
||||
<a name="fusion.sequences.adapted.header"></a><h4>
|
||||
<a name="id500121"></a>
|
||||
<a name="id1000290"></a>
|
||||
<a href="adapted.html#fusion.sequences.adapted.header">Header</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@@ -45,7 +45,7 @@
|
||||
</pre>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id500080" href="#id500080">4</a>] </sup>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id1000253" href="#id1000253">4</a>] </sup>
|
||||
Fusion sequences may also be adapted as fully conforming <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
|
||||
sequences (see <a href="intrinsics.html" title="Intrinsics">Intrinsics</a>).
|
||||
That way, we can have 2-way adaptation to and from <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>boost::array</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../adapted.html" title="Adapted">
|
||||
<link rel="prev" href="mpl_sequence.html" title="mpl sequence">
|
||||
@@ -26,41 +26,41 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.adapted.boost__array"></a><a href="boost__array.html" title="boost::array">boost::array</a></h4></div></div></div>
|
||||
<p>
|
||||
This module provides adapters for <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt>.
|
||||
Including the module header makes <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></tt>
|
||||
This module provides adapters for <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></code>.
|
||||
Including the module header makes <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span></code>
|
||||
a fully conforming <a href="../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.adapted.boost__array.header"></a><h5>
|
||||
<a name="id501813"></a>
|
||||
<a name="id1001782"></a>
|
||||
<a href="boost__array.html#fusion.sequences.adapted.boost__array.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">array</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.adapted.boost__array.model_of"></a><h5>
|
||||
<a name="id501917"></a>
|
||||
<a name="id1001873"></a>
|
||||
<a href="boost__array.html#fusion.sequences.adapted.boost__array.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a></li></ul></div>
|
||||
<a name="fusion.sequences.adapted.boost__array.example"></a><h5>
|
||||
<a name="id501958"></a>
|
||||
<a name="id1001910"></a>
|
||||
<a href="boost__array.html#fusion.sequences.adapted.boost__array.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">array</span><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="number">3</span><span class="special">></span> <span class="identifier">arr</span> <span class="special">=</span> <span class="special">{{</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">,</span><span class="number">3</span><span class="special">}};</span>
|
||||
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="special">*</span><a href="../intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">arr</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</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="../intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">arr</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="special">*</span><a href="../../iterators/functions/advance_c.html" title="advance_c"><tt class="computeroutput"><span class="identifier">advance_c</span></tt></a><span class="special"><</span><span class="number">2</span><span class="special">>(</span><a href="../intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">arr</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="special">*</span><a href="../../iterators/functions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">prior</span></tt></a><span class="special">(</span><a href="../intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">arr</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="number">2</span><span class="special">>(</span><span class="identifier">arr</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="special">*</span><a href="../intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">arr</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</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="../intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">arr</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="special">*</span><a href="../../iterators/functions/advance_c.html" title="advance_c"><code class="computeroutput"><span class="identifier">advance_c</span></code></a><span class="special"><</span><span class="number">2</span><span class="special">>(</span><a href="../intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">arr</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="special">*</span><a href="../../iterators/functions/prior.html" title="prior"><code class="computeroutput"><span class="identifier">prior</span></code></a><span class="special">(</span><a href="../intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">arr</span><span class="special">))</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a><span class="special"><</span><span class="number">2</span><span class="special">>(</span><span class="identifier">arr</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.adapted.boost__array.see_also"></a><h5>
|
||||
<a name="id502578"></a>
|
||||
<a name="id1002455"></a>
|
||||
<a href="boost__array.html#fusion.sequences.adapted.boost__array.see_also">See also</a>
|
||||
</h5>
|
||||
<p>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>boost::tuple</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../adapted.html" title="Adapted">
|
||||
<link rel="prev" href="boost__array.html" title="boost::array">
|
||||
@@ -26,27 +26,27 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.adapted.boost__tuple"></a><a href="boost__tuple.html" title="boost::tuple">boost::tuple</a></h4></div></div></div>
|
||||
<p>
|
||||
This module provides adapters for <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">tuple</span></tt>.
|
||||
Including the module header makes <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">tuple</span></tt>
|
||||
This module provides adapters for <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">tuple</span></code>.
|
||||
Including the module header makes <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">tuple</span></code>
|
||||
a fully conforming <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.adapted.boost__tuple.header"></a><h5>
|
||||
<a name="id502691"></a>
|
||||
<a name="id1002555"></a>
|
||||
<a href="boost__tuple.html#fusion.sequences.adapted.boost__tuple.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">boost_tuple</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.adapted.boost__tuple.model_of"></a><h5>
|
||||
<a name="id502796"></a>
|
||||
<a name="id1002647"></a>
|
||||
<a href="boost__tuple.html#fusion.sequences.adapted.boost__tuple.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward Sequence</a></li></ul></div>
|
||||
<a name="fusion.sequences.adapted.boost__tuple.example"></a><h5>
|
||||
<a name="id502838"></a>
|
||||
<a name="id1002684"></a>
|
||||
<a href="boost__tuple.html#fusion.sequences.adapted.boost__tuple.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -55,7 +55,7 @@
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="special">*</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">next</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">begin</span><span class="special">(</span><span class="identifier">example_tuple</span><span class="special">))</span> <span class="special"><<</span> <span class="char">'\n'</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.adapted.boost__tuple.see_also"></a><h5>
|
||||
<a name="id503154"></a>
|
||||
<a name="id1002962"></a>
|
||||
<a href="boost__tuple.html#fusion.sequences.adapted.boost__tuple.see_also">See also</a>
|
||||
</h5>
|
||||
<p>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>boost::variant</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../adapted.html" title="Adapted">
|
||||
<link rel="prev" href="boost__tuple.html" title="boost::tuple">
|
||||
@@ -26,8 +26,8 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.adapted.boost__variant"></a><a href="boost__variant.html" title="boost::variant">boost::variant</a></h4></div></div></div>
|
||||
<p>
|
||||
This module provides adapters for <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">variant</span></tt>.
|
||||
Including the module header makes <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">variant</span></tt>
|
||||
This module provides adapters for <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">variant</span></code>.
|
||||
Including the module header makes <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">variant</span></code>
|
||||
a fully conforming <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>. The variant acts as a sequence of the types that can be
|
||||
@@ -36,21 +36,21 @@
|
||||
value of that type.
|
||||
</p>
|
||||
<a name="fusion.sequences.adapted.boost__variant.header"></a><h5>
|
||||
<a name="id503271"></a>
|
||||
<a name="id1003066"></a>
|
||||
<a href="boost__variant.html#fusion.sequences.adapted.boost__variant.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">variant</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.adapted.boost__variant.model_of"></a><h5>
|
||||
<a name="id503374"></a>
|
||||
<a name="id1003157"></a>
|
||||
<a href="boost__variant.html#fusion.sequences.adapted.boost__variant.model_of">Model
|
||||
of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward Sequence</a></li></ul></div>
|
||||
<a name="fusion.sequences.adapted.boost__variant.example"></a><h5>
|
||||
<a name="id503417"></a>
|
||||
<a name="id1003195"></a>
|
||||
<a href="boost__variant.html#fusion.sequences.adapted.boost__variant.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -60,7 +60,7 @@
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">example_variant</span> <span class="special"><<</span> <span class="char">'\n'</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.adapted.boost__variant.see_also"></a><h5>
|
||||
<a name="id503699"></a>
|
||||
<a name="id1003444"></a>
|
||||
<a href="boost__variant.html#fusion.sequences.adapted.boost__variant.see_also">See also</a>
|
||||
</h5>
|
||||
<p>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>mpl sequence</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../adapted.html" title="Adapted">
|
||||
<link rel="prev" href="std__pair.html" title="std::pair">
|
||||
@@ -31,14 +31,14 @@
|
||||
sequences fully conforming fusion sequences.
|
||||
</p>
|
||||
<a name="fusion.sequences.adapted.mpl_sequence.header"></a><h5>
|
||||
<a name="id500920"></a>
|
||||
<a name="id1000993"></a>
|
||||
<a href="mpl_sequence.html#fusion.sequences.adapted.mpl_sequence.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.adapted.mpl_sequence.model_of"></a><h5>
|
||||
<a name="id501023"></a>
|
||||
<a name="id1001084"></a>
|
||||
<a href="mpl_sequence.html#fusion.sequences.adapted.mpl_sequence.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
@@ -62,21 +62,21 @@
|
||||
</li>
|
||||
</ul></div>
|
||||
<a name="fusion.sequences.adapted.mpl_sequence.example"></a><h5>
|
||||
<a name="id501116"></a>
|
||||
<a name="id1001167"></a>
|
||||
<a href="mpl_sequence.html#fusion.sequences.adapted.mpl_sequence.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">mpl</span><span class="special">::</span><span class="identifier">vector_c</span><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="number">123</span><span class="special">,</span> <span class="number">456</span><span class="special">></span> <span class="identifier">vec_c</span><span class="special">;</span>
|
||||
<span class="identifier">fusion</span><span class="special">::</span><span class="identifier">vector2</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="identifier">v</span><span class="special">(</span><span class="identifier">vec_c</span><span class="special">);</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="number">0</span><span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="number">1</span><span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a><span class="special"><</span><span class="number">0</span><span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a><span class="special"><</span><span class="number">1</span><span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
|
||||
<span class="identifier">v</span> <span class="special">=</span> <span class="identifier">mpl</span><span class="special">::</span><span class="identifier">vector_c</span><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="number">456</span><span class="special">,</span> <span class="number">789</span><span class="special">>();</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="number">0</span><span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="number">1</span><span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a><span class="special"><</span><span class="number">0</span><span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a><span class="special"><</span><span class="number">1</span><span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.adapted.mpl_sequence.see_also"></a><h5>
|
||||
<a name="id501702"></a>
|
||||
<a name="id1001684"></a>
|
||||
<a href="mpl_sequence.html#fusion.sequences.adapted.mpl_sequence.see_also">See also</a>
|
||||
</h5>
|
||||
<p>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>std::pair</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../adapted.html" title="Adapted">
|
||||
<link rel="prev" href="../adapted.html" title="Adapted">
|
||||
@@ -26,44 +26,44 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.adapted.std__pair"></a><a href="std__pair.html" title="std::pair">std::pair</a></h4></div></div></div>
|
||||
<p>
|
||||
This module provides adapters for <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt>.
|
||||
Including the module header makes <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt>
|
||||
This module provides adapters for <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code>.
|
||||
Including the module header makes <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code>
|
||||
a fully conforming <a href="../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.adapted.std__pair.header"></a><h5>
|
||||
<a name="id500288"></a>
|
||||
<a name="id1000437"></a>
|
||||
<a href="std__pair.html#fusion.sequences.adapted.std__pair.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">std_pair</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.adapted.std__pair.model_of"></a><h5>
|
||||
<a name="id500392"></a>
|
||||
<a name="id1000528"></a>
|
||||
<a href="std__pair.html#fusion.sequences.adapted.std__pair.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a></li></ul></div>
|
||||
<a name="fusion.sequences.adapted.std__pair.example"></a><h5>
|
||||
<a name="id500434"></a>
|
||||
<a name="id1000566"></a>
|
||||
<a href="std__pair.html#fusion.sequences.adapted.std__pair.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span><span class="special"><</span><span class="keyword">int</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="identifier">p</span><span class="special">(</span><span class="number">123</span><span class="special">,</span> <span class="string">"Hola!!!"</span><span class="special">);</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="number">0</span><span class="special">>(</span><span class="identifier">p</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="number">1</span><span class="special">>(</span><span class="identifier">p</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a><span class="special"><</span><span class="number">0</span><span class="special">>(</span><span class="identifier">p</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a><span class="special"><</span><span class="number">1</span><span class="special">>(</span><span class="identifier">p</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">p</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.adapted.std__pair.see_also"></a><h5>
|
||||
<a name="id500786"></a>
|
||||
<a name="id1000876"></a>
|
||||
<a href="std__pair.html#fusion.sequences.adapted.std__pair.see_also">See also</a>
|
||||
</h5>
|
||||
<p>
|
||||
<a href="http://www.sgi.com/tech/stl/pair.html" target="_top"><tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt></a>,
|
||||
<a href="../../tuples/pairs.html" title="Pairs"><tt class="computeroutput"><span class="identifier">TR1</span>
|
||||
<span class="keyword">and</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></tt></a>
|
||||
<a href="http://www.sgi.com/tech/stl/pair.html" target="_top"><code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code></a>,
|
||||
<a href="../../tuples/pairs.html" title="Pairs"><code class="computeroutput"><span class="identifier">TR1</span>
|
||||
<span class="keyword">and</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">pair</span></code></a>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Concepts</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../sequences.html" title="Sequences">
|
||||
<link rel="prev" href="../sequences.html" title="Sequences">
|
||||
@@ -30,7 +30,7 @@
|
||||
Fusion Sequences are organized into a hierarchy of concepts.
|
||||
</p>
|
||||
<a name="fusion.sequences.concepts.traversal"></a><h4>
|
||||
<a name="id476633"></a>
|
||||
<a name="id962088"></a>
|
||||
<a href="concepts.html#fusion.sequences.concepts.traversal">Traversal</a>
|
||||
</h4>
|
||||
<p>
|
||||
@@ -48,7 +48,7 @@
|
||||
Sequence</a>. These concepts pertain to sequence traversal.
|
||||
</p>
|
||||
<a name="fusion.sequences.concepts.associativity"></a><h4>
|
||||
<a name="id476721"></a>
|
||||
<a name="id962166"></a>
|
||||
<a href="concepts.html#fusion.sequences.concepts.associativity">Associativity</a>
|
||||
</h4>
|
||||
<p>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<title>Associative
|
||||
Sequence</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../concepts.html" title="Concepts">
|
||||
<link rel="prev" href="random_access_sequence.html" title="Random
|
||||
@@ -30,7 +30,7 @@
|
||||
Sequence">Associative
|
||||
Sequence</a></h4></div></div></div>
|
||||
<a name="fusion.sequences.concepts.associative_sequence.description"></a><h5>
|
||||
<a name="id481194"></a>
|
||||
<a name="id966120"></a>
|
||||
<a href="associative_sequence.html#fusion.sequences.concepts.associative_sequence.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
@@ -48,30 +48,30 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dd>
|
||||
An Associative Sequence
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">S</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">S</span></code></span></dt>
|
||||
<dd>
|
||||
An Associative Sequence type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">K</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">K</span></code></span></dt>
|
||||
<dd>
|
||||
An arbitrary <span class="emphasis"><em>key</em></span> type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">o</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">o</span></code></span></dt>
|
||||
<dd>
|
||||
An arbitrary object
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">e</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">e</span></code></span></dt>
|
||||
<dd>
|
||||
A Sequence element
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.concepts.associative_sequence.valid_expressions"></a><h5>
|
||||
<a name="id481358"></a>
|
||||
<a name="id966269"></a>
|
||||
<a href="associative_sequence.html#fusion.sequences.concepts.associative_sequence.valid_expressions">Valid
|
||||
Expressions</a>
|
||||
</h5>
|
||||
@@ -94,34 +94,34 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">has_key</span></code></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>MPL
|
||||
Boolean Constant. Convertible to bool.</td>
|
||||
<td> </td>
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td> </td>
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span> <span class="special">=</span> <span class="identifier">o</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span> <span class="special">=</span> <span class="identifier">o</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>
|
||||
<tt class="computeroutput"><span class="identifier">s</span></tt>
|
||||
is mutable and <tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span> <span class="identifier">o</span></tt>,
|
||||
where <tt class="computeroutput"><span class="identifier">e</span></tt> is the first
|
||||
<code class="computeroutput"><span class="identifier">s</span></code>
|
||||
is mutable and <code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span> <span class="identifier">o</span></code>,
|
||||
where <code class="computeroutput"><span class="identifier">e</span></code> is the first
|
||||
element in the sequence, is a valid expression.</td>
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.concepts.associative_sequence.result_type_expressions"></a><h5>
|
||||
<a name="id481654"></a>
|
||||
<a name="id966532"></a>
|
||||
<a href="associative_sequence.html#fusion.sequences.concepts.associative_sequence.result_type_expressions">Result
|
||||
Type Expressions</a>
|
||||
</h5>
|
||||
@@ -136,32 +136,32 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/metafunctions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">K</span><span class="special">>::</span><span class="identifier">type</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/metafunctions/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">K</span><span class="special">>::</span><span class="identifier">type</span></code></td>
|
||||
<td>Amortized constant
|
||||
time</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/metafunctions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">K</span><span class="special">>::</span><span class="identifier">type</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/metafunctions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">K</span><span class="special">>::</span><span class="identifier">type</span></code></td>
|
||||
<td>Amortized constant
|
||||
time</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/metafunctions/value_at_key.html" title="value_at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_key</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">K</span><span class="special">>::</span><span class="identifier">type</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/metafunctions/value_at_key.html" title="value_at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_key</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">K</span><span class="special">>::</span><span class="identifier">type</span></code></td>
|
||||
<td>Amortized constant
|
||||
time</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<p class="blurb">
|
||||
<span class="inlinemediaobject"><img src="../../../images/note.png" alt="note"></span> <tt class="computeroutput"><a href="../intrinsics/metafunctions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">K</span><span class="special">></span></tt> returns the actual type returned by
|
||||
<tt class="computeroutput"><a href="../intrinsics/functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt>. In
|
||||
<span class="inlinemediaobject"><img src="../../../images/note.png" alt="note"></span> <code class="computeroutput"><a href="../intrinsics/metafunctions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">K</span><span class="special">></span></code> returns the actual type returned by
|
||||
<code class="computeroutput"><a href="../intrinsics/functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code>. In
|
||||
most cases, this is a reference. Hence, there is no way to know the exact
|
||||
element type using <tt class="computeroutput"><a href="../intrinsics/metafunctions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">K</span><span class="special">></span></tt>.The element at <tt class="computeroutput"><span class="identifier">K</span></tt>
|
||||
element type using <code class="computeroutput"><a href="../intrinsics/metafunctions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">K</span><span class="special">></span></code>.The element at <code class="computeroutput"><span class="identifier">K</span></code>
|
||||
may actually be a reference to begin with. For this purpose, you can use
|
||||
<tt class="computeroutput"><a href="../intrinsics/metafunctions/value_at_key.html" title="value_at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_key</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></tt>.
|
||||
<code class="computeroutput"><a href="../intrinsics/metafunctions/value_at_key.html" title="value_at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_key</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.concepts.associative_sequence.expression_semantics"></a><h5>
|
||||
<a name="id482178"></a>
|
||||
<a name="id966995"></a>
|
||||
<a href="associative_sequence.html#fusion.sequences.concepts.associative_sequence.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -176,30 +176,30 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">has_key</span></code></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>A
|
||||
boolean Integral Constant <tt class="computeroutput"><span class="identifier">c</span></tt>
|
||||
such that <tt class="computeroutput"><span class="identifier">c</span><span class="special">::</span><span class="identifier">value</span> <span class="special">==</span>
|
||||
<span class="keyword">true</span></tt> if and only if there
|
||||
is one or more elements with the key <tt class="computeroutput"><span class="identifier">k</span></tt>
|
||||
in <tt class="computeroutput"><span class="identifier">s</span></tt>; see <a href="../intrinsics/functions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">has_key</span></tt></a>.</td>
|
||||
boolean Integral Constant <code class="computeroutput"><span class="identifier">c</span></code>
|
||||
such that <code class="computeroutput"><span class="identifier">c</span><span class="special">::</span><span class="identifier">value</span> <span class="special">==</span>
|
||||
<span class="keyword">true</span></code> if and only if there
|
||||
is one or more elements with the key <code class="computeroutput"><span class="identifier">k</span></code>
|
||||
in <code class="computeroutput"><span class="identifier">s</span></code>; see <a href="../intrinsics/functions/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">has_key</span></code></a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">K</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>The
|
||||
element associated with the key <tt class="computeroutput"><span class="identifier">K</span></tt>
|
||||
in the sequence <tt class="computeroutput"><span class="identifier">s</span></tt>;
|
||||
see <a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a>.</td>
|
||||
element associated with the key <code class="computeroutput"><span class="identifier">K</span></code>
|
||||
in the sequence <code class="computeroutput"><span class="identifier">s</span></code>;
|
||||
see <a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.concepts.associative_sequence.models"></a><h5>
|
||||
<a name="id482457"></a>
|
||||
<a name="id967240"></a>
|
||||
<a href="associative_sequence.html#fusion.sequences.concepts.associative_sequence.models">Models</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li><a href="../containers/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a></li>
|
||||
<li><a href="../containers/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a></li>
|
||||
<li><a href="../containers/set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a></li>
|
||||
<li><a href="../containers/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a></li>
|
||||
</ul></div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<title>Bidirectional
|
||||
Sequence</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../concepts.html" title="Concepts">
|
||||
<link rel="prev" href="forward_sequence.html" title="Forward
|
||||
@@ -31,7 +31,7 @@
|
||||
Sequence">Bidirectional
|
||||
Sequence</a></h4></div></div></div>
|
||||
<a name="fusion.sequences.concepts.bidirectional_sequence.description"></a><h5>
|
||||
<a name="id478694"></a>
|
||||
<a name="id963907"></a>
|
||||
<a href="bidirectional_sequence.html#fusion.sequences.concepts.bidirectional_sequence.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
@@ -42,7 +42,7 @@
|
||||
Iterator</a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.concepts.bidirectional_sequence.refinement_of"></a><h5>
|
||||
<a name="id478744"></a>
|
||||
<a name="id963952"></a>
|
||||
<a href="bidirectional_sequence.html#fusion.sequences.concepts.bidirectional_sequence.refinement_of">Refinement
|
||||
of</a>
|
||||
</h5>
|
||||
@@ -53,26 +53,26 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dd>
|
||||
A Forward Sequence
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">S</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">S</span></code></span></dt>
|
||||
<dd>
|
||||
A Forward Sequence type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">o</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">o</span></code></span></dt>
|
||||
<dd>
|
||||
An arbitrary object
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">e</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">e</span></code></span></dt>
|
||||
<dd>
|
||||
A Sequence element
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.concepts.bidirectional_sequence.valid_expressions"></a><h5>
|
||||
<a name="id478865"></a>
|
||||
<a name="id964059"></a>
|
||||
<a href="bidirectional_sequence.html#fusion.sequences.concepts.bidirectional_sequence.valid_expressions">Valid
|
||||
Expressions</a>
|
||||
</h5>
|
||||
@@ -97,7 +97,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td><a href="../../iterators/concepts/bidirectional_iterator.html" title="Bidirectional
|
||||
Iterator">Bidirectional
|
||||
Iterator</a></td>
|
||||
@@ -105,7 +105,7 @@
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td><a href="../../iterators/concepts/bidirectional_iterator.html" title="Bidirectional
|
||||
Iterator">Bidirectional
|
||||
Iterator</a></td>
|
||||
@@ -113,27 +113,27 @@
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/back.html" title="back"><tt class="computeroutput"><span class="identifier">back</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/back.html" title="back"><code class="computeroutput"><span class="identifier">back</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td> </td>
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/back.html" title="back"><tt class="computeroutput"><span class="identifier">back</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span> <span class="special">=</span> <span class="identifier">o</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/back.html" title="back"><code class="computeroutput"><span class="identifier">back</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span> <span class="special">=</span> <span class="identifier">o</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>
|
||||
<tt class="computeroutput"><span class="identifier">s</span></tt>
|
||||
is mutable and <tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span> <span class="identifier">o</span></tt>,
|
||||
where <tt class="computeroutput"><span class="identifier">e</span></tt> is the first
|
||||
<code class="computeroutput"><span class="identifier">s</span></code>
|
||||
is mutable and <code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span> <span class="identifier">o</span></code>,
|
||||
where <code class="computeroutput"><span class="identifier">e</span></code> is the first
|
||||
element in the sequence, is a valid expression.</td>
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.concepts.bidirectional_sequence.result_type_expressions"></a><h5>
|
||||
<a name="id479200"></a>
|
||||
<a name="id964355"></a>
|
||||
<a href="bidirectional_sequence.html#fusion.sequences.concepts.bidirectional_sequence.result_type_expressions">Result
|
||||
Type Expressions</a>
|
||||
</h5>
|
||||
@@ -148,24 +148,24 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../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"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../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"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code></td>
|
||||
<td>Amortized constant
|
||||
time</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../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"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../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"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code></td>
|
||||
<td>Amortized constant
|
||||
time</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/metafunctions/back.html" title="back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/metafunctions/back.html" title="back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code></td>
|
||||
<td>Amortized constant
|
||||
time</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.concepts.bidirectional_sequence.expression_semantics"></a><h5>
|
||||
<a name="id479435"></a>
|
||||
<a name="id964562"></a>
|
||||
<a href="bidirectional_sequence.html#fusion.sequences.concepts.bidirectional_sequence.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -185,28 +185,28 @@
|
||||
<th>Semantics</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/back.html" title="back"><tt class="computeroutput"><span class="identifier">back</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/back.html" title="back"><code class="computeroutput"><span class="identifier">back</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>The
|
||||
last element in the sequence; see <a href="../intrinsics/functions/back.html" title="back"><tt class="computeroutput"><span class="identifier">back</span></tt></a>.</td>
|
||||
last element in the sequence; see <a href="../intrinsics/functions/back.html" title="back"><code class="computeroutput"><span class="identifier">back</span></code></a>.</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.concepts.bidirectional_sequence.models"></a><h5>
|
||||
<a name="id479565"></a>
|
||||
<a name="id964676"></a>
|
||||
<a href="bidirectional_sequence.html#fusion.sequences.concepts.bidirectional_sequence.models">Models</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li><a href="../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></li>
|
||||
<li><a href="../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></li>
|
||||
<li><a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a></li>
|
||||
<li><a href="../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></li>
|
||||
<li><a href="../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></li>
|
||||
<li><a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a></li>
|
||||
<li>
|
||||
<a href="../views/iterator_range.html" title="iterator_range"><tt class="computeroutput"><span class="identifier">iterator_range</span></tt></a>
|
||||
<a href="../views/iterator_range.html" title="iterator_range"><code class="computeroutput"><span class="identifier">iterator_range</span></code></a>
|
||||
(where adapted sequence is a Bidirectional Sequence)
|
||||
</li>
|
||||
<li>
|
||||
<a href="../views/transform_view.html" title="transform_view"><tt class="computeroutput"><span class="identifier">transform_view</span></tt></a>
|
||||
<a href="../views/transform_view.html" title="transform_view"><code class="computeroutput"><span class="identifier">transform_view</span></code></a>
|
||||
(where adapted sequence is a Bidirectional Sequence)
|
||||
</li>
|
||||
<li><a href="../views/reverse_view.html" title="reverse_view"><tt class="computeroutput"><span class="identifier">reverse_view</span></tt></a></li>
|
||||
<li><a href="../views/reverse_view.html" title="reverse_view"><code class="computeroutput"><span class="identifier">reverse_view</span></code></a></li>
|
||||
</ul></div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<title>Forward
|
||||
Sequence</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../concepts.html" title="Concepts">
|
||||
<link rel="prev" href="../concepts.html" title="Concepts">
|
||||
@@ -30,7 +30,7 @@
|
||||
Sequence">Forward
|
||||
Sequence</a></h4></div></div></div>
|
||||
<a name="fusion.sequences.concepts.forward_sequence.description"></a><h5>
|
||||
<a name="id476783"></a>
|
||||
<a name="id962220"></a>
|
||||
<a href="forward_sequence.html#fusion.sequences.concepts.forward_sequence.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
@@ -43,26 +43,26 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dd>
|
||||
A Forward Sequence
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">S</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">S</span></code></span></dt>
|
||||
<dd>
|
||||
A Forward Sequence type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">o</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">o</span></code></span></dt>
|
||||
<dd>
|
||||
An arbitrary object
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">e</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">e</span></code></span></dt>
|
||||
<dd>
|
||||
A Sequence element
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.concepts.forward_sequence.valid_expressions"></a><h5>
|
||||
<a name="id476901"></a>
|
||||
<a name="id962324"></a>
|
||||
<a href="forward_sequence.html#fusion.sequences.concepts.forward_sequence.valid_expressions">Valid
|
||||
Expressions</a>
|
||||
</h5>
|
||||
@@ -85,55 +85,55 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td><a href="../../iterators/concepts/forward_iterator.html" title="Forward
|
||||
Iterator">Forward Iterator</a></td>
|
||||
<td> </td>
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td><a href="../../iterators/concepts/forward_iterator.html" title="Forward
|
||||
Iterator">Forward Iterator</a></td>
|
||||
<td> </td>
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/size.html" title="size"><tt class="computeroutput"><span class="identifier">size</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/size.html" title="size"><code class="computeroutput"><span class="identifier">size</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>MPL
|
||||
Integral Constant. Convertible to int.</td>
|
||||
<td> </td>
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/empty.html" title="empty"><tt class="computeroutput"><span class="identifier">empty</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/empty.html" title="empty"><code class="computeroutput"><span class="identifier">empty</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>MPL
|
||||
Boolean Constant. Convertible to bool.</td>
|
||||
<td> </td>
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/front.html" title="front"><tt class="computeroutput"><span class="identifier">front</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/front.html" title="front"><code class="computeroutput"><span class="identifier">front</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td> </td>
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/front.html" title="front"><tt class="computeroutput"><span class="identifier">front</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span> <span class="special">=</span> <span class="identifier">o</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/front.html" title="front"><code class="computeroutput"><span class="identifier">front</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span> <span class="special">=</span> <span class="identifier">o</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>
|
||||
<tt class="computeroutput"><span class="identifier">s</span></tt>
|
||||
is mutable and <tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span> <span class="identifier">o</span></tt>,
|
||||
where <tt class="computeroutput"><span class="identifier">e</span></tt> is the first
|
||||
<code class="computeroutput"><span class="identifier">s</span></code>
|
||||
is mutable and <code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span> <span class="identifier">o</span></code>,
|
||||
where <code class="computeroutput"><span class="identifier">e</span></code> is the first
|
||||
element in the sequence, is a valid expression.</td>
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.concepts.forward_sequence.result_type_expressions"></a><h5>
|
||||
<a name="id477323"></a>
|
||||
<a name="id962697"></a>
|
||||
<a href="forward_sequence.html#fusion.sequences.concepts.forward_sequence.result_type_expressions">Result
|
||||
Type Expressions</a>
|
||||
</h5>
|
||||
@@ -148,32 +148,32 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../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"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../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"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code></td>
|
||||
<td>Amortized constant
|
||||
time</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../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"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../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"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code></td>
|
||||
<td>Amortized constant
|
||||
time</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../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"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../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"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code></td>
|
||||
<td>Unspecified</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/metafunctions/empty.html" title="empty"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/metafunctions/empty.html" title="empty"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code></td>
|
||||
<td>Constant time</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/metafunctions/front.html" title="front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/metafunctions/front.html" title="front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code></td>
|
||||
<td>Amortized constant
|
||||
time</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.concepts.forward_sequence.expression_semantics"></a><h5>
|
||||
<a name="id477675"></a>
|
||||
<a name="id963006"></a>
|
||||
<a href="forward_sequence.html#fusion.sequences.concepts.forward_sequence.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -188,37 +188,37 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>An
|
||||
iterator to the first element of the sequence; see <a href="../intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a>.</td>
|
||||
iterator to the first element of the sequence; see <a href="../intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>A
|
||||
past-the-end iterator to the sequence; see <a href="../intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a>.</td>
|
||||
past-the-end iterator to the sequence; see <a href="../intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/size.html" title="size"><tt class="computeroutput"><span class="identifier">size</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/size.html" title="size"><code class="computeroutput"><span class="identifier">size</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>The
|
||||
size of the sequence; see <a href="../intrinsics/functions/size.html" title="size"><tt class="computeroutput"><span class="identifier">size</span></tt></a>.</td>
|
||||
size of the sequence; see <a href="../intrinsics/functions/size.html" title="size"><code class="computeroutput"><span class="identifier">size</span></code></a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/empty.html" title="empty"><tt class="computeroutput"><span class="identifier">empty</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/empty.html" title="empty"><code class="computeroutput"><span class="identifier">empty</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>A
|
||||
boolean Integral Constant <tt class="computeroutput"><span class="identifier">c</span></tt>
|
||||
such that <tt class="computeroutput"><span class="identifier">c</span><span class="special">::</span><span class="identifier">value</span> <span class="special">==</span>
|
||||
<span class="keyword">true</span></tt> if and only if the sequence
|
||||
is empty; see <a href="../intrinsics/functions/empty.html" title="empty"><tt class="computeroutput"><span class="identifier">empty</span></tt></a>.</td>
|
||||
boolean Integral Constant <code class="computeroutput"><span class="identifier">c</span></code>
|
||||
such that <code class="computeroutput"><span class="identifier">c</span><span class="special">::</span><span class="identifier">value</span> <span class="special">==</span>
|
||||
<span class="keyword">true</span></code> if and only if the sequence
|
||||
is empty; see <a href="../intrinsics/functions/empty.html" title="empty"><code class="computeroutput"><span class="identifier">empty</span></code></a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/front.html" title="front"><tt class="computeroutput"><span class="identifier">front</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/front.html" title="front"><code class="computeroutput"><span class="identifier">front</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>The
|
||||
first element in the sequence; see <a href="../intrinsics/functions/front.html" title="front"><tt class="computeroutput"><span class="identifier">front</span></tt></a>.</td>
|
||||
first element in the sequence; see <a href="../intrinsics/functions/front.html" title="front"><code class="computeroutput"><span class="identifier">front</span></code></a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.concepts.forward_sequence.invariants"></a><h5>
|
||||
<a name="id478066"></a>
|
||||
<a name="id963352"></a>
|
||||
<a href="forward_sequence.html#fusion.sequences.concepts.forward_sequence.invariants">Invariants</a>
|
||||
</h5>
|
||||
<p>
|
||||
@@ -226,41 +226,41 @@
|
||||
</p>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li>
|
||||
<tt class="computeroutput"><span class="special">[</span><a href="../intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">),</span> <a href="../intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">))</span></tt> is always a valid range.
|
||||
<code class="computeroutput"><span class="special">[</span><a href="../intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">),</span> <a href="../intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">))</span></code> is always a valid range.
|
||||
</li>
|
||||
<li>
|
||||
An <a href="../../algorithms.html" title="Algorithms">Algorithm</a> that iterates through
|
||||
the range <tt class="computeroutput"><span class="special">[</span><a href="../intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">),</span> <a href="../intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">))</span></tt> will pass through every element of
|
||||
<tt class="computeroutput"><span class="identifier">s</span></tt> exactly once.
|
||||
the range <code class="computeroutput"><span class="special">[</span><a href="../intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">),</span> <a href="../intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">))</span></code> will pass through every element of
|
||||
<code class="computeroutput"><span class="identifier">s</span></code> exactly once.
|
||||
</li>
|
||||
<li>
|
||||
<tt class="computeroutput"><a href="../intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
is identical to <tt class="computeroutput"><a href="../intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">))</span></tt>
|
||||
if and only if <tt class="computeroutput"><span class="identifier">s</span></tt> is empty.
|
||||
<code class="computeroutput"><a href="../intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
is identical to <code class="computeroutput"><a href="../intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">))</span></code>
|
||||
if and only if <code class="computeroutput"><span class="identifier">s</span></code> is empty.
|
||||
</li>
|
||||
<li>
|
||||
Two different iterations through <tt class="computeroutput"><span class="identifier">s</span></tt>
|
||||
Two different iterations through <code class="computeroutput"><span class="identifier">s</span></code>
|
||||
will access its elements in the same order.
|
||||
</li>
|
||||
</ul></div>
|
||||
<a name="fusion.sequences.concepts.forward_sequence.models"></a><h5>
|
||||
<a name="id478370"></a>
|
||||
<a name="id963620"></a>
|
||||
<a href="forward_sequence.html#fusion.sequences.concepts.forward_sequence.models">Models</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li><a href="../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></li>
|
||||
<li><a href="../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></li>
|
||||
<li><a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a></li>
|
||||
<li><a href="../containers/cons.html" title="cons"><tt class="computeroutput"><span class="identifier">cons</span></tt></a></li>
|
||||
<li><a href="../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a></li>
|
||||
<li><a href="../containers/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a></li>
|
||||
<li><a href="../containers/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a></li>
|
||||
<li><a href="../views/single_view.html" title="single_view"><tt class="computeroutput"><span class="identifier">single_view</span></tt></a></li>
|
||||
<li><a href="../views/filter_view.html" title="filter_view"><tt class="computeroutput"><span class="identifier">filter_view</span></tt></a></li>
|
||||
<li><a href="../views/iterator_range.html" title="iterator_range"><tt class="computeroutput"><span class="identifier">iterator_range</span></tt></a></li>
|
||||
<li><a href="../views/joint_view.html" title="joint_view"><tt class="computeroutput"><span class="identifier">joint_view</span></tt></a></li>
|
||||
<li><a href="../views/transform_view.html" title="transform_view"><tt class="computeroutput"><span class="identifier">transform_view</span></tt></a></li>
|
||||
<li><a href="../views/reverse_view.html" title="reverse_view"><tt class="computeroutput"><span class="identifier">reverse_view</span></tt></a></li>
|
||||
<li><a href="../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></li>
|
||||
<li><a href="../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></li>
|
||||
<li><a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a></li>
|
||||
<li><a href="../containers/cons.html" title="cons"><code class="computeroutput"><span class="identifier">cons</span></code></a></li>
|
||||
<li><a href="../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a></li>
|
||||
<li><a href="../containers/set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a></li>
|
||||
<li><a href="../containers/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a></li>
|
||||
<li><a href="../views/single_view.html" title="single_view"><code class="computeroutput"><span class="identifier">single_view</span></code></a></li>
|
||||
<li><a href="../views/filter_view.html" title="filter_view"><code class="computeroutput"><span class="identifier">filter_view</span></code></a></li>
|
||||
<li><a href="../views/iterator_range.html" title="iterator_range"><code class="computeroutput"><span class="identifier">iterator_range</span></code></a></li>
|
||||
<li><a href="../views/joint_view.html" title="joint_view"><code class="computeroutput"><span class="identifier">joint_view</span></code></a></li>
|
||||
<li><a href="../views/transform_view.html" title="transform_view"><code class="computeroutput"><span class="identifier">transform_view</span></code></a></li>
|
||||
<li><a href="../views/reverse_view.html" title="reverse_view"><code class="computeroutput"><span class="identifier">reverse_view</span></code></a></li>
|
||||
</ul></div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<title>Random
|
||||
Access Sequence</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../concepts.html" title="Concepts">
|
||||
<link rel="prev" href="bidirectional_sequence.html" title="Bidirectional
|
||||
@@ -31,7 +31,7 @@
|
||||
Access Sequence">Random
|
||||
Access Sequence</a></h4></div></div></div>
|
||||
<a name="fusion.sequences.concepts.random_access_sequence.description"></a><h5>
|
||||
<a name="id479754"></a>
|
||||
<a name="id964845"></a>
|
||||
<a href="random_access_sequence.html#fusion.sequences.concepts.random_access_sequence.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
@@ -43,7 +43,7 @@
|
||||
sequence elements.
|
||||
</p>
|
||||
<a name="fusion.sequences.concepts.random_access_sequence.refinement_of"></a><h5>
|
||||
<a name="id479806"></a>
|
||||
<a name="id964892"></a>
|
||||
<a href="random_access_sequence.html#fusion.sequences.concepts.random_access_sequence.refinement_of">Refinement
|
||||
of</a>
|
||||
</h5>
|
||||
@@ -55,30 +55,30 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dd>
|
||||
A Random Access Sequence
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">S</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">S</span></code></span></dt>
|
||||
<dd>
|
||||
A Random Access Sequence type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">N</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">N</span></code></span></dt>
|
||||
<dd>
|
||||
An integral constant
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">o</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">o</span></code></span></dt>
|
||||
<dd>
|
||||
An arbitrary object
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">e</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">e</span></code></span></dt>
|
||||
<dd>
|
||||
A Sequence element
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.concepts.random_access_sequence.valid_expressions"></a><h5>
|
||||
<a name="id479942"></a>
|
||||
<a name="id965016"></a>
|
||||
<a href="random_access_sequence.html#fusion.sequences.concepts.random_access_sequence.valid_expressions">Valid
|
||||
Expressions</a>
|
||||
</h5>
|
||||
@@ -103,7 +103,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td><a href="../../iterators/concepts/random_access_iterator.html" title="Random
|
||||
Access Iterator">Random
|
||||
Access Iterator</a></td>
|
||||
@@ -111,7 +111,7 @@
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td><a href="../../iterators/concepts/random_access_iterator.html" title="Random
|
||||
Access Iterator">Random
|
||||
Access Iterator</a></td>
|
||||
@@ -119,27 +119,27 @@
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td> </td>
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span> <span class="special">=</span> <span class="identifier">o</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span> <span class="special">=</span> <span class="identifier">o</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>
|
||||
<tt class="computeroutput"><span class="identifier">s</span></tt>
|
||||
is mutable and <tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span> <span class="identifier">o</span></tt>,
|
||||
where <tt class="computeroutput"><span class="identifier">e</span></tt> is the first
|
||||
<code class="computeroutput"><span class="identifier">s</span></code>
|
||||
is mutable and <code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span> <span class="identifier">o</span></code>,
|
||||
where <code class="computeroutput"><span class="identifier">e</span></code> is the first
|
||||
element in the sequence, is a valid expression.</td>
|
||||
<td>Constant</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.concepts.random_access_sequence.result_type_expressions"></a><h5>
|
||||
<a name="id480298"></a>
|
||||
<a name="id965330"></a>
|
||||
<a href="random_access_sequence.html#fusion.sequences.concepts.random_access_sequence.result_type_expressions">Result
|
||||
Type Expressions</a>
|
||||
</h5>
|
||||
@@ -154,37 +154,37 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../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"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../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"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code></td>
|
||||
<td>Amortized constant
|
||||
time</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../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"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../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"><</span><span class="identifier">S</span><span class="special">>::</span><span class="identifier">type</span></code></td>
|
||||
<td>Amortized constant
|
||||
time</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/metafunctions/at.html" title="at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/metafunctions/at.html" title="at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span></code></td>
|
||||
<td>Amortized constant
|
||||
time</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/metafunctions/value_at.html" title="value_at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/metafunctions/value_at.html" title="value_at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span></code></td>
|
||||
<td>Amortized constant
|
||||
time</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<p class="blurb">
|
||||
<span class="inlinemediaobject"><img src="../../../images/note.png" alt="note"></span> <tt class="computeroutput"><a href="../intrinsics/metafunctions/at.html" title="at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></tt> returns the actual type returned by
|
||||
<tt class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt>. In
|
||||
<span class="inlinemediaobject"><img src="../../../images/note.png" alt="note"></span> <code class="computeroutput"><a href="../intrinsics/metafunctions/at.html" title="at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></code> returns the actual type returned by
|
||||
<code class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code>. In
|
||||
most cases, this is a reference. Hence, there is no way to know the exact
|
||||
element type using <tt class="computeroutput"><a href="../intrinsics/metafunctions/at.html" title="at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></tt>.The element at <tt class="computeroutput"><span class="identifier">N</span></tt>
|
||||
element type using <code class="computeroutput"><a href="../intrinsics/metafunctions/at.html" title="at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></code>.The element at <code class="computeroutput"><span class="identifier">N</span></code>
|
||||
may actually be a reference to begin with. For this purpose, you can use
|
||||
<tt class="computeroutput"><a href="../intrinsics/metafunctions/value_at.html" title="value_at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></tt>.
|
||||
<code class="computeroutput"><a href="../intrinsics/metafunctions/value_at.html" title="value_at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="identifier">N</span><span class="special">></span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.concepts.random_access_sequence.expression_semantics"></a><h5>
|
||||
<a name="id480865"></a>
|
||||
<a name="id965829"></a>
|
||||
<a href="random_access_sequence.html#fusion.sequences.concepts.random_access_sequence.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -204,28 +204,28 @@
|
||||
<th>Semantics</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>The
|
||||
Nth element from the beginning of the sequence; see <a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a>.</td>
|
||||
Nth element from the beginning of the sequence; see <a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a>.</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.concepts.random_access_sequence.models"></a><h5>
|
||||
<a name="id481004"></a>
|
||||
<a name="id965952"></a>
|
||||
<a href="random_access_sequence.html#fusion.sequences.concepts.random_access_sequence.models">Models</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li><a href="../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></li>
|
||||
<li><a href="../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></li>
|
||||
<li><a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a></li>
|
||||
<li><a href="../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></li>
|
||||
<li><a href="../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></li>
|
||||
<li><a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a></li>
|
||||
<li>
|
||||
<a href="../views/iterator_range.html" title="iterator_range"><tt class="computeroutput"><span class="identifier">iterator_range</span></tt></a>
|
||||
<a href="../views/iterator_range.html" title="iterator_range"><code class="computeroutput"><span class="identifier">iterator_range</span></code></a>
|
||||
(where adapted sequence is a Random Access Sequence)
|
||||
</li>
|
||||
<li>
|
||||
<a href="../views/transform_view.html" title="transform_view"><tt class="computeroutput"><span class="identifier">transform_view</span></tt></a>
|
||||
<a href="../views/transform_view.html" title="transform_view"><code class="computeroutput"><span class="identifier">transform_view</span></code></a>
|
||||
(where adapted sequence is a Random Access Sequence)
|
||||
</li>
|
||||
<li><a href="../views/reverse_view.html" title="reverse_view"><tt class="computeroutput"><span class="identifier">reverse_view</span></tt></a></li>
|
||||
<li><a href="../views/reverse_view.html" title="reverse_view"><code class="computeroutput"><span class="identifier">reverse_view</span></code></a></li>
|
||||
</ul></div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Containers</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../sequences.html" title="Sequences">
|
||||
<link rel="prev" href="concepts/associative_sequence.html" title="Associative
|
||||
@@ -32,7 +32,7 @@
|
||||
These containers are more or less counterparts of those in <a href="http://en.wikipedia.org/wiki/Standard_Template_Library" target="_top">STL</a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.containers.header"></a><h4>
|
||||
<a name="id482569"></a>
|
||||
<a name="id967341"></a>
|
||||
<a href="containers.html#fusion.sequences.containers.header">Header</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>cons</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../containers.html" title="Containers">
|
||||
<link rel="prev" href="vector.html" title="vector">
|
||||
@@ -26,29 +26,29 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.containers.cons"></a><a href="cons.html" title="cons">cons</a></h4></div></div></div>
|
||||
<a name="fusion.sequences.containers.cons.description"></a><h5>
|
||||
<a name="id484912"></a>
|
||||
<a name="id969405"></a>
|
||||
<a href="cons.html#fusion.sequences.containers.cons.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
<tt class="computeroutput"><span class="identifier">cons</span></tt> is a simple <a href="../concepts/forward_sequence.html" title="Forward
|
||||
<code class="computeroutput"><span class="identifier">cons</span></code> is a simple <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward Sequence</a>.
|
||||
It is a lisp style recursive list structure where <tt class="computeroutput"><span class="identifier">car</span></tt>
|
||||
is the <span class="emphasis"><em>head</em></span> and <tt class="computeroutput"><span class="identifier">cdr</span></tt>
|
||||
is the <span class="emphasis"><em>tail</em></span>: usually another cons structure or <tt class="computeroutput"><span class="identifier">nil</span></tt>: the empty list. Fusion's <a href="list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a> is built on top of this more
|
||||
primitive data structure. It is more efficient than <a href="vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a> when the target sequence
|
||||
It is a lisp style recursive list structure where <code class="computeroutput"><span class="identifier">car</span></code>
|
||||
is the <span class="emphasis"><em>head</em></span> and <code class="computeroutput"><span class="identifier">cdr</span></code>
|
||||
is the <span class="emphasis"><em>tail</em></span>: usually another cons structure or <code class="computeroutput"><span class="identifier">nil</span></code>: the empty list. Fusion's <a href="list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a> is built on top of this more
|
||||
primitive data structure. It is more efficient than <a href="vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> when the target sequence
|
||||
is constructed piecemeal (a data at a time). The runtime cost of access
|
||||
to each element is peculiarly constant (see <a href="../../notes.html#fusion.notes.recursive_inlined_functions">Recursive
|
||||
Inlined Functions</a>).
|
||||
</p>
|
||||
<a name="fusion.sequences.containers.cons.header"></a><h5>
|
||||
<a name="id485048"></a>
|
||||
<a name="id969527"></a>
|
||||
<a href="cons.html#fusion.sequences.containers.cons.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">container</span><span class="special">/</span><span class="identifier">list</span><span class="special">/</span><span class="identifier">cons</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.containers.cons.synopsis"></a><h5>
|
||||
<a name="id485163"></a>
|
||||
<a name="id969627"></a>
|
||||
<a href="cons.html#fusion.sequences.containers.cons.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -56,7 +56,7 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">cons</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.containers.cons.template_parameters"></a><h5>
|
||||
<a name="id485271"></a>
|
||||
<a name="id969721"></a>
|
||||
<a href="cons.html#fusion.sequences.containers.cons.template_parameters">Template
|
||||
parameters</a>
|
||||
</h5>
|
||||
@@ -73,21 +73,21 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Car</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Car</span></code></td>
|
||||
<td>Head
|
||||
type</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Cdr</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Cdr</span></code></td>
|
||||
<td>Tail
|
||||
type</td>
|
||||
<td><tt class="computeroutput"><span class="identifier">nil</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">nil</span></code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.containers.cons.model_of"></a><h5>
|
||||
<a name="id485376"></a>
|
||||
<a name="id969814"></a>
|
||||
<a href="cons.html#fusion.sequences.containers.cons.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="../concepts/forward_sequence.html" title="Forward
|
||||
@@ -95,41 +95,41 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">nil</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">nil</span></code></span></dt>
|
||||
<dd>
|
||||
An empty <tt class="computeroutput"><span class="identifier">cons</span></tt>
|
||||
An empty <code class="computeroutput"><span class="identifier">cons</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">C</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">C</span></code></span></dt>
|
||||
<dd>
|
||||
A <tt class="computeroutput"><span class="identifier">cons</span></tt> type
|
||||
A <code class="computeroutput"><span class="identifier">cons</span></code> type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">l</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">l2</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">l</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">l2</span></code></span></dt>
|
||||
<dd>
|
||||
Instances of <tt class="computeroutput"><span class="identifier">cons</span></tt>
|
||||
Instances of <code class="computeroutput"><span class="identifier">cons</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">car</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">car</span></code></span></dt>
|
||||
<dd>
|
||||
An arbitrary data
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">cdr</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">cdr</span></code></span></dt>
|
||||
<dd>
|
||||
Another <tt class="computeroutput"><span class="identifier">cons</span></tt> list
|
||||
Another <code class="computeroutput"><span class="identifier">cons</span></code> list
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dd>
|
||||
A <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">N</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">N</span></code></span></dt>
|
||||
<dd>
|
||||
An Integral Constant
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.containers.cons.expression_semantics"></a><h5>
|
||||
<a name="id485608"></a>
|
||||
<a name="id970018"></a>
|
||||
<a href="cons.html#fusion.sequences.containers.cons.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -150,71 +150,71 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">nil</span><span class="special">()</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">nil</span><span class="special">()</span></code></td>
|
||||
<td>Creates
|
||||
an empty list.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">C</span><span class="special">()</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">C</span><span class="special">()</span></code></td>
|
||||
<td>Creates
|
||||
a cons with default constructed elements.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">C</span><span class="special">(</span><span class="identifier">car</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">C</span><span class="special">(</span><span class="identifier">car</span><span class="special">)</span></code></td>
|
||||
<td>Creates
|
||||
a cons with <tt class="computeroutput"><span class="identifier">car</span></tt> head
|
||||
a cons with <code class="computeroutput"><span class="identifier">car</span></code> head
|
||||
and default constructed tail.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">C</span><span class="special">(</span><span class="identifier">car</span><span class="special">,</span>
|
||||
<span class="identifier">cdr</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">C</span><span class="special">(</span><span class="identifier">car</span><span class="special">,</span>
|
||||
<span class="identifier">cdr</span><span class="special">)</span></code></td>
|
||||
<td>Creates
|
||||
a cons with <tt class="computeroutput"><span class="identifier">car</span></tt> head
|
||||
and <tt class="computeroutput"><span class="identifier">cdr</span></tt> tail.</td>
|
||||
a cons with <code class="computeroutput"><span class="identifier">car</span></code> head
|
||||
and <code class="computeroutput"><span class="identifier">cdr</span></code> tail.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">C</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">C</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>Copy
|
||||
constructs a cons from a <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>, <tt class="computeroutput"><span class="identifier">s</span></tt>.</td>
|
||||
Sequence</a>, <code class="computeroutput"><span class="identifier">s</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">l</span> <span class="special">=</span>
|
||||
<span class="identifier">s</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">l</span> <span class="special">=</span>
|
||||
<span class="identifier">s</span></code></td>
|
||||
<td>Assigns
|
||||
to a cons, <tt class="computeroutput"><span class="identifier">l</span></tt>, from
|
||||
to a cons, <code class="computeroutput"><span class="identifier">l</span></code>, from
|
||||
a <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>, <tt class="computeroutput"><span class="identifier">s</span></tt>.</td>
|
||||
Sequence</a>, <code class="computeroutput"><span class="identifier">s</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span></code></td>
|
||||
<td>The
|
||||
Nth element from the beginning of the sequence; see <a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a>.</td>
|
||||
Nth element from the beginning of the sequence; see <a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<p class="blurb">
|
||||
<span class="inlinemediaobject"><img src="../../../images/note.png" alt="note"></span> <tt class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span></tt> is
|
||||
<span class="inlinemediaobject"><img src="../../../images/note.png" alt="note"></span> <code class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span></code> is
|
||||
provided for convenience and compatibility with the original <a href="http://www.boost.org/libs/tuple/doc/tuple_users_guide.html" target="_top">Boost.Tuple</a>
|
||||
library, despite <tt class="computeroutput"><span class="identifier">cons</span></tt> being
|
||||
library, despite <code class="computeroutput"><span class="identifier">cons</span></code> being
|
||||
a <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward Sequence</a>
|
||||
only (<tt class="computeroutput"><span class="identifier">at</span></tt> is supposed to
|
||||
only (<code class="computeroutput"><span class="identifier">at</span></code> is supposed to
|
||||
be a <a href="../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a> requirement). The runtime complexity of <a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a> is constant (see <a href="../../notes.html#fusion.notes.recursive_inlined_functions">Recursive
|
||||
Access Sequence</a> requirement). The runtime complexity of <a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a> is constant (see <a href="../../notes.html#fusion.notes.recursive_inlined_functions">Recursive
|
||||
Inlined Functions</a>).
|
||||
</p>
|
||||
<a name="fusion.sequences.containers.cons.example"></a><h5>
|
||||
<a name="id486152"></a>
|
||||
<a name="id970499"></a>
|
||||
<a href="cons.html#fusion.sequences.containers.cons.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">cons</span><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">cons</span><span class="special"><</span><span class="keyword">float</span><span class="special">></span> <span class="special">></span> <span class="identifier">l</span><span class="special">(</span><span class="number">12</span><span class="special">,</span> <span class="identifier">cons</span><span class="special"><</span><span class="keyword">float</span><span class="special">>(</span><span class="number">5.5f</span><span class="special">));</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="number">0</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="number">1</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="number">0</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="number">1</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>list</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../containers.html" title="Containers">
|
||||
<link rel="prev" href="cons.html" title="cons">
|
||||
@@ -26,19 +26,19 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.containers.list"></a><a href="list.html" title="list">list</a></h4></div></div></div>
|
||||
<a name="fusion.sequences.containers.list.description"></a><h5>
|
||||
<a name="id486483"></a>
|
||||
<a name="id970791"></a>
|
||||
<a href="list.html#fusion.sequences.containers.list.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
<tt class="computeroutput"><span class="identifier">list</span></tt> is a <a href="../concepts/forward_sequence.html" title="Forward
|
||||
<code class="computeroutput"><span class="identifier">list</span></code> is a <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a> of heterogenous typed data built on top of <a href="cons.html" title="cons"><tt class="computeroutput"><span class="identifier">cons</span></tt></a>. It is more efficient than
|
||||
<a href="vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>
|
||||
Sequence</a> of heterogenous typed data built on top of <a href="cons.html" title="cons"><code class="computeroutput"><span class="identifier">cons</span></code></a>. It is more efficient than
|
||||
<a href="vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a>
|
||||
when the target sequence is constructed piecemeal (a data at a time). The
|
||||
runtime cost of access to each element is peculiarly constant (see <a href="../../notes.html#fusion.notes.recursive_inlined_functions">Recursive Inlined Functions</a>).
|
||||
</p>
|
||||
<a name="fusion.sequences.containers.list.header"></a><h5>
|
||||
<a name="id486576"></a>
|
||||
<a name="id970874"></a>
|
||||
<a href="list.html#fusion.sequences.containers.list.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -46,7 +46,7 @@
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">container</span><span class="special">/</span><span class="identifier">list</span><span class="special">/</span><span class="identifier">list_forward</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.containers.list.synopsis"></a><h5>
|
||||
<a name="id486764"></a>
|
||||
<a name="id971038"></a>
|
||||
<a href="list.html#fusion.sequences.containers.list.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -60,24 +60,24 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">list</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic class interface accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>.
|
||||
The variadic class interface accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>.
|
||||
Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">list</span><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span>
|
||||
</pre>
|
||||
<p>
|
||||
You may define the preprocessor constant <tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
|
||||
You may define the preprocessor constant <code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_LIST_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.containers.list.template_parameters"></a><h5>
|
||||
<a name="id487084"></a>
|
||||
<a name="id971321"></a>
|
||||
<a href="list.html#fusion.sequences.containers.list.template_parameters">Template
|
||||
parameters</a>
|
||||
</h5>
|
||||
@@ -94,14 +94,14 @@
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<tt class="computeroutput"><span class="identifier">T0</span></tt>...<tt class="computeroutput"><span class="identifier">TN</span></tt>
|
||||
<code class="computeroutput"><span class="identifier">T0</span></code>...<code class="computeroutput"><span class="identifier">TN</span></code>
|
||||
</td>
|
||||
<td>Element types</td>
|
||||
<td><span class="emphasis"><em>unspecified-type</em></span></td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.containers.list.model_of"></a><h5>
|
||||
<a name="id487173"></a>
|
||||
<a name="id971400"></a>
|
||||
<a href="list.html#fusion.sequences.containers.list.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="../concepts/forward_sequence.html" title="Forward
|
||||
@@ -109,32 +109,32 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">L</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">L</span></code></span></dt>
|
||||
<dd>
|
||||
A <tt class="computeroutput"><span class="identifier">list</span></tt> type
|
||||
A <code class="computeroutput"><span class="identifier">list</span></code> type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">l</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">l</span></code></span></dt>
|
||||
<dd>
|
||||
An instance of <tt class="computeroutput"><span class="identifier">list</span></tt>
|
||||
An instance of <code class="computeroutput"><span class="identifier">list</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">e0</span></tt>...<tt class="computeroutput"><span class="identifier">en</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">e0</span></code>...<code class="computeroutput"><span class="identifier">en</span></code></span></dt>
|
||||
<dd>
|
||||
Heterogeneous values
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dd>
|
||||
A <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">N</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">N</span></code></span></dt>
|
||||
<dd>
|
||||
An Integral Constant
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.containers.list.expression_semantics"></a><h5>
|
||||
<a name="id487350"></a>
|
||||
<a name="id971556"></a>
|
||||
<a href="list.html#fusion.sequences.containers.list.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -155,58 +155,58 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">L</span><span class="special">()</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">L</span><span class="special">()</span></code></td>
|
||||
<td>Creates
|
||||
a list with default constructed elements.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">L</span><span class="special">(</span><span class="identifier">e0</span><span class="special">,</span> <span class="identifier">e1</span><span class="special">,...</span>
|
||||
<span class="identifier">en</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">L</span><span class="special">(</span><span class="identifier">e0</span><span class="special">,</span> <span class="identifier">e1</span><span class="special">,...</span>
|
||||
<span class="identifier">en</span><span class="special">)</span></code></td>
|
||||
<td>Creates
|
||||
a list with elements <tt class="computeroutput"><span class="identifier">e0</span></tt>...<tt class="computeroutput"><span class="identifier">en</span></tt>.</td>
|
||||
a list with elements <code class="computeroutput"><span class="identifier">e0</span></code>...<code class="computeroutput"><span class="identifier">en</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">L</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">L</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>Copy
|
||||
constructs a list from a <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>, <tt class="computeroutput"><span class="identifier">s</span></tt>.</td>
|
||||
Sequence</a>, <code class="computeroutput"><span class="identifier">s</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">l</span> <span class="special">=</span>
|
||||
<span class="identifier">s</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">l</span> <span class="special">=</span>
|
||||
<span class="identifier">s</span></code></td>
|
||||
<td>Assigns
|
||||
to a list, <tt class="computeroutput"><span class="identifier">l</span></tt>, from
|
||||
to a list, <code class="computeroutput"><span class="identifier">l</span></code>, from
|
||||
a <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>, <tt class="computeroutput"><span class="identifier">s</span></tt>.</td>
|
||||
Sequence</a>, <code class="computeroutput"><span class="identifier">s</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span></code></td>
|
||||
<td>The
|
||||
Nth element from the beginning of the sequence; see <a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a>.</td>
|
||||
Nth element from the beginning of the sequence; see <a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<p class="blurb">
|
||||
<span class="inlinemediaobject"><img src="../../../images/note.png" alt="note"></span> <tt class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">n</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span></tt> is
|
||||
<span class="inlinemediaobject"><img src="../../../images/note.png" alt="note"></span> <code class="computeroutput"><a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">n</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span></code> is
|
||||
provided for convenience and compatibility with the original <a href="http://www.boost.org/libs/tuple/doc/tuple_users_guide.html" target="_top">Boost.Tuple</a>
|
||||
library, despite <tt class="computeroutput"><span class="identifier">list</span></tt> being
|
||||
library, despite <code class="computeroutput"><span class="identifier">list</span></code> being
|
||||
a <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward Sequence</a>
|
||||
only (<a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a> is supposed to be a <a href="../concepts/random_access_sequence.html" title="Random
|
||||
only (<a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a> is supposed to be a <a href="../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a> requirement). The runtime complexity of <a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a> is constant (see <a href="../../notes.html#fusion.notes.recursive_inlined_functions">Recursive
|
||||
Access Sequence</a> requirement). The runtime complexity of <a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a> is constant (see <a href="../../notes.html#fusion.notes.recursive_inlined_functions">Recursive
|
||||
Inlined Functions</a>).
|
||||
</p>
|
||||
<a name="fusion.sequences.containers.list.example"></a><h5>
|
||||
<a name="id487846"></a>
|
||||
<a name="id971994"></a>
|
||||
<a href="list.html#fusion.sequences.containers.list.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">list</span><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">l</span><span class="special">(</span><span class="number">12</span><span class="special">,</span> <span class="number">5.5f</span><span class="special">);</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="number">0</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="number">1</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="number">0</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="number">1</span><span class="special">>(</span><span class="identifier">l</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>map</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../containers.html" title="Containers">
|
||||
<link rel="prev" href="set.html" title="set">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.containers.map"></a><a href="map.html" title="map">map</a></h4></div></div></div>
|
||||
<a name="fusion.sequences.containers.map.description"></a><h5>
|
||||
<a name="id489594"></a>
|
||||
<a name="id973536"></a>
|
||||
<a href="map.html#fusion.sequences.containers.map.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
map is an <a href="../concepts/associative_sequence.html" title="Associative
|
||||
Sequence">Associative
|
||||
Sequence</a> of heteregenous typed data elements. Each element is a
|
||||
key/data pair (see <a href="../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a>)
|
||||
key/data pair (see <a href="../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></code></a>)
|
||||
where the key has no data (type only). Type identity is used to impose
|
||||
an equivalence relation on keys. A map may contain at most one element
|
||||
for each key. Membership testing and element key lookup has constant runtime
|
||||
@@ -41,14 +41,14 @@
|
||||
Functions</a>).
|
||||
</p>
|
||||
<a name="fusion.sequences.containers.map.header"></a><h5>
|
||||
<a name="id489672"></a>
|
||||
<a name="id973607"></a>
|
||||
<a href="map.html#fusion.sequences.containers.map.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">container</span><span class="special">/</span><span class="identifier">map</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.containers.map.synopsis"></a><h5>
|
||||
<a name="id489777"></a>
|
||||
<a name="id973699"></a>
|
||||
<a href="map.html#fusion.sequences.containers.map.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -62,24 +62,24 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">map</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic class interface accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_MAP_SIZE</span></tt>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_MAP_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>.
|
||||
The variadic class interface accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_MAP_SIZE</span></code>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_MAP_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>.
|
||||
Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">map</span><span class="special"><</span><a href="../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span>
|
||||
<span class="identifier">map</span><span class="special"><</span><a href="../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span>
|
||||
</pre>
|
||||
<p>
|
||||
You may define the preprocessor constant <tt class="computeroutput"><span class="identifier">FUSION_MAX_MAP_SIZE</span></tt>
|
||||
You may define the preprocessor constant <code class="computeroutput"><span class="identifier">FUSION_MAX_MAP_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_MAP_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.containers.map.template_parameters"></a><h5>
|
||||
<a name="id490194"></a>
|
||||
<a name="id974068"></a>
|
||||
<a href="map.html#fusion.sequences.containers.map.template_parameters">Template
|
||||
parameters</a>
|
||||
</h5>
|
||||
@@ -96,14 +96,14 @@
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<tt class="computeroutput"><span class="identifier">T0</span></tt>...<tt class="computeroutput"><span class="identifier">TN</span></tt>
|
||||
<code class="computeroutput"><span class="identifier">T0</span></code>...<code class="computeroutput"><span class="identifier">TN</span></code>
|
||||
</td>
|
||||
<td>Element types</td>
|
||||
<td><span class="emphasis"><em>unspecified-type</em></span></td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.containers.map.model_of"></a><h5>
|
||||
<a name="id490284"></a>
|
||||
<a name="id974147"></a>
|
||||
<a href="map.html#fusion.sequences.containers.map.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
@@ -116,19 +116,19 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">M</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">M</span></code></span></dt>
|
||||
<dd>
|
||||
A <tt class="computeroutput"><span class="identifier">map</span></tt> type
|
||||
A <code class="computeroutput"><span class="identifier">map</span></code> type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">m</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">m</span></code></span></dt>
|
||||
<dd>
|
||||
An instance of <tt class="computeroutput"><span class="identifier">map</span></tt>
|
||||
An instance of <code class="computeroutput"><span class="identifier">map</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">e0</span></tt>...<tt class="computeroutput"><span class="identifier">en</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">e0</span></code>...<code class="computeroutput"><span class="identifier">en</span></code></span></dt>
|
||||
<dd>
|
||||
Heterogeneous key/value pairs (see <a href="../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a>)
|
||||
Heterogeneous key/value pairs (see <a href="../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></code></a>)
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dd>
|
||||
A <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -137,7 +137,7 @@
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.containers.map.expression_semantics"></a><h5>
|
||||
<a name="id490480"></a>
|
||||
<a name="id974321"></a>
|
||||
<a href="map.html#fusion.sequences.containers.map.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -160,50 +160,50 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">M</span><span class="special">()</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">M</span><span class="special">()</span></code></td>
|
||||
<td>Creates
|
||||
a map with default constructed elements.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">M</span><span class="special">(</span><span class="identifier">e0</span><span class="special">,</span> <span class="identifier">e1</span><span class="special">,...</span>
|
||||
<span class="identifier">en</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">M</span><span class="special">(</span><span class="identifier">e0</span><span class="special">,</span> <span class="identifier">e1</span><span class="special">,...</span>
|
||||
<span class="identifier">en</span><span class="special">)</span></code></td>
|
||||
<td>Creates
|
||||
a map with element pairs <tt class="computeroutput"><span class="identifier">e0</span></tt>...<tt class="computeroutput"><span class="identifier">en</span></tt>.</td>
|
||||
a map with element pairs <code class="computeroutput"><span class="identifier">e0</span></code>...<code class="computeroutput"><span class="identifier">en</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">M</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">M</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>Copy
|
||||
constructs a map from a <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a> <tt class="computeroutput"><span class="identifier">s</span></tt>.</td>
|
||||
Sequence</a> <code class="computeroutput"><span class="identifier">s</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">m</span> <span class="special">=</span>
|
||||
<span class="identifier">s</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">m</span> <span class="special">=</span>
|
||||
<span class="identifier">s</span></code></td>
|
||||
<td>Assigns
|
||||
to a map, <tt class="computeroutput"><span class="identifier">m</span></tt>, from
|
||||
to a map, <code class="computeroutput"><span class="identifier">m</span></code>, from
|
||||
a <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a> <tt class="computeroutput"><span class="identifier">s</span></tt>.</td>
|
||||
Sequence</a> <code class="computeroutput"><span class="identifier">s</span></code>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.containers.map.example"></a><h5>
|
||||
<a name="id490767"></a>
|
||||
<a name="id974576"></a>
|
||||
<a href="map.html#fusion.sequences.containers.map.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <span class="identifier">map</span><span class="special"><</span>
|
||||
<a href="../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span>
|
||||
<span class="special">,</span> <a href="../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">double</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="special">></span>
|
||||
<a href="../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span>
|
||||
<span class="special">,</span> <a href="../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">double</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="special">></span>
|
||||
<span class="identifier">map_type</span><span class="special">;</span>
|
||||
|
||||
<span class="identifier">map_type</span> <span class="identifier">m</span><span class="special">(</span>
|
||||
<a href="../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">make_pair</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><span class="char">'X'</span><span class="special">)</span>
|
||||
<span class="special">,</span> <a href="../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">make_pair</span></tt></a><span class="special"><</span><span class="keyword">double</span><span class="special">>(</span><span class="string">"Men"</span><span class="special">));</span>
|
||||
<a href="../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">make_pair</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><span class="char">'X'</span><span class="special">)</span>
|
||||
<span class="special">,</span> <a href="../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">make_pair</span></code></a><span class="special"><</span><span class="keyword">double</span><span class="special">>(</span><span class="string">"Men"</span><span class="special">));</span>
|
||||
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><span class="identifier">m</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a><span class="special"><</span><span class="keyword">double</span><span class="special">>(</span><span class="identifier">m</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><span class="identifier">m</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a><span class="special"><</span><span class="keyword">double</span><span class="special">>(</span><span class="identifier">m</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>set</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../containers.html" title="Containers">
|
||||
<link rel="prev" href="list.html" title="list">
|
||||
@@ -26,7 +26,7 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.containers.set"></a><a href="set.html" title="set">set</a></h4></div></div></div>
|
||||
<a name="fusion.sequences.containers.set.description"></a><h5>
|
||||
<a name="id488140"></a>
|
||||
<a name="id972253"></a>
|
||||
<a href="set.html#fusion.sequences.containers.set.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
@@ -39,14 +39,14 @@
|
||||
Functions</a>).
|
||||
</p>
|
||||
<a name="fusion.sequences.containers.set.header"></a><h5>
|
||||
<a name="id488194"></a>
|
||||
<a name="id972301"></a>
|
||||
<a href="set.html#fusion.sequences.containers.set.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">container</span><span class="special">/</span><span class="identifier">set</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.containers.set.synopsis"></a><h5>
|
||||
<a name="id488298"></a>
|
||||
<a name="id972392"></a>
|
||||
<a href="set.html#fusion.sequences.containers.set.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -60,24 +60,24 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">set</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic class interface accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_SET_SIZE</span></tt>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_SET_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>.
|
||||
The variadic class interface accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_SET_SIZE</span></code>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_SET_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>.
|
||||
Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">set</span><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span>
|
||||
</pre>
|
||||
<p>
|
||||
You may define the preprocessor constant <tt class="computeroutput"><span class="identifier">FUSION_MAX_SET_SIZE</span></tt>
|
||||
You may define the preprocessor constant <code class="computeroutput"><span class="identifier">FUSION_MAX_SET_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_SET_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.containers.set.template_parameters"></a><h5>
|
||||
<a name="id488618"></a>
|
||||
<a name="id972675"></a>
|
||||
<a href="set.html#fusion.sequences.containers.set.template_parameters">Template
|
||||
parameters</a>
|
||||
</h5>
|
||||
@@ -94,14 +94,14 @@
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<tt class="computeroutput"><span class="identifier">T0</span></tt>...<tt class="computeroutput"><span class="identifier">TN</span></tt>
|
||||
<code class="computeroutput"><span class="identifier">T0</span></code>...<code class="computeroutput"><span class="identifier">TN</span></code>
|
||||
</td>
|
||||
<td>Element types</td>
|
||||
<td><span class="emphasis"><em>unspecified-type</em></span></td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.containers.set.model_of"></a><h5>
|
||||
<a name="id488709"></a>
|
||||
<a name="id972755"></a>
|
||||
<a href="set.html#fusion.sequences.containers.set.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
@@ -114,19 +114,19 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">S</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">S</span></code></span></dt>
|
||||
<dd>
|
||||
A <tt class="computeroutput"><span class="identifier">set</span></tt> type
|
||||
A <code class="computeroutput"><span class="identifier">set</span></code> type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dd>
|
||||
An instance of <tt class="computeroutput"><span class="identifier">set</span></tt>
|
||||
An instance of <code class="computeroutput"><span class="identifier">set</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">e0</span></tt>...<tt class="computeroutput"><span class="identifier">en</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">e0</span></code>...<code class="computeroutput"><span class="identifier">en</span></code></span></dt>
|
||||
<dd>
|
||||
Heterogeneous values
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">fs</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">fs</span></code></span></dt>
|
||||
<dd>
|
||||
A <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -135,7 +135,7 @@
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.containers.set.expression_semantics"></a><h5>
|
||||
<a name="id488879"></a>
|
||||
<a name="id972906"></a>
|
||||
<a href="set.html#fusion.sequences.containers.set.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -158,44 +158,44 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">S</span><span class="special">()</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">S</span><span class="special">()</span></code></td>
|
||||
<td>Creates
|
||||
a set with default constructed elements.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">S</span><span class="special">(</span><span class="identifier">e0</span><span class="special">,</span> <span class="identifier">e1</span><span class="special">,...</span>
|
||||
<span class="identifier">en</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">S</span><span class="special">(</span><span class="identifier">e0</span><span class="special">,</span> <span class="identifier">e1</span><span class="special">,...</span>
|
||||
<span class="identifier">en</span><span class="special">)</span></code></td>
|
||||
<td>Creates
|
||||
a set with elements <tt class="computeroutput"><span class="identifier">e0</span></tt>...<tt class="computeroutput"><span class="identifier">en</span></tt>.</td>
|
||||
a set with elements <code class="computeroutput"><span class="identifier">e0</span></code>...<code class="computeroutput"><span class="identifier">en</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">S</span><span class="special">(</span><span class="identifier">fs</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">S</span><span class="special">(</span><span class="identifier">fs</span><span class="special">)</span></code></td>
|
||||
<td>Copy
|
||||
constructs a set from a <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a> <tt class="computeroutput"><span class="identifier">fs</span></tt>.</td>
|
||||
Sequence</a> <code class="computeroutput"><span class="identifier">fs</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">s</span> <span class="special">=</span>
|
||||
<span class="identifier">fs</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">s</span> <span class="special">=</span>
|
||||
<span class="identifier">fs</span></code></td>
|
||||
<td>Assigns
|
||||
to a set, <tt class="computeroutput"><span class="identifier">s</span></tt>, from
|
||||
to a set, <code class="computeroutput"><span class="identifier">s</span></code>, from
|
||||
a <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a> <tt class="computeroutput"><span class="identifier">fs</span></tt>.</td>
|
||||
Sequence</a> <code class="computeroutput"><span class="identifier">fs</span></code>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.containers.set.example"></a><h5>
|
||||
<a name="id489168"></a>
|
||||
<a name="id973161"></a>
|
||||
<a href="set.html#fusion.sequences.containers.set.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <span class="identifier">set</span><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">S</span><span class="special">;</span>
|
||||
<span class="identifier">S</span> <span class="identifier">s</span><span class="special">(</span><span class="number">12</span><span class="special">,</span> <span class="number">5.5f</span><span class="special">);</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="keyword">float</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/metafunctions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="keyword">double</span><span class="special">>::</span><span class="identifier">value</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="keyword">float</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/metafunctions/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></code></a><span class="special"><</span><span class="identifier">S</span><span class="special">,</span> <span class="keyword">double</span><span class="special">>::</span><span class="identifier">value</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>vector</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../containers.html" title="Containers">
|
||||
<link rel="prev" href="../containers.html" title="Containers">
|
||||
@@ -26,20 +26,20 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.containers.vector"></a><a href="vector.html" title="vector">vector</a></h4></div></div></div>
|
||||
<a name="fusion.sequences.containers.vector.description"></a><h5>
|
||||
<a name="id482681"></a>
|
||||
<a name="id967439"></a>
|
||||
<a href="vector.html#fusion.sequences.containers.vector.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
<tt class="computeroutput"><span class="identifier">vector</span></tt> is a <a href="../concepts/random_access_sequence.html" title="Random
|
||||
<code class="computeroutput"><span class="identifier">vector</span></code> is a <a href="../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a> of heterogenous typed data structured as a simple
|
||||
<tt class="computeroutput"><span class="keyword">struct</span></tt> where each element
|
||||
is held as a member variable. <tt class="computeroutput"><span class="identifier">vector</span></tt>
|
||||
<code class="computeroutput"><span class="keyword">struct</span></code> where each element
|
||||
is held as a member variable. <code class="computeroutput"><span class="identifier">vector</span></code>
|
||||
is the simplest of the Fusion sequence container, and in many cases the
|
||||
most efficient.
|
||||
</p>
|
||||
<a name="fusion.sequences.containers.vector.header"></a><h5>
|
||||
<a name="id482754"></a>
|
||||
<a name="id967503"></a>
|
||||
<a href="vector.html#fusion.sequences.containers.vector.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -54,11 +54,11 @@
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">container</span><span class="special">/</span><span class="identifier">vector</span><span class="special">/</span><span class="identifier">vector50</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.containers.vector.synopsis"></a><h5>
|
||||
<a name="id483362"></a>
|
||||
<a name="id968036"></a>
|
||||
<a href="vector.html#fusion.sequences.containers.vector.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
<p>
|
||||
<span class="bold"><b>Numbered forms</b></span>
|
||||
<span class="bold"><strong>Numbered forms</strong></span>
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><></span>
|
||||
@@ -79,7 +79,7 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">vectorN</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Variadic form</b></span>
|
||||
<span class="bold"><strong>Variadic form</strong></span>
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span>
|
||||
@@ -98,24 +98,24 @@
|
||||
<span class="identifier">vector3</span><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic form accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>.
|
||||
The variadic form accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>.
|
||||
Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">vector</span><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span>
|
||||
</pre>
|
||||
<p>
|
||||
You may define the preprocessor constant <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
You may define the preprocessor constant <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_VECTOR_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.containers.vector.template_parameters"></a><h5>
|
||||
<a name="id484089"></a>
|
||||
<a name="id968678"></a>
|
||||
<a href="vector.html#fusion.sequences.containers.vector.template_parameters">Template
|
||||
parameters</a>
|
||||
</h5>
|
||||
@@ -132,14 +132,14 @@
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<tt class="computeroutput"><span class="identifier">T0</span></tt>...<tt class="computeroutput"><span class="identifier">TN</span></tt>
|
||||
<code class="computeroutput"><span class="identifier">T0</span></code>...<code class="computeroutput"><span class="identifier">TN</span></code>
|
||||
</td>
|
||||
<td>Element types</td>
|
||||
<td><span class="emphasis"><em>unspecified</em></span></td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.containers.vector.model_of"></a><h5>
|
||||
<a name="id484179"></a>
|
||||
<a name="id968757"></a>
|
||||
<a href="vector.html#fusion.sequences.containers.vector.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="../concepts/random_access_sequence.html" title="Random
|
||||
@@ -148,19 +148,19 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">v</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">v</span></code></span></dt>
|
||||
<dd>
|
||||
Instance of <tt class="computeroutput"><span class="identifier">vector</span></tt>
|
||||
Instance of <code class="computeroutput"><span class="identifier">vector</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">V</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">V</span></code></span></dt>
|
||||
<dd>
|
||||
A <tt class="computeroutput"><span class="identifier">vector</span></tt> type
|
||||
A <code class="computeroutput"><span class="identifier">vector</span></code> type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">e0</span></tt>...<tt class="computeroutput"><span class="identifier">en</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">e0</span></code>...<code class="computeroutput"><span class="identifier">en</span></code></span></dt>
|
||||
<dd>
|
||||
Heterogeneous values
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dd>
|
||||
A <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -169,7 +169,7 @@
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.containers.vector.expression_semantics"></a><h5>
|
||||
<a name="id484338"></a>
|
||||
<a name="id968897"></a>
|
||||
<a href="vector.html#fusion.sequences.containers.vector.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -190,42 +190,42 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">V</span><span class="special">()</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">V</span><span class="special">()</span></code></td>
|
||||
<td>Creates
|
||||
a vector with default constructed elements.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">V</span><span class="special">(</span><span class="identifier">e0</span><span class="special">,</span> <span class="identifier">e1</span><span class="special">,...</span>
|
||||
<span class="identifier">en</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">V</span><span class="special">(</span><span class="identifier">e0</span><span class="special">,</span> <span class="identifier">e1</span><span class="special">,...</span>
|
||||
<span class="identifier">en</span><span class="special">)</span></code></td>
|
||||
<td>Creates
|
||||
a vector with elements <tt class="computeroutput"><span class="identifier">e0</span></tt>...<tt class="computeroutput"><span class="identifier">en</span></tt>.</td>
|
||||
a vector with elements <code class="computeroutput"><span class="identifier">e0</span></code>...<code class="computeroutput"><span class="identifier">en</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">V</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">V</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>Copy
|
||||
constructs a vector from a <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>, <tt class="computeroutput"><span class="identifier">s</span></tt>.</td>
|
||||
Sequence</a>, <code class="computeroutput"><span class="identifier">s</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">v</span> <span class="special">=</span>
|
||||
<span class="identifier">s</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">v</span> <span class="special">=</span>
|
||||
<span class="identifier">s</span></code></td>
|
||||
<td>Assigns
|
||||
to a vector, <tt class="computeroutput"><span class="identifier">v</span></tt>, from
|
||||
to a vector, <code class="computeroutput"><span class="identifier">v</span></code>, from
|
||||
a <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a>, <tt class="computeroutput"><span class="identifier">s</span></tt>.</td>
|
||||
Sequence</a>, <code class="computeroutput"><span class="identifier">s</span></code>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.containers.vector.example"></a><h5>
|
||||
<a name="id484616"></a>
|
||||
<a name="id969144"></a>
|
||||
<a href="vector.html#fusion.sequences.containers.vector.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">vector</span><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v</span><span class="special">(</span><span class="number">12</span><span class="special">,</span> <span class="number">5.5f</span><span class="special">);</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="number">0</span><span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="number">1</span><span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a><span class="special"><</span><span class="number">0</span><span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../intrinsics/functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a><span class="special"><</span><span class="number">1</span><span class="special">>(</span><span class="identifier">v</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Conversion</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../sequences.html" title="Sequences">
|
||||
<link rel="prev" href="generation/metafunctions/vector_tie.html" title="vector_tie">
|
||||
@@ -30,7 +30,7 @@
|
||||
types using one of these conversion functions.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.header"></a><h4>
|
||||
<a name="id537037"></a>
|
||||
<a name="id1067869"></a>
|
||||
<a href="conversion.html#fusion.sequences.conversion.header">Header</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Functions</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../conversion.html" title="Conversion">
|
||||
<link rel="prev" href="../conversion.html" title="Conversion">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>as_list</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="../functions.html" title="Functions">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.conversion.functions.as_list"></a><a href="as_list.html" title="as_list">as_list</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.conversion.functions.as_list.description"></a><h6>
|
||||
<a name="id537173"></a>
|
||||
<a name="id1067988"></a>
|
||||
<a href="as_list.html#fusion.sequences.conversion.functions.as_list.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Convert a fusion sequence to a <a href="../../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a>.
|
||||
Convert a fusion sequence to a <a href="../../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.functions.as_list.synopsis"></a><h6>
|
||||
<a name="id537222"></a>
|
||||
<a name="id1068030"></a>
|
||||
<a href="as_list.html#fusion.sequences.conversion.functions.as_list.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -46,7 +46,7 @@
|
||||
<span class="identifier">as_list</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.functions.as_list.parameters"></a><h6>
|
||||
<a name="id537478"></a>
|
||||
<a name="id1068256"></a>
|
||||
<a href="as_list.html#fusion.sequences.conversion.functions.as_list.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -61,14 +61,14 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">seq</span></code></td>
|
||||
<td>An
|
||||
instance of Sequence</td>
|
||||
<td>The sequence to convert.</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.conversion.functions.as_list.expression_semantics"></a><h6>
|
||||
<a name="id537559"></a>
|
||||
<a name="id1068329"></a>
|
||||
<a href="as_list.html#fusion.sequences.conversion.functions.as_list.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -76,25 +76,25 @@
|
||||
<span class="identifier">as_list</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../metafunctions/as_list.html" title="as_list"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_list</span></tt></a><tt class="computeroutput"><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="../metafunctions/as_list.html" title="as_list"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_list</span></code></a><code class="computeroutput"><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Convert a fusion sequence,
|
||||
<tt class="computeroutput"><span class="identifier">seq</span></tt>, to a <a href="../../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Convert a fusion sequence,
|
||||
<code class="computeroutput"><span class="identifier">seq</span></code>, to a <a href="../../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.functions.as_list.header"></a><h6>
|
||||
<a name="id537714"></a>
|
||||
<a name="id1068465"></a>
|
||||
<a href="as_list.html#fusion.sequences.conversion.functions.as_list.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">conversion</span><span class="special">/</span><span class="identifier">as_list</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.functions.as_list.example"></a><h6>
|
||||
<a name="id537820"></a>
|
||||
<a name="id1068558"></a>
|
||||
<a href="as_list.html#fusion.sequences.conversion.functions.as_list.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">as_list</span><span class="special">(</span><a href="../../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">'x'</span><span class="special">,</span> <span class="number">123</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">))</span>
|
||||
<span class="identifier">as_list</span><span class="special">(</span><a href="../../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">'x'</span><span class="special">,</span> <span class="number">123</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">))</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>as_map</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="as_set.html" title="as_set">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.conversion.functions.as_map"></a><a href="as_map.html" title="as_map">as_map</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.conversion.functions.as_map.description"></a><h6>
|
||||
<a name="id539472"></a>
|
||||
<a name="id1070016"></a>
|
||||
<a href="as_map.html#fusion.sequences.conversion.functions.as_map.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Convert a fusion sequence to a <a href="../../containers/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a>.
|
||||
Convert a fusion sequence to a <a href="../../containers/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.functions.as_map.synopsis"></a><h6>
|
||||
<a name="id539519"></a>
|
||||
<a name="id1070058"></a>
|
||||
<a href="as_map.html#fusion.sequences.conversion.functions.as_map.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -46,7 +46,7 @@
|
||||
<span class="identifier">as_map</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.functions.as_map.parameters"></a><h6>
|
||||
<a name="id539775"></a>
|
||||
<a name="id1070284"></a>
|
||||
<a href="as_map.html#fusion.sequences.conversion.functions.as_map.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -61,14 +61,14 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">seq</span></code></td>
|
||||
<td>An
|
||||
instance of Sequence</td>
|
||||
<td>The sequence to convert.</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.conversion.functions.as_map.expression_semantics"></a><h6>
|
||||
<a name="id539854"></a>
|
||||
<a name="id1070356"></a>
|
||||
<a href="as_map.html#fusion.sequences.conversion.functions.as_map.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -76,32 +76,32 @@
|
||||
<span class="identifier">as_map</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../metafunctions/as_map.html" title="as_map"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_map</span></tt></a><tt class="computeroutput"><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="../metafunctions/as_map.html" title="as_map"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_map</span></code></a><code class="computeroutput"><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Convert a fusion sequence,
|
||||
<tt class="computeroutput"><span class="identifier">seq</span></tt>, to a <a href="../../containers/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Convert a fusion sequence,
|
||||
<code class="computeroutput"><span class="identifier">seq</span></code>, to a <a href="../../containers/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Precondition</b></span>: The elements of the sequence
|
||||
<span class="bold"><strong>Precondition</strong></span>: The elements of the sequence
|
||||
are assumed to be __fusion<span class="underline">pair</span>_s.
|
||||
There may be no duplicate <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a> key types.
|
||||
There may be no duplicate <a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></code></a> key types.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.functions.as_map.header"></a><h6>
|
||||
<a name="id540052"></a>
|
||||
<a name="id1070530"></a>
|
||||
<a href="as_map.html#fusion.sequences.conversion.functions.as_map.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">conversion</span><span class="special">/</span><span class="identifier">as_map</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.functions.as_map.example"></a><h6>
|
||||
<a name="id540157"></a>
|
||||
<a name="id1070623"></a>
|
||||
<a href="as_map.html#fusion.sequences.conversion.functions.as_map.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">as_map</span><span class="special">(</span><a href="../../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="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">make_pair</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><span class="char">'X'</span><span class="special">)</span>
|
||||
<span class="special">,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">make_pair</span></tt></a><span class="special"><</span><span class="keyword">double</span><span class="special">>(</span><span class="string">"Men"</span><span class="special">)))</span>
|
||||
<span class="identifier">as_map</span><span class="special">(</span><a href="../../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="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">make_pair</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><span class="char">'X'</span><span class="special">)</span>
|
||||
<span class="special">,</span> <a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">make_pair</span></code></a><span class="special"><</span><span class="keyword">double</span><span class="special">>(</span><span class="string">"Men"</span><span class="special">)))</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>as_set</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="as_vector.html" title="as_vector">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.conversion.functions.as_set"></a><a href="as_set.html" title="as_set">as_set</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.conversion.functions.as_set.description"></a><h6>
|
||||
<a name="id538702"></a>
|
||||
<a name="id1069336"></a>
|
||||
<a href="as_set.html#fusion.sequences.conversion.functions.as_set.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Convert a fusion sequence to a <a href="../../containers/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a>.
|
||||
Convert a fusion sequence to a <a href="../../containers/set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.functions.as_set.synopsis"></a><h6>
|
||||
<a name="id538750"></a>
|
||||
<a name="id1069377"></a>
|
||||
<a href="as_set.html#fusion.sequences.conversion.functions.as_set.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -46,7 +46,7 @@
|
||||
<span class="identifier">as_set</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.functions.as_set.parameters"></a><h6>
|
||||
<a name="id539006"></a>
|
||||
<a name="id1069603"></a>
|
||||
<a href="as_set.html#fusion.sequences.conversion.functions.as_set.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -61,14 +61,14 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">seq</span></code></td>
|
||||
<td>An
|
||||
instance of Sequence</td>
|
||||
<td>The sequence to convert.</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.conversion.functions.as_set.expression_semantics"></a><h6>
|
||||
<a name="id539085"></a>
|
||||
<a name="id1069676"></a>
|
||||
<a href="as_set.html#fusion.sequences.conversion.functions.as_set.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -76,29 +76,29 @@
|
||||
<span class="identifier">as_set</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../metafunctions/as_set.html" title="as_set"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_set</span></tt></a><tt class="computeroutput"><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="../metafunctions/as_set.html" title="as_set"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_set</span></code></a><code class="computeroutput"><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Convert a fusion sequence,
|
||||
<tt class="computeroutput"><span class="identifier">seq</span></tt>, to a <a href="../../containers/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Convert a fusion sequence,
|
||||
<code class="computeroutput"><span class="identifier">seq</span></code>, to a <a href="../../containers/set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Precondition</b></span>: There may be no duplicate
|
||||
<span class="bold"><strong>Precondition</strong></span>: There may be no duplicate
|
||||
key types.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.functions.as_set.header"></a><h6>
|
||||
<a name="id539250"></a>
|
||||
<a name="id1069820"></a>
|
||||
<a href="as_set.html#fusion.sequences.conversion.functions.as_set.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">conversion</span><span class="special">/</span><span class="identifier">as_set</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.functions.as_set.example"></a><h6>
|
||||
<a name="id539355"></a>
|
||||
<a name="id1069913"></a>
|
||||
<a href="as_set.html#fusion.sequences.conversion.functions.as_set.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">as_set</span><span class="special">(</span><a href="../../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">'x'</span><span class="special">,</span> <span class="number">123</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">))</span>
|
||||
<span class="identifier">as_set</span><span class="special">(</span><a href="../../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">'x'</span><span class="special">,</span> <span class="number">123</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">))</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>as_vector</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="as_list.html" title="as_list">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.conversion.functions.as_vector"></a><a href="as_vector.html" title="as_vector">as_vector</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.conversion.functions.as_vector.description"></a><h6>
|
||||
<a name="id537938"></a>
|
||||
<a name="id1068662"></a>
|
||||
<a href="as_vector.html#fusion.sequences.conversion.functions.as_vector.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Convert a fusion sequence to a <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>.
|
||||
Convert a fusion sequence to a <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.functions.as_vector.synopsis"></a><h6>
|
||||
<a name="id537986"></a>
|
||||
<a name="id1068705"></a>
|
||||
<a href="as_vector.html#fusion.sequences.conversion.functions.as_vector.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -46,7 +46,7 @@
|
||||
<span class="identifier">as_vector</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.functions.as_vector.parameters"></a><h6>
|
||||
<a name="id538243"></a>
|
||||
<a name="id1068930"></a>
|
||||
<a href="as_vector.html#fusion.sequences.conversion.functions.as_vector.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -61,14 +61,14 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">seq</span></code></td>
|
||||
<td>An
|
||||
instance of Sequence</td>
|
||||
<td>The sequence to convert.</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.conversion.functions.as_vector.expression_semantics"></a><h6>
|
||||
<a name="id538323"></a>
|
||||
<a name="id1069002"></a>
|
||||
<a href="as_vector.html#fusion.sequences.conversion.functions.as_vector.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -76,25 +76,25 @@
|
||||
<span class="identifier">as_vector</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../metafunctions/as_vector.html" title="as_vector"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_vector</span></tt></a><tt class="computeroutput"><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="../metafunctions/as_vector.html" title="as_vector"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_vector</span></code></a><code class="computeroutput"><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Convert a fusion sequence,
|
||||
<tt class="computeroutput"><span class="identifier">seq</span></tt>, to a <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Convert a fusion sequence,
|
||||
<code class="computeroutput"><span class="identifier">seq</span></code>, to a <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.functions.as_vector.header"></a><h6>
|
||||
<a name="id538479"></a>
|
||||
<a name="id1069139"></a>
|
||||
<a href="as_vector.html#fusion.sequences.conversion.functions.as_vector.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">conversion</span><span class="special">/</span><span class="identifier">as_vector</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.functions.as_vector.example"></a><h6>
|
||||
<a name="id538584"></a>
|
||||
<a name="id1069232"></a>
|
||||
<a href="as_vector.html#fusion.sequences.conversion.functions.as_vector.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">as_vector</span><span class="special">(</span><a href="../../generation/functions/make_list.html" title="make_list"><tt class="computeroutput"><span class="identifier">make_list</span></tt></a><span class="special">(</span><span class="char">'x'</span><span class="special">,</span> <span class="number">123</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">))</span>
|
||||
<span class="identifier">as_vector</span><span class="special">(</span><a href="../../generation/functions/make_list.html" title="make_list"><code class="computeroutput"><span class="identifier">make_list</span></code></a><span class="special">(</span><span class="char">'x'</span><span class="special">,</span> <span class="number">123</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">))</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Metafunctions</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../conversion.html" title="Conversion">
|
||||
<link rel="prev" href="functions/as_map.html" title="as_map">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>as_list</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" 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">
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_list"></a><a href="as_list.html" title="as_list">as_list</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_list.description"></a><h6>
|
||||
<a name="id540350"></a>
|
||||
<a name="id1070795"></a>
|
||||
<a href="as_list.html#fusion.sequences.conversion.metafunctions.as_list.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/as_list.html" title="as_list"><tt class="computeroutput"><span class="identifier">as_list</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/as_list.html" title="as_list"><code class="computeroutput"><span class="identifier">as_list</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_list.synopsis"></a><h6>
|
||||
<a name="id540398"></a>
|
||||
<a name="id1070837"></a>
|
||||
<a href="as_list.html#fusion.sequences.conversion.metafunctions.as_list.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -41,7 +41,7 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">as_list</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_list.parameters"></a><h6>
|
||||
<a name="id540478"></a>
|
||||
<a name="id1070908"></a>
|
||||
<a href="as_list.html#fusion.sequences.conversion.metafunctions.as_list.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -56,7 +56,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td>
|
||||
<td>A
|
||||
fusion <a href="../../../sequences.html" title="Sequences">Sequence</a>
|
||||
</td>
|
||||
@@ -65,7 +65,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_list.expression_semantics"></a><h6>
|
||||
<a name="id540566"></a>
|
||||
<a name="id1070987"></a>
|
||||
<a href="as_list.html#fusion.sequences.conversion.metafunctions.as_list.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -73,26 +73,26 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_list</span><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: A <a href="../../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a> with same elements as the
|
||||
input sequence, <tt class="computeroutput"><span class="identifier">Sequence</span></tt>.
|
||||
<span class="bold"><strong>Return type</strong></span>: A <a href="../../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a> with same elements as the
|
||||
input sequence, <code class="computeroutput"><span class="identifier">Sequence</span></code>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Convert a fusion sequence,
|
||||
<tt class="computeroutput"><span class="identifier">Sequence</span></tt>, to a <a href="../../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Convert a fusion sequence,
|
||||
<code class="computeroutput"><span class="identifier">Sequence</span></code>, to a <a href="../../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_list.header"></a><h6>
|
||||
<a name="id540718"></a>
|
||||
<a name="id1071120"></a>
|
||||
<a href="as_list.html#fusion.sequences.conversion.metafunctions.as_list.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">conversion</span><span class="special">/</span><span class="identifier">as_list</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_list.example"></a><h6>
|
||||
<a name="id540824"></a>
|
||||
<a name="id1071213"></a>
|
||||
<a href="as_list.html#fusion.sequences.conversion.metafunctions.as_list.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_list</span><span class="special"><</span><a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_list</span><span class="special"><</span><a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>as_map</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="as_set.html" title="as_set">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_map"></a><a href="as_map.html" title="as_map">as_map</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_map.description"></a><h6>
|
||||
<a name="id542166"></a>
|
||||
<a name="id1072397"></a>
|
||||
<a href="as_map.html#fusion.sequences.conversion.metafunctions.as_map.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/as_map.html" title="as_map"><tt class="computeroutput"><span class="identifier">as_map</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/as_map.html" title="as_map"><code class="computeroutput"><span class="identifier">as_map</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_map.synopsis"></a><h6>
|
||||
<a name="id542215"></a>
|
||||
<a name="id1072439"></a>
|
||||
<a href="as_map.html#fusion.sequences.conversion.metafunctions.as_map.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -41,7 +41,7 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">as_map</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_map.parameters"></a><h6>
|
||||
<a name="id542295"></a>
|
||||
<a name="id1072509"></a>
|
||||
<a href="as_map.html#fusion.sequences.conversion.metafunctions.as_map.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -56,7 +56,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td>
|
||||
<td>A
|
||||
fusion <a href="../../../sequences.html" title="Sequences">Sequence</a>
|
||||
</td>
|
||||
@@ -65,7 +65,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_map.expression_semantics"></a><h6>
|
||||
<a name="id542381"></a>
|
||||
<a name="id1072588"></a>
|
||||
<a href="as_map.html#fusion.sequences.conversion.metafunctions.as_map.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -73,33 +73,33 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_map</span><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: A <a href="../../containers/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a> with same elements as the
|
||||
input sequence, <tt class="computeroutput"><span class="identifier">Sequence</span></tt>.
|
||||
<span class="bold"><strong>Return type</strong></span>: A <a href="../../containers/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a> with same elements as the
|
||||
input sequence, <code class="computeroutput"><span class="identifier">Sequence</span></code>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Convert a fusion sequence,
|
||||
<tt class="computeroutput"><span class="identifier">Sequence</span></tt>, to a <a href="../../containers/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Convert a fusion sequence,
|
||||
<code class="computeroutput"><span class="identifier">Sequence</span></code>, to a <a href="../../containers/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Precondition</b></span>: The elements of the sequence
|
||||
<span class="bold"><strong>Precondition</strong></span>: The elements of the sequence
|
||||
are assumed to be __fusion<span class="underline">pair</span>_s.
|
||||
There may be no duplicate <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a> key types.
|
||||
There may be no duplicate <a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></code></a> key types.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_map.header"></a><h6>
|
||||
<a name="id542574"></a>
|
||||
<a name="id1072758"></a>
|
||||
<a href="as_map.html#fusion.sequences.conversion.metafunctions.as_map.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">conversion</span><span class="special">/</span><span class="identifier">as_map</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_map.example"></a><h6>
|
||||
<a name="id542680"></a>
|
||||
<a name="id1072852"></a>
|
||||
<a href="as_map.html#fusion.sequences.conversion.metafunctions.as_map.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_map</span><span class="special"><</span><a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span>
|
||||
<a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span>
|
||||
<span class="special">,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">double</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="special">></span> <span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_map</span><span class="special"><</span><a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span>
|
||||
<a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span>
|
||||
<span class="special">,</span> <a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">double</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="special">></span> <span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>as_set</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="as_vector.html" title="as_vector">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_set"></a><a href="as_set.html" title="as_set">as_set</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_set.description"></a><h6>
|
||||
<a name="id541555"></a>
|
||||
<a name="id1071857"></a>
|
||||
<a href="as_set.html#fusion.sequences.conversion.metafunctions.as_set.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/as_set.html" title="as_set"><tt class="computeroutput"><span class="identifier">as_set</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/as_set.html" title="as_set"><code class="computeroutput"><span class="identifier">as_set</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_set.synopsis"></a><h6>
|
||||
<a name="id541603"></a>
|
||||
<a name="id1071900"></a>
|
||||
<a href="as_set.html#fusion.sequences.conversion.metafunctions.as_set.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -41,7 +41,7 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">as_set</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_set.parameters"></a><h6>
|
||||
<a name="id541684"></a>
|
||||
<a name="id1071970"></a>
|
||||
<a href="as_set.html#fusion.sequences.conversion.metafunctions.as_set.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -56,7 +56,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td>
|
||||
<td>A
|
||||
fusion <a href="../../../sequences.html" title="Sequences">Sequence</a>
|
||||
</td>
|
||||
@@ -65,7 +65,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_set.expression_semantics"></a><h6>
|
||||
<a name="id541771"></a>
|
||||
<a name="id1072049"></a>
|
||||
<a href="as_set.html#fusion.sequences.conversion.metafunctions.as_set.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -73,30 +73,30 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_set</span><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: A <a href="../../containers/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a> with same elements as the
|
||||
input sequence, <tt class="computeroutput"><span class="identifier">Sequence</span></tt>.
|
||||
<span class="bold"><strong>Return type</strong></span>: A <a href="../../containers/set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a> with same elements as the
|
||||
input sequence, <code class="computeroutput"><span class="identifier">Sequence</span></code>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Convert a fusion sequence,
|
||||
<tt class="computeroutput"><span class="identifier">Sequence</span></tt>, to a <a href="../../containers/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Convert a fusion sequence,
|
||||
<code class="computeroutput"><span class="identifier">Sequence</span></code>, to a <a href="../../containers/set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Precondition</b></span>: There may be no duplicate
|
||||
<span class="bold"><strong>Precondition</strong></span>: There may be no duplicate
|
||||
key types.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_set.header"></a><h6>
|
||||
<a name="id541932"></a>
|
||||
<a name="id1072190"></a>
|
||||
<a href="as_set.html#fusion.sequences.conversion.metafunctions.as_set.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">conversion</span><span class="special">/</span><span class="identifier">as_set</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_set.example"></a><h6>
|
||||
<a name="id542038"></a>
|
||||
<a name="id1072284"></a>
|
||||
<a href="as_set.html#fusion.sequences.conversion.metafunctions.as_set.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_set</span><span class="special"><</span><a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_set</span><span class="special"><</span><a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>as_vector</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="as_list.html" title="as_list">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_vector"></a><a href="as_vector.html" title="as_vector">as_vector</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_vector.description"></a><h6>
|
||||
<a name="id540952"></a>
|
||||
<a name="id1071326"></a>
|
||||
<a href="as_vector.html#fusion.sequences.conversion.metafunctions.as_vector.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/as_vector.html" title="as_vector"><tt class="computeroutput"><span class="identifier">as_vector</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/as_vector.html" title="as_vector"><code class="computeroutput"><span class="identifier">as_vector</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_vector.synopsis"></a><h6>
|
||||
<a name="id541001"></a>
|
||||
<a name="id1071369"></a>
|
||||
<a href="as_vector.html#fusion.sequences.conversion.metafunctions.as_vector.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -41,7 +41,7 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">as_vector</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_vector.parameters"></a><h6>
|
||||
<a name="id541081"></a>
|
||||
<a name="id1071439"></a>
|
||||
<a href="as_vector.html#fusion.sequences.conversion.metafunctions.as_vector.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -56,7 +56,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td>
|
||||
<td>A
|
||||
fusion <a href="../../../sequences.html" title="Sequences">Sequence</a>
|
||||
</td>
|
||||
@@ -65,7 +65,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_vector.expression_semantics"></a><h6>
|
||||
<a name="id541169"></a>
|
||||
<a name="id1071518"></a>
|
||||
<a href="as_vector.html#fusion.sequences.conversion.metafunctions.as_vector.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -73,26 +73,26 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_vector</span><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: A <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a> with same elements as
|
||||
the input sequence, <tt class="computeroutput"><span class="identifier">Sequence</span></tt>.
|
||||
<span class="bold"><strong>Return type</strong></span>: A <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> with same elements as
|
||||
the input sequence, <code class="computeroutput"><span class="identifier">Sequence</span></code>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Convert a fusion sequence,
|
||||
<tt class="computeroutput"><span class="identifier">Sequence</span></tt>, to a <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Convert a fusion sequence,
|
||||
<code class="computeroutput"><span class="identifier">Sequence</span></code>, to a <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_vector.header"></a><h6>
|
||||
<a name="id541320"></a>
|
||||
<a name="id1071651"></a>
|
||||
<a href="as_vector.html#fusion.sequences.conversion.metafunctions.as_vector.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">conversion</span><span class="special">/</span><span class="identifier">as_vector</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.conversion.metafunctions.as_vector.example"></a><h6>
|
||||
<a name="id541427"></a>
|
||||
<a name="id1071744"></a>
|
||||
<a href="as_vector.html#fusion.sequences.conversion.metafunctions.as_vector.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_vector</span><span class="special"><</span><a href="../../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_vector</span><span class="special"><</span><a href="../../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Generation</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../sequences.html" title="Sequences">
|
||||
<link rel="prev" href="intrinsics/metafunctions/value_at_key.html" title="value_at_key">
|
||||
@@ -29,7 +29,7 @@
|
||||
These are the functions that you can use to generate various forms of <a href="containers.html" title="Containers">Containers</a> from elemental values.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.header"></a><h4>
|
||||
<a name="id522943"></a>
|
||||
<a name="id1037953"></a>
|
||||
<a href="generation.html#fusion.sequences.generation.header">Header</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Functions</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../generation.html" title="Generation">
|
||||
<link rel="prev" href="../generation.html" title="Generation">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>list_tie</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="tiers.html" title="Tiers">
|
||||
@@ -26,34 +26,34 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.generation.functions.list_tie"></a><a href="list_tie.html" title="list_tie">list_tie</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.generation.functions.list_tie.description"></a><h6>
|
||||
<a name="id529426"></a>
|
||||
<a name="id1043677"></a>
|
||||
<a href="list_tie.html#fusion.sequences.generation.functions.list_tie.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Constructs a tie using a <a href="../../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a> sequence.
|
||||
Constructs a tie using a <a href="../../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a> sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.functions.list_tie.synopsis"></a><h6>
|
||||
<a name="id529474"></a>
|
||||
<a name="id1043720"></a>
|
||||
<a href="list_tie.html#fusion.sequences.generation.functions.list_tie.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T0</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="keyword">typename</span> <span class="identifier">TN</span><span class="special">></span>
|
||||
<a href="../../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a><span class="special"><</span><span class="identifier">T0</span><span class="special">&,</span> <span class="identifier">T1</span><span class="special">&,...</span> <span class="identifier">TN</span><span class="special">&></span>
|
||||
<a href="../../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a><span class="special"><</span><span class="identifier">T0</span><span class="special">&,</span> <span class="identifier">T1</span><span class="special">&,...</span> <span class="identifier">TN</span><span class="special">&></span>
|
||||
<span class="identifier">list_tie</span><span class="special">(</span><span class="identifier">T0</span><span class="special">&</span> <span class="identifier">x0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">&</span> <span class="identifier">x1</span><span class="special">...</span> <span class="identifier">TN</span><span class="special">&</span> <span class="identifier">xN</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
|
||||
<tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
|
||||
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
|
||||
<code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_LIST_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.list_tie.parameters"></a><h6>
|
||||
<a name="id529784"></a>
|
||||
<a name="id1043995"></a>
|
||||
<a href="list_tie.html#fusion.sequences.generation.functions.list_tie.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -68,21 +68,21 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<td><code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<span class="identifier">x1</span><span class="special">,...</span>
|
||||
<span class="identifier">xN</span></tt></td>
|
||||
<span class="identifier">xN</span></code></td>
|
||||
<td>Instances
|
||||
of <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
of <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<span class="identifier">T1</span><span class="special">,...</span>
|
||||
<span class="identifier">TN</span></tt>
|
||||
<span class="identifier">TN</span></code>
|
||||
</td>
|
||||
<td>The
|
||||
arguments to <tt class="computeroutput"><span class="identifier">list_tie</span></tt>
|
||||
arguments to <code class="computeroutput"><span class="identifier">list_tie</span></code>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.generation.functions.list_tie.expression_semantics"></a><h6>
|
||||
<a name="id529926"></a>
|
||||
<a name="id1044121"></a>
|
||||
<a href="list_tie.html#fusion.sequences.generation.functions.list_tie.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -90,21 +90,21 @@
|
||||
<span class="identifier">list_tie</span><span class="special">(</span><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a><T0&, T1&,...
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="../../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a><T0&, T1&,...
|
||||
TN&>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a> of references from <tt class="computeroutput"><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a href="../../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a> of references from <code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.functions.list_tie.header"></a><h6>
|
||||
<a name="id530090"></a>
|
||||
<a name="id1044265"></a>
|
||||
<a href="list_tie.html#fusion.sequences.generation.functions.list_tie.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">generation</span><span class="special">/</span><span class="identifier">list_tie</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.list_tie.example"></a><h6>
|
||||
<a name="id530196"></a>
|
||||
<a name="id1044358"></a>
|
||||
<a href="list_tie.html#fusion.sequences.generation.functions.list_tie.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>make_cons</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="make_list.html" title="make_list">
|
||||
@@ -26,29 +26,29 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.generation.functions.make_cons"></a><a href="make_cons.html" title="make_cons">make_cons</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.generation.functions.make_cons.description"></a><h6>
|
||||
<a name="id524106"></a>
|
||||
<a name="id1038976"></a>
|
||||
<a href="make_cons.html#fusion.sequences.generation.functions.make_cons.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Create a <a href="../../containers/cons.html" title="cons"><tt class="computeroutput"><span class="identifier">cons</span></tt></a> from <tt class="computeroutput"><span class="identifier">car</span></tt>
|
||||
(<span class="emphasis"><em>head</em></span>) and optional <tt class="computeroutput"><span class="identifier">cdr</span></tt>
|
||||
Create a <a href="../../containers/cons.html" title="cons"><code class="computeroutput"><span class="identifier">cons</span></code></a> from <code class="computeroutput"><span class="identifier">car</span></code>
|
||||
(<span class="emphasis"><em>head</em></span>) and optional <code class="computeroutput"><span class="identifier">cdr</span></code>
|
||||
(<span class="emphasis"><em>tail</em></span>).
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.functions.make_cons.synopsis"></a><h6>
|
||||
<a name="id524182"></a>
|
||||
<a name="id1039044"></a>
|
||||
<a href="make_cons.html#fusion.sequences.generation.functions.make_cons.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Car</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/make_cons.html" title="make_cons"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_cons</span></tt></a><span class="special"><</span><span class="identifier">Car</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/make_cons.html" title="make_cons"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_cons</span></code></a><span class="special"><</span><span class="identifier">Car</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">make_cons</span><span class="special">(</span><span class="identifier">Car</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">car</span><span class="special">);</span>
|
||||
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Car</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Cdr</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/make_cons.html" title="make_cons"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_cons</span></tt></a><span class="special"><</span><span class="identifier">Car</span><span class="special">,</span> <span class="identifier">Cdr</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/make_cons.html" title="make_cons"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_cons</span></code></a><span class="special"><</span><span class="identifier">Car</span><span class="special">,</span> <span class="identifier">Cdr</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">make_cons</span><span class="special">(</span><span class="identifier">Car</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">car</span><span class="special">,</span> <span class="identifier">Cdr</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">cdr</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.make_cons.parameters"></a><h6>
|
||||
<a name="id524516"></a>
|
||||
<a name="id1039337"></a>
|
||||
<a href="make_cons.html#fusion.sequences.generation.functions.make_cons.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -64,17 +64,17 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">car</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">car</span></code></td>
|
||||
<td>Instance
|
||||
of <tt class="computeroutput"><span class="identifier">Car</span></tt>
|
||||
of <code class="computeroutput"><span class="identifier">Car</span></code>
|
||||
</td>
|
||||
<td>The
|
||||
list's head</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">cdr</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">cdr</span></code></td>
|
||||
<td>Instance
|
||||
of <tt class="computeroutput"><span class="identifier">Cdr</span></tt>
|
||||
of <code class="computeroutput"><span class="identifier">Cdr</span></code>
|
||||
</td>
|
||||
<td>The
|
||||
list's tail (optional)</td>
|
||||
@@ -82,7 +82,7 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.generation.functions.make_cons.expression_semantics"></a><h6>
|
||||
<a name="id524633"></a>
|
||||
<a name="id1039442"></a>
|
||||
<a href="make_cons.html#fusion.sequences.generation.functions.make_cons.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -90,34 +90,34 @@
|
||||
<span class="identifier">make_cons</span><span class="special">(</span><span class="identifier">car</span><span class="special">,</span> <span class="identifier">cdr</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../metafunctions/make_cons.html" title="make_cons"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_cons</span></tt></a><tt class="computeroutput"><span class="special"><</span><span class="identifier">Car</span><span class="special">,</span> <span class="identifier">Cdr</span><span class="special">>::</span><span class="identifier">type</span></tt> or <a href="../metafunctions/make_cons.html" title="make_cons"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_cons</span></tt></a><tt class="computeroutput"><span class="special"><</span><span class="identifier">Car</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="../metafunctions/make_cons.html" title="make_cons"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_cons</span></code></a><code class="computeroutput"><span class="special"><</span><span class="identifier">Car</span><span class="special">,</span> <span class="identifier">Cdr</span><span class="special">>::</span><span class="identifier">type</span></code> or <a href="../metafunctions/make_cons.html" title="make_cons"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_cons</span></code></a><code class="computeroutput"><span class="special"><</span><span class="identifier">Car</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../containers/cons.html" title="cons"><tt class="computeroutput"><span class="identifier">cons</span></tt></a> from <tt class="computeroutput"><span class="identifier">car</span></tt>
|
||||
(<span class="emphasis"><em>head</em></span>) and optional <tt class="computeroutput"><span class="identifier">cdr</span></tt>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a href="../../containers/cons.html" title="cons"><code class="computeroutput"><span class="identifier">cons</span></code></a> from <code class="computeroutput"><span class="identifier">car</span></code>
|
||||
(<span class="emphasis"><em>head</em></span>) and optional <code class="computeroutput"><span class="identifier">cdr</span></code>
|
||||
(<span class="emphasis"><em>tail</em></span>).
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.functions.make_cons.header"></a><h6>
|
||||
<a name="id524877"></a>
|
||||
<a name="id1039656"></a>
|
||||
<a href="make_cons.html#fusion.sequences.generation.functions.make_cons.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">generation</span><span class="special">/</span><span class="identifier">make_cons</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.make_cons.example"></a><h6>
|
||||
<a name="id524982"></a>
|
||||
<a name="id1039748"></a>
|
||||
<a href="make_cons.html#fusion.sequences.generation.functions.make_cons.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">make_cons</span><span class="special">(</span><span class="char">'x'</span><span class="special">,</span> <span class="identifier">make_cons</span><span class="special">(</span><span class="number">123</span><span class="special">))</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.make_cons.see_also"></a><h6>
|
||||
<a name="id525056"></a>
|
||||
<a name="id1039814"></a>
|
||||
<a href="make_cons.html#fusion.sequences.generation.functions.make_cons.see_also">See
|
||||
also</a>
|
||||
</h6>
|
||||
<p>
|
||||
<a href="../../../notes.html#fusion.notes.boost__ref"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">ref</span></tt></a>
|
||||
<a href="../../../notes.html#fusion.notes.boost__ref"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">ref</span></code></a>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>make_list</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="../functions.html" title="Functions">
|
||||
@@ -26,34 +26,34 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.generation.functions.make_list"></a><a href="make_list.html" title="make_list">make_list</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.generation.functions.make_list.description"></a><h6>
|
||||
<a name="id523079"></a>
|
||||
<a name="id1038072"></a>
|
||||
<a href="make_list.html#fusion.sequences.generation.functions.make_list.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Create a <a href="../../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a> from one or more values.
|
||||
Create a <a href="../../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a> from one or more values.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.functions.make_list.synopsis"></a><h6>
|
||||
<a name="id523126"></a>
|
||||
<a name="id1038114"></a>
|
||||
<a href="make_list.html#fusion.sequences.generation.functions.make_list.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T0</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="keyword">typename</span> <span class="identifier">TN</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/make_list.html" title="make_list"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_list</span></tt></a><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/make_list.html" title="make_list"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_list</span></code></a><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">make_list</span><span class="special">(</span><span class="identifier">T0</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">x0</span><span class="special">,</span> <span class="identifier">T1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">x1</span><span class="special">...</span> <span class="identifier">TN</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">xN</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
|
||||
<tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
|
||||
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
|
||||
<code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_LIST_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.make_list.parameters"></a><h6>
|
||||
<a name="id523482"></a>
|
||||
<a name="id1038428"></a>
|
||||
<a href="make_list.html#fusion.sequences.generation.functions.make_list.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -68,21 +68,21 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<td><code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<span class="identifier">x1</span><span class="special">,...</span>
|
||||
<span class="identifier">xN</span></tt></td>
|
||||
<span class="identifier">xN</span></code></td>
|
||||
<td>Instances
|
||||
of <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
of <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<span class="identifier">T1</span><span class="special">,...</span>
|
||||
<span class="identifier">TN</span></tt>
|
||||
<span class="identifier">TN</span></code>
|
||||
</td>
|
||||
<td>The
|
||||
arguments to <tt class="computeroutput"><span class="identifier">make_list</span></tt>
|
||||
arguments to <code class="computeroutput"><span class="identifier">make_list</span></code>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.generation.functions.make_list.expression_semantics"></a><h6>
|
||||
<a name="id523625"></a>
|
||||
<a name="id1038555"></a>
|
||||
<a href="make_list.html#fusion.sequences.generation.functions.make_list.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -90,32 +90,32 @@
|
||||
<span class="identifier">make_list</span><span class="special">(</span><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../metafunctions/make_list.html" title="make_list"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_list</span></tt></a><tt class="computeroutput"><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="../metafunctions/make_list.html" title="make_list"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_list</span></code></a><code class="computeroutput"><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a> from <tt class="computeroutput"><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a href="../../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a> from <code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.functions.make_list.header"></a><h6>
|
||||
<a name="id523845"></a>
|
||||
<a name="id1038747"></a>
|
||||
<a href="make_list.html#fusion.sequences.generation.functions.make_list.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">generation</span><span class="special">/</span><span class="identifier">make_list</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.make_list.example"></a><h6>
|
||||
<a name="id523951"></a>
|
||||
<a name="id1038840"></a>
|
||||
<a href="make_list.html#fusion.sequences.generation.functions.make_list.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">make_list</span><span class="special">(</span><span class="number">123</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">,</span> <span class="number">12.5</span><span class="special">)</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.make_list.see_also"></a><h6>
|
||||
<a name="id524027"></a>
|
||||
<a name="id1038908"></a>
|
||||
<a href="make_list.html#fusion.sequences.generation.functions.make_list.see_also">See
|
||||
also</a>
|
||||
</h6>
|
||||
<p>
|
||||
<a href="../../../notes.html#fusion.notes.boost__ref"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">ref</span></tt></a>
|
||||
<a href="../../../notes.html#fusion.notes.boost__ref"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">ref</span></code></a>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>make_map</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="make_set.html" title="make_set">
|
||||
@@ -26,38 +26,38 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.generation.functions.make_map"></a><a href="make_map.html" title="make_map">make_map</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.generation.functions.make_map.description"></a><h6>
|
||||
<a name="id527221"></a>
|
||||
<a name="id1041726"></a>
|
||||
<a href="make_map.html#fusion.sequences.generation.functions.make_map.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Create a <a href="../../containers/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a> from one or more key/data
|
||||
Create a <a href="../../containers/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a> from one or more key/data
|
||||
pairs.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.functions.make_map.synopsis"></a><h6>
|
||||
<a name="id527268"></a>
|
||||
<a name="id1041768"></a>
|
||||
<a href="make_map.html#fusion.sequences.generation.functions.make_map.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span>
|
||||
<span class="keyword">typename</span> <span class="identifier">K0</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">K1</span><span class="special">,...</span> <span class="keyword">typename</span> <span class="identifier">KN</span>
|
||||
<span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">T0</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="keyword">typename</span> <span class="identifier">TN</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/make_map.html" title="make_map"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_map</span></tt></a><span class="special"><</span><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">K0</span><span class="special">,...</span> <span class="identifier">KN</span><span class="special">,</span> <span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/make_map.html" title="make_map"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_map</span></code></a><span class="special"><</span><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">K0</span><span class="special">,...</span> <span class="identifier">KN</span><span class="special">,</span> <span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">make_map</span><span class="special">(</span><span class="identifier">T0</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">x0</span><span class="special">,</span> <span class="identifier">T1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">x1</span><span class="special">...</span> <span class="identifier">TN</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">xN</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
<sup>[<a name="id527641" href="#ftn.id527641">10</a>]</sup>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
|
||||
<tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
<sup>[<a name="id1042096" href="#ftn.id1042096">10</a>]</sup>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
|
||||
<code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_VECTOR_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.make_map.parameters"></a><h6>
|
||||
<a name="id527737"></a>
|
||||
<a name="id1042184"></a>
|
||||
<a href="make_map.html#fusion.sequences.generation.functions.make_map.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -73,31 +73,31 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">K0</span><span class="special">,</span>
|
||||
<td><code class="computeroutput"><span class="identifier">K0</span><span class="special">,</span>
|
||||
<span class="identifier">K1</span><span class="special">,...</span>
|
||||
<span class="identifier">KN</span></tt></td>
|
||||
<span class="identifier">KN</span></code></td>
|
||||
<td>The
|
||||
key types</td>
|
||||
<td>Keys associated with <tt class="computeroutput"><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span></tt>
|
||||
<td>Keys associated with <code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span></code>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<td><code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<span class="identifier">x1</span><span class="special">,...</span>
|
||||
<span class="identifier">xN</span></tt></td>
|
||||
<span class="identifier">xN</span></code></td>
|
||||
<td>Instances
|
||||
of <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
of <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<span class="identifier">T1</span><span class="special">,...</span>
|
||||
<span class="identifier">TN</span></tt>
|
||||
<span class="identifier">TN</span></code>
|
||||
</td>
|
||||
<td>The
|
||||
arguments to <tt class="computeroutput"><span class="identifier">make_map</span></tt>
|
||||
arguments to <code class="computeroutput"><span class="identifier">make_map</span></code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.generation.functions.make_map.expression_semantics"></a><h6>
|
||||
<a name="id527954"></a>
|
||||
<a name="id1042375"></a>
|
||||
<a href="make_map.html#fusion.sequences.generation.functions.make_map.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -105,48 +105,48 @@
|
||||
<span class="identifier">make_map</span><span class="special"><</span><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">K1</span><span class="special">,...</span> <span class="identifier">KN</span><span class="special">>(</span><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../metafunctions/make_map.html" title="make_map"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_map</span></tt></a><tt class="computeroutput"><span class="special"><</span><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">K0</span><span class="special">,...</span> <span class="identifier">KN</span><span class="special">,</span> <span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="../metafunctions/make_map.html" title="make_map"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_map</span></code></a><code class="computeroutput"><span class="special"><</span><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">K0</span><span class="special">,...</span> <span class="identifier">KN</span><span class="special">,</span> <span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../containers/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a> from <tt class="computeroutput"><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">K1</span><span class="special">,...</span> <span class="identifier">KN</span></tt>
|
||||
keys and <tt class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a href="../../containers/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a> from <code class="computeroutput"><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">K1</span><span class="special">,...</span> <span class="identifier">KN</span></code>
|
||||
keys and <code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<span class="identifier">x1</span><span class="special">,...</span>
|
||||
<span class="identifier">xN</span></tt> data.
|
||||
<span class="identifier">xN</span></code> data.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Precondition</b></span>: There may be no duplicate
|
||||
<span class="bold"><strong>Precondition</strong></span>: There may be no duplicate
|
||||
key types.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.functions.make_map.header"></a><h6>
|
||||
<a name="id528282"></a>
|
||||
<a name="id1042662"></a>
|
||||
<a href="make_map.html#fusion.sequences.generation.functions.make_map.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">generation</span><span class="special">/</span><span class="identifier">make_map</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.make_map.example"></a><h6>
|
||||
<a name="id528388"></a>
|
||||
<a name="id1042755"></a>
|
||||
<a href="make_map.html#fusion.sequences.generation.functions.make_map.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">make_map</span><span class="special">(</span>
|
||||
<a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">make_pair</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><span class="char">'X'</span><span class="special">)</span>
|
||||
<span class="special">,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">make_pair</span></tt></a><span class="special"><</span><span class="keyword">double</span><span class="special">>(</span><span class="string">"Men"</span><span class="special">))</span>
|
||||
<a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">make_pair</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">>(</span><span class="char">'X'</span><span class="special">)</span>
|
||||
<span class="special">,</span> <a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">make_pair</span></code></a><span class="special"><</span><span class="keyword">double</span><span class="special">>(</span><span class="string">"Men"</span><span class="special">))</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.make_map.see_also"></a><h6>
|
||||
<a name="id528518"></a>
|
||||
<a name="id1042871"></a>
|
||||
<a href="make_map.html#fusion.sequences.generation.functions.make_map.see_also">See
|
||||
also</a>
|
||||
</h6>
|
||||
<p>
|
||||
<a href="../../../notes.html#fusion.notes.boost__ref"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">ref</span></tt></a>,
|
||||
<a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a>
|
||||
<a href="../../../notes.html#fusion.notes.boost__ref"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">ref</span></code></a>,
|
||||
<a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></code></a>
|
||||
</p>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id527641" href="#id527641">10</a>] </sup>
|
||||
<tt class="computeroutput"><span class="identifier">map</span></tt> is implemented
|
||||
in terms of the vector. That is why we reuse <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id1042096" href="#id1042096">10</a>] </sup>
|
||||
<code class="computeroutput"><span class="identifier">map</span></code> is implemented
|
||||
in terms of the vector. That is why we reuse <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>make_set</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="make_vector.html" title="make_vector">
|
||||
@@ -26,35 +26,35 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.generation.functions.make_set"></a><a href="make_set.html" title="make_set">make_set</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.generation.functions.make_set.description"></a><h6>
|
||||
<a name="id526161"></a>
|
||||
<a name="id1040789"></a>
|
||||
<a href="make_set.html#fusion.sequences.generation.functions.make_set.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Create a <a href="../../containers/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a> from one or more values.
|
||||
Create a <a href="../../containers/set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a> from one or more values.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.functions.make_set.synopsis"></a><h6>
|
||||
<a name="id526208"></a>
|
||||
<a name="id1040831"></a>
|
||||
<a href="make_set.html#fusion.sequences.generation.functions.make_set.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T0</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="keyword">typename</span> <span class="identifier">TN</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/make_set.html" title="make_set"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_set</span></tt></a><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/make_set.html" title="make_set"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_set</span></code></a><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">make_set</span><span class="special">(</span><span class="identifier">T0</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">x0</span><span class="special">,</span> <span class="identifier">T1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">x1</span><span class="special">...</span> <span class="identifier">TN</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">xN</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
<sup>[<a name="id526492" href="#ftn.id526492">9</a>]</sup>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
|
||||
<tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
<sup>[<a name="id1041082" href="#ftn.id1041082">9</a>]</sup>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
|
||||
<code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_VECTOR_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.make_set.parameters"></a><h6>
|
||||
<a name="id526588"></a>
|
||||
<a name="id1041170"></a>
|
||||
<a href="make_set.html#fusion.sequences.generation.functions.make_set.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -69,21 +69,21 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<td><code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<span class="identifier">x1</span><span class="special">,...</span>
|
||||
<span class="identifier">xN</span></tt></td>
|
||||
<span class="identifier">xN</span></code></td>
|
||||
<td>Instances
|
||||
of <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
of <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<span class="identifier">T1</span><span class="special">,...</span>
|
||||
<span class="identifier">TN</span></tt>
|
||||
<span class="identifier">TN</span></code>
|
||||
</td>
|
||||
<td>The
|
||||
arguments to <tt class="computeroutput"><span class="identifier">make_set</span></tt>
|
||||
arguments to <code class="computeroutput"><span class="identifier">make_set</span></code>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.generation.functions.make_set.expression_semantics"></a><h6>
|
||||
<a name="id526732"></a>
|
||||
<a name="id1041297"></a>
|
||||
<a href="make_set.html#fusion.sequences.generation.functions.make_set.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -91,42 +91,42 @@
|
||||
<span class="identifier">make_set</span><span class="special">(</span><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../metafunctions/make_set.html" title="make_set"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_set</span></tt></a><tt class="computeroutput"><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="../metafunctions/make_set.html" title="make_set"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_set</span></code></a><code class="computeroutput"><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../containers/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a> from <tt class="computeroutput"><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a href="../../containers/set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a> from <code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span></code>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Precondition</b></span>: There may be no duplicate
|
||||
<span class="bold"><strong>Precondition</strong></span>: There may be no duplicate
|
||||
key types.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.functions.make_set.header"></a><h6>
|
||||
<a name="id526963"></a>
|
||||
<a name="id1041497"></a>
|
||||
<a href="make_set.html#fusion.sequences.generation.functions.make_set.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">generation</span><span class="special">/</span><span class="identifier">make_set</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.make_set.example"></a><h6>
|
||||
<a name="id527068"></a>
|
||||
<a name="id1041591"></a>
|
||||
<a href="make_set.html#fusion.sequences.generation.functions.make_set.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">make_set</span><span class="special">(</span><span class="number">123</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">,</span> <span class="number">12.5</span><span class="special">)</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.make_set.see_also"></a><h6>
|
||||
<a name="id527144"></a>
|
||||
<a name="id1041658"></a>
|
||||
<a href="make_set.html#fusion.sequences.generation.functions.make_set.see_also">See
|
||||
also</a>
|
||||
</h6>
|
||||
<p>
|
||||
<a href="../../../notes.html#fusion.notes.boost__ref"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">ref</span></tt></a>
|
||||
<a href="../../../notes.html#fusion.notes.boost__ref"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">ref</span></code></a>
|
||||
</p>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id526492" href="#id526492">9</a>] </sup>
|
||||
<tt class="computeroutput"><span class="identifier">set</span></tt> is implemented
|
||||
in terms of the vector. That is why we reuse <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id1041082" href="#id1041082">9</a>] </sup>
|
||||
<code class="computeroutput"><span class="identifier">set</span></code> is implemented
|
||||
in terms of the vector. That is why we reuse <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>make_vector</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="make_cons.html" title="make_cons">
|
||||
@@ -26,34 +26,34 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.generation.functions.make_vector"></a><a href="make_vector.html" title="make_vector">make_vector</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.generation.functions.make_vector.description"></a><h6>
|
||||
<a name="id525135"></a>
|
||||
<a name="id1039885"></a>
|
||||
<a href="make_vector.html#fusion.sequences.generation.functions.make_vector.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Create a <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a> from one or more values.
|
||||
Create a <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> from one or more values.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.functions.make_vector.synopsis"></a><h6>
|
||||
<a name="id525182"></a>
|
||||
<a name="id1039928"></a>
|
||||
<a href="make_vector.html#fusion.sequences.generation.functions.make_vector.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T0</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="keyword">typename</span> <span class="identifier">TN</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_vector</span></tt></a><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_vector</span></code></a><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">make_vector</span><span class="special">(</span><span class="identifier">T0</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">x0</span><span class="special">,</span> <span class="identifier">T1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">x1</span><span class="special">...</span> <span class="identifier">TN</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">xN</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
|
||||
<tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
|
||||
<code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_VECTOR_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.make_vector.parameters"></a><h6>
|
||||
<a name="id525536"></a>
|
||||
<a name="id1040241"></a>
|
||||
<a href="make_vector.html#fusion.sequences.generation.functions.make_vector.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -68,21 +68,21 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<td><code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<span class="identifier">x1</span><span class="special">,...</span>
|
||||
<span class="identifier">xN</span></tt></td>
|
||||
<span class="identifier">xN</span></code></td>
|
||||
<td>Instances
|
||||
of <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
of <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<span class="identifier">T1</span><span class="special">,...</span>
|
||||
<span class="identifier">TN</span></tt>
|
||||
<span class="identifier">TN</span></code>
|
||||
</td>
|
||||
<td>The
|
||||
arguments to <tt class="computeroutput"><span class="identifier">make_vector</span></tt>
|
||||
arguments to <code class="computeroutput"><span class="identifier">make_vector</span></code>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.generation.functions.make_vector.expression_semantics"></a><h6>
|
||||
<a name="id525679"></a>
|
||||
<a name="id1040368"></a>
|
||||
<a href="make_vector.html#fusion.sequences.generation.functions.make_vector.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -90,32 +90,32 @@
|
||||
<span class="identifier">make_vector</span><span class="special">(</span><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../metafunctions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_vector</span></tt></a><tt class="computeroutput"><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="../metafunctions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_vector</span></code></a><code class="computeroutput"><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a> from <tt class="computeroutput"><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> from <code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.functions.make_vector.header"></a><h6>
|
||||
<a name="id525900"></a>
|
||||
<a name="id1040560"></a>
|
||||
<a href="make_vector.html#fusion.sequences.generation.functions.make_vector.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">generation</span><span class="special">/</span><span class="identifier">make_vector</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.make_vector.example"></a><h6>
|
||||
<a name="id526006"></a>
|
||||
<a name="id1040653"></a>
|
||||
<a href="make_vector.html#fusion.sequences.generation.functions.make_vector.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">make_vector</span><span class="special">(</span><span class="number">123</span><span class="special">,</span> <span class="string">"hello"</span><span class="special">,</span> <span class="number">12.5</span><span class="special">)</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.make_vector.see_also"></a><h6>
|
||||
<a name="id526083"></a>
|
||||
<a name="id1040720"></a>
|
||||
<a href="make_vector.html#fusion.sequences.generation.functions.make_vector.see_also">See
|
||||
also</a>
|
||||
</h6>
|
||||
<p>
|
||||
<a href="../../../notes.html#fusion.notes.boost__ref"><tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">ref</span></tt></a>
|
||||
<a href="../../../notes.html#fusion.notes.boost__ref"><code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">ref</span></code></a>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Tiers</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="make_map.html" title="make_map">
|
||||
@@ -32,8 +32,8 @@
|
||||
flavors.
|
||||
</p>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li><a href="list_tie.html" title="list_tie"><tt class="computeroutput"><span class="identifier">list_tie</span></tt></a></li>
|
||||
<li><a href="vector_tie.html" title="vector_tie"><tt class="computeroutput"><span class="identifier">vector_tie</span></tt></a></li>
|
||||
<li><a href="list_tie.html" title="list_tie"><code class="computeroutput"><span class="identifier">list_tie</span></code></a></li>
|
||||
<li><a href="vector_tie.html" title="vector_tie"><code class="computeroutput"><span class="identifier">vector_tie</span></code></a></li>
|
||||
</ul></div>
|
||||
<p>
|
||||
Example:
|
||||
@@ -41,14 +41,14 @@
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">int</span> <span class="identifier">i</span><span class="special">;</span> <span class="keyword">char</span> <span class="identifier">c</span><span class="special">;</span> <span class="keyword">double</span> <span class="identifier">d</span><span class="special">;</span>
|
||||
<span class="special">...</span>
|
||||
<a href="vector_tie.html" title="vector_tie"><tt class="computeroutput"><span class="identifier">vector_tie</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">,</span> <span class="identifier">c</span><span class="special">,</span> <span class="identifier">a</span><span class="special">);</span>
|
||||
<a href="vector_tie.html" title="vector_tie"><code class="computeroutput"><span class="identifier">vector_tie</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">,</span> <span class="identifier">c</span><span class="special">,</span> <span class="identifier">a</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
The <a href="vector_tie.html" title="vector_tie"><tt class="computeroutput"><span class="identifier">vector_tie</span></tt></a> function creates
|
||||
a <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>
|
||||
of type <tt class="computeroutput"><a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">&,</span> <span class="keyword">char</span><span class="special">&,</span> <span class="keyword">double</span><span class="special">&></span></tt>.
|
||||
The same result could be achieved with the call <a href="make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a>(<a href="http://www.boost.org/doc/html/ref.html" target="_top"><tt class="computeroutput"><span class="identifier">ref</span></tt></a>(i), <a href="http://www.boost.org/doc/html/ref.html" target="_top"><tt class="computeroutput"><span class="identifier">ref</span></tt></a>(c), <a href="http://www.boost.org/doc/html/ref.html" target="_top"><tt class="computeroutput"><span class="identifier">ref</span></tt></a>(a))
|
||||
<sup>[<a name="id528951" href="#ftn.id528951">11</a>]</sup>
|
||||
The <a href="vector_tie.html" title="vector_tie"><code class="computeroutput"><span class="identifier">vector_tie</span></code></a> function creates
|
||||
a <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a>
|
||||
of type <code class="computeroutput"><a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">&,</span> <span class="keyword">char</span><span class="special">&,</span> <span class="keyword">double</span><span class="special">&></span></code>.
|
||||
The same result could be achieved with the call <a href="make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a>(<a href="http://www.boost.org/doc/html/ref.html" target="_top"><code class="computeroutput"><span class="identifier">ref</span></code></a>(i), <a href="http://www.boost.org/doc/html/ref.html" target="_top"><code class="computeroutput"><span class="identifier">ref</span></code></a>(c), <a href="http://www.boost.org/doc/html/ref.html" target="_top"><code class="computeroutput"><span class="identifier">ref</span></code></a>(a))
|
||||
<sup>[<a name="id1043255" href="#ftn.id1043255">11</a>]</sup>
|
||||
.
|
||||
</p>
|
||||
<p>
|
||||
@@ -57,7 +57,7 @@
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">int</span> <span class="identifier">i</span><span class="special">;</span> <span class="keyword">char</span> <span class="identifier">c</span><span class="special">;</span> <span class="keyword">double</span> <span class="identifier">d</span><span class="special">;</span>
|
||||
<a href="vector_tie.html" title="vector_tie"><tt class="computeroutput"><span class="identifier">vector_tie</span></tt></a><span class="special">(</span><span class="identifier">i</span><span class="special">,</span> <span class="identifier">c</span><span class="special">,</span> <span class="identifier">d</span><span class="special">)</span> <span class="special">=</span> <a href="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">5.5</span><span class="special">);</span>
|
||||
<a href="vector_tie.html" title="vector_tie"><code class="computeroutput"><span class="identifier">vector_tie</span></code></a><span class="special">(</span><span class="identifier">i</span><span class="special">,</span> <span class="identifier">c</span><span class="special">,</span> <span class="identifier">d</span><span class="special">)</span> <span class="special">=</span> <a href="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">5.5</span><span class="special">);</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">i</span> <span class="special"><<</span> <span class="string">" "</span> <span class="special"><<</span> <span class="identifier">c</span> <span class="special"><<</span> <span class="string">" "</span> <span class="special"><<</span> <span class="identifier">d</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
@@ -66,7 +66,7 @@
|
||||
when calling functions which return sequences.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.functions.tiers.ignore"></a><h6>
|
||||
<a name="id529254"></a>
|
||||
<a name="id1043525"></a>
|
||||
<a href="tiers.html#fusion.sequences.generation.functions.tiers.ignore">Ignore</a>
|
||||
</h6>
|
||||
<p>
|
||||
@@ -77,13 +77,13 @@
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">char</span> <span class="identifier">c</span><span class="special">;</span>
|
||||
<a href="vector_tie.html" title="vector_tie"><tt class="computeroutput"><span class="identifier">vector_tie</span></tt></a><span class="special">(</span><span class="identifier">ignore</span><span class="special">,</span> <span class="identifier">c</span><span class="special">)</span> <span class="special">=</span> <a href="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>
|
||||
<a href="vector_tie.html" title="vector_tie"><code class="computeroutput"><span class="identifier">vector_tie</span></code></a><span class="special">(</span><span class="identifier">ignore</span><span class="special">,</span> <span class="identifier">c</span><span class="special">)</span> <span class="special">=</span> <a href="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>
|
||||
</pre>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id528951" href="#id528951">11</a>] </sup>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id1043255" href="#id1043255">11</a>] </sup>
|
||||
see <a href="http://www.boost.org/doc/html/ref.html" target="_top">Boost.Ref</a>
|
||||
for details about <tt class="computeroutput"><span class="identifier">ref</span></tt>
|
||||
for details about <code class="computeroutput"><span class="identifier">ref</span></code>
|
||||
</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>vector_tie</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="list_tie.html" title="list_tie">
|
||||
@@ -26,34 +26,34 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.generation.functions.vector_tie"></a><a href="vector_tie.html" title="vector_tie">vector_tie</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.generation.functions.vector_tie.description"></a><h6>
|
||||
<a name="id530340"></a>
|
||||
<a name="id1044486"></a>
|
||||
<a href="vector_tie.html#fusion.sequences.generation.functions.vector_tie.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Constructs a tie using a <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a> sequence.
|
||||
Constructs a tie using a <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.functions.vector_tie.synopsis"></a><h6>
|
||||
<a name="id530388"></a>
|
||||
<a name="id1044528"></a>
|
||||
<a href="vector_tie.html#fusion.sequences.generation.functions.vector_tie.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T0</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="keyword">typename</span> <span class="identifier">TN</span><span class="special">></span>
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="identifier">T0</span><span class="special">&,</span> <span class="identifier">T1</span><span class="special">&,...</span> <span class="identifier">TN</span><span class="special">&></span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="identifier">T0</span><span class="special">&,</span> <span class="identifier">T1</span><span class="special">&,...</span> <span class="identifier">TN</span><span class="special">&></span>
|
||||
<span class="identifier">vector_tie</span><span class="special">(</span><span class="identifier">T0</span><span class="special">&</span> <span class="identifier">x0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">&</span> <span class="identifier">x1</span><span class="special">...</span> <span class="identifier">TN</span><span class="special">&</span> <span class="identifier">xN</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
|
||||
<tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
|
||||
<code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_VECTOR_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.vector_tie.parameters"></a><h6>
|
||||
<a name="id530697"></a>
|
||||
<a name="id1044803"></a>
|
||||
<a href="vector_tie.html#fusion.sequences.generation.functions.vector_tie.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -68,21 +68,21 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<td><code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<span class="identifier">x1</span><span class="special">,...</span>
|
||||
<span class="identifier">xN</span></tt></td>
|
||||
<span class="identifier">xN</span></code></td>
|
||||
<td>Instances
|
||||
of <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
of <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<span class="identifier">T1</span><span class="special">,...</span>
|
||||
<span class="identifier">TN</span></tt>
|
||||
<span class="identifier">TN</span></code>
|
||||
</td>
|
||||
<td>The
|
||||
arguments to <tt class="computeroutput"><span class="identifier">vector_tie</span></tt>
|
||||
arguments to <code class="computeroutput"><span class="identifier">vector_tie</span></code>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.generation.functions.vector_tie.expression_semantics"></a><h6>
|
||||
<a name="id530839"></a>
|
||||
<a name="id1044929"></a>
|
||||
<a href="vector_tie.html#fusion.sequences.generation.functions.vector_tie.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -90,21 +90,21 @@
|
||||
<span class="identifier">vector_tie</span><span class="special">(</span><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><T0&, T1&,...
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><T0&, T1&,...
|
||||
TN&>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a> of references from <tt class="computeroutput"><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> of references from <code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span> <span class="identifier">x1</span><span class="special">,...</span> <span class="identifier">xN</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.functions.vector_tie.header"></a><h6>
|
||||
<a name="id531004"></a>
|
||||
<a name="id1045073"></a>
|
||||
<a href="vector_tie.html#fusion.sequences.generation.functions.vector_tie.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">generation</span><span class="special">/</span><span class="identifier">vector_tie</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.functions.vector_tie.example"></a><h6>
|
||||
<a name="id531110"></a>
|
||||
<a name="id1045166"></a>
|
||||
<a href="vector_tie.html#fusion.sequences.generation.functions.vector_tie.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>MetaFunctions</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../generation.html" title="Generation">
|
||||
<link rel="prev" href="functions/vector_tie.html" title="vector_tie">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>list_tie</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="MetaFunctions">
|
||||
<link rel="prev" href="make_map.html" title="make_map">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.generation.metafunctions.list_tie"></a><a href="list_tie.html" title="list_tie">list_tie</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.generation.metafunctions.list_tie.description"></a><h6>
|
||||
<a name="id535516"></a>
|
||||
<a name="id1066527"></a>
|
||||
<a href="list_tie.html#fusion.sequences.generation.metafunctions.list_tie.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/list_tie.html" title="list_tie"><tt class="computeroutput"><span class="identifier">list_tie</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/list_tie.html" title="list_tie"><code class="computeroutput"><span class="identifier">list_tie</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.metafunctions.list_tie.synopsis"></a><h6>
|
||||
<a name="id535564"></a>
|
||||
<a name="id1066569"></a>
|
||||
<a href="list_tie.html#fusion.sequences.generation.metafunctions.list_tie.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -41,18 +41,18 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">list_tie</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
|
||||
<tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
|
||||
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
|
||||
<code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_LIST_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.metafunctions.list_tie.parameters"></a><h6>
|
||||
<a name="id535762"></a>
|
||||
<a name="id1066746"></a>
|
||||
<a href="list_tie.html#fusion.sequences.generation.metafunctions.list_tie.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -67,17 +67,17 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<td><code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<span class="identifier">T1</span><span class="special">,...</span>
|
||||
<span class="identifier">TN</span></tt></td>
|
||||
<span class="identifier">TN</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>The arguments to <tt class="computeroutput"><span class="identifier">list_tie</span></tt>
|
||||
<td>The arguments to <code class="computeroutput"><span class="identifier">list_tie</span></code>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.generation.metafunctions.list_tie.expression_semantics"></a><h6>
|
||||
<a name="id535874"></a>
|
||||
<a name="id1066845"></a>
|
||||
<a href="list_tie.html#fusion.sequences.generation.metafunctions.list_tie.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -85,21 +85,21 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">list_tie</span><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a><T0&, T1&,...
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="../../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a><T0&, T1&,...
|
||||
TN&>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a> of references from <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a href="../../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a> of references from <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.metafunctions.list_tie.header"></a><h6>
|
||||
<a name="id536059"></a>
|
||||
<a name="id1067006"></a>
|
||||
<a href="list_tie.html#fusion.sequences.generation.metafunctions.list_tie.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">generation</span><span class="special">/</span><span class="identifier">list_tie</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.metafunctions.list_tie.example"></a><h6>
|
||||
<a name="id536165"></a>
|
||||
<a name="id1067099"></a>
|
||||
<a href="list_tie.html#fusion.sequences.generation.metafunctions.list_tie.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>make_cons</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="MetaFunctions">
|
||||
<link rel="prev" href="make_list.html" title="make_list">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.generation.metafunctions.make_cons"></a><a href="make_cons.html" title="make_cons">make_cons</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_cons.description"></a><h6>
|
||||
<a name="id532063"></a>
|
||||
<a name="id1046005"></a>
|
||||
<a href="make_cons.html#fusion.sequences.generation.metafunctions.make_cons.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/make_cons.html" title="make_cons"><tt class="computeroutput"><span class="identifier">make_cons</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/make_cons.html" title="make_cons"><code class="computeroutput"><span class="identifier">make_cons</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_cons.synopsis"></a><h6>
|
||||
<a name="id532111"></a>
|
||||
<a name="id1046047"></a>
|
||||
<a href="make_cons.html#fusion.sequences.generation.metafunctions.make_cons.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -41,7 +41,7 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">make_cons</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_cons.parameters"></a><h6>
|
||||
<a name="id532221"></a>
|
||||
<a name="id1046143"></a>
|
||||
<a href="make_cons.html#fusion.sequences.generation.metafunctions.make_cons.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -57,15 +57,15 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Car</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Car</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>The list's head type</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Cdr</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Cdr</span></code></td>
|
||||
<td>A
|
||||
<tt class="computeroutput"><span class="identifier">cons</span></tt>
|
||||
<code class="computeroutput"><span class="identifier">cons</span></code>
|
||||
</td>
|
||||
<td>The
|
||||
list's tail type (optional)</td>
|
||||
@@ -73,7 +73,7 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_cons.expression_semantics"></a><h6>
|
||||
<a name="id532330"></a>
|
||||
<a name="id1046242"></a>
|
||||
<a href="make_cons.html#fusion.sequences.generation.metafunctions.make_cons.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -81,24 +81,24 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_cons</span><span class="special"><</span><span class="identifier">Car</span><span class="special">,</span> <span class="identifier">Cdr</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: A <a href="../../containers/cons.html" title="cons"><tt class="computeroutput"><span class="identifier">cons</span></tt></a> with head element, <tt class="computeroutput"><span class="identifier">Car</span></tt>, of type converted following the
|
||||
<span class="bold"><strong>Return type</strong></span>: A <a href="../../containers/cons.html" title="cons"><code class="computeroutput"><span class="identifier">cons</span></code></a> with head element, <code class="computeroutput"><span class="identifier">Car</span></code>, of type converted following the
|
||||
rules for <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
|
||||
conversion</em></span></a>, and tail, <tt class="computeroutput"><span class="identifier">Cdr</span></tt>.
|
||||
conversion</em></span></a>, and tail, <code class="computeroutput"><span class="identifier">Cdr</span></code>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../containers/cons.html" title="cons"><tt class="computeroutput"><span class="identifier">cons</span></tt></a> from <tt class="computeroutput"><span class="identifier">Car</span></tt>
|
||||
(<span class="emphasis"><em>head</em></span>) and optional <tt class="computeroutput"><span class="identifier">Cdr</span></tt>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a href="../../containers/cons.html" title="cons"><code class="computeroutput"><span class="identifier">cons</span></code></a> from <code class="computeroutput"><span class="identifier">Car</span></code>
|
||||
(<span class="emphasis"><em>head</em></span>) and optional <code class="computeroutput"><span class="identifier">Cdr</span></code>
|
||||
(<span class="emphasis"><em>tail</em></span>).
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_cons.header"></a><h6>
|
||||
<a name="id532526"></a>
|
||||
<a name="id1046413"></a>
|
||||
<a href="make_cons.html#fusion.sequences.generation.metafunctions.make_cons.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">generation</span><span class="special">/</span><span class="identifier">make_cons</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_cons.example"></a><h6>
|
||||
<a name="id532632"></a>
|
||||
<a name="id1046506"></a>
|
||||
<a href="make_cons.html#fusion.sequences.generation.metafunctions.make_cons.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>make_list</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" 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">
|
||||
<a name="fusion.sequences.generation.metafunctions.make_list"></a><a href="make_list.html" title="make_list">make_list</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_list.description"></a><h6>
|
||||
<a name="id531275"></a>
|
||||
<a name="id1045312"></a>
|
||||
<a href="make_list.html#fusion.sequences.generation.metafunctions.make_list.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/make_list.html" title="make_list"><tt class="computeroutput"><span class="identifier">make_list</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/make_list.html" title="make_list"><code class="computeroutput"><span class="identifier">make_list</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_list.synopsis"></a><h6>
|
||||
<a name="id531324"></a>
|
||||
<a name="id1045355"></a>
|
||||
<a href="make_list.html#fusion.sequences.generation.metafunctions.make_list.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -41,18 +41,18 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">make_list</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
|
||||
<tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
|
||||
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
|
||||
<code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_LIST_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_list.parameters"></a><h6>
|
||||
<a name="id531521"></a>
|
||||
<a name="id1045531"></a>
|
||||
<a href="make_list.html#fusion.sequences.generation.metafunctions.make_list.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -67,17 +67,17 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<td><code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<span class="identifier">T1</span><span class="special">,...</span>
|
||||
<span class="identifier">TN</span></tt></td>
|
||||
<span class="identifier">TN</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>Template arguments to <tt class="computeroutput"><span class="identifier">make_list</span></tt>
|
||||
<td>Template arguments to <code class="computeroutput"><span class="identifier">make_list</span></code>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_list.expression_semantics"></a><h6>
|
||||
<a name="id531634"></a>
|
||||
<a name="id1045631"></a>
|
||||
<a href="make_list.html#fusion.sequences.generation.metafunctions.make_list.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -85,22 +85,22 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_list</span><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: A <a href="../../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a> with elements of types
|
||||
<span class="bold"><strong>Return type</strong></span>: A <a href="../../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a> with elements of types
|
||||
converted following the rules for <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
|
||||
conversion</em></span></a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../containers/list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a> from <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a href="../../containers/list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a> from <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_list.header"></a><h6>
|
||||
<a name="id531826"></a>
|
||||
<a name="id1045797"></a>
|
||||
<a href="make_list.html#fusion.sequences.generation.metafunctions.make_list.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">generation</span><span class="special">/</span><span class="identifier">make_list</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_list.example"></a><h6>
|
||||
<a name="id531933"></a>
|
||||
<a name="id1045890"></a>
|
||||
<a href="make_list.html#fusion.sequences.generation.metafunctions.make_list.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>make_map</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="MetaFunctions">
|
||||
<link rel="prev" href="make_set.html" title="make_set">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.generation.metafunctions.make_map"></a><a href="make_map.html" title="make_map">make_map</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_map.description"></a><h6>
|
||||
<a name="id534357"></a>
|
||||
<a name="id1048029"></a>
|
||||
<a href="make_map.html#fusion.sequences.generation.metafunctions.make_map.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/make_map.html" title="make_map"><tt class="computeroutput"><span class="identifier">make_map</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/make_map.html" title="make_map"><code class="computeroutput"><span class="identifier">make_map</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_map.synopsis"></a><h6>
|
||||
<a name="id534406"></a>
|
||||
<a name="id1048072"></a>
|
||||
<a href="make_map.html#fusion.sequences.generation.metafunctions.make_map.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -43,19 +43,19 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">make_map</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
<sup>[<a name="id534590" href="#ftn.id534590">13</a>]</sup>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
|
||||
<tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
<sup>[<a name="id1048234" href="#ftn.id1048234">13</a>]</sup>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
|
||||
<code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_VECTOR_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_map.parameters"></a><h6>
|
||||
<a name="id534687"></a>
|
||||
<a name="id1048322"></a>
|
||||
<a href="make_map.html#fusion.sequences.generation.metafunctions.make_map.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -71,27 +71,27 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">K0</span><span class="special">,</span>
|
||||
<td><code class="computeroutput"><span class="identifier">K0</span><span class="special">,</span>
|
||||
<span class="identifier">K1</span><span class="special">,...</span>
|
||||
<span class="identifier">KN</span></tt></td>
|
||||
<span class="identifier">KN</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>Keys associated with <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></tt>
|
||||
<td>Keys associated with <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></code>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<td><code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<span class="identifier">T1</span><span class="special">,...</span>
|
||||
<span class="identifier">TN</span></tt></td>
|
||||
<span class="identifier">TN</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>Data associated with keys <tt class="computeroutput"><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">K1</span><span class="special">,...</span> <span class="identifier">KN</span></tt>
|
||||
<td>Data associated with keys <code class="computeroutput"><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">K1</span><span class="special">,...</span> <span class="identifier">KN</span></code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_map.expression_semantics"></a><h6>
|
||||
<a name="id534895"></a>
|
||||
<a name="id1048505"></a>
|
||||
<a href="make_map.html#fusion.sequences.generation.metafunctions.make_map.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -99,44 +99,44 @@
|
||||
<span class="identifier">resulf_of</span><span class="special">::</span><span class="identifier">make_map</span><span class="special"><</span><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">K1</span><span class="special">,...</span> <span class="identifier">KN</span><span class="special">,</span> <span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="make_map.html" title="make_map"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_map</span></tt></a><tt class="computeroutput"><span class="special"><</span><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">K0</span><span class="special">,...</span> <span class="identifier">KN</span><span class="special">,</span> <span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="make_map.html" title="make_map"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_map</span></code></a><code class="computeroutput"><span class="special"><</span><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">K0</span><span class="special">,...</span> <span class="identifier">KN</span><span class="special">,</span> <span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: A <a href="../../containers/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a> with <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a> elements where the <tt class="computeroutput"><span class="identifier">second_type</span></tt> is converted following
|
||||
<span class="bold"><strong>Semantics</strong></span>: A <a href="../../containers/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a> with <a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></code></a> elements where the <code class="computeroutput"><span class="identifier">second_type</span></code> is converted following
|
||||
the rules for <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
|
||||
conversion</em></span></a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Precondition</b></span>: There may be no duplicate
|
||||
<span class="bold"><strong>Precondition</strong></span>: There may be no duplicate
|
||||
key types.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_map.header"></a><h6>
|
||||
<a name="id535226"></a>
|
||||
<a name="id1066272"></a>
|
||||
<a href="make_map.html#fusion.sequences.generation.metafunctions.make_map.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">generation</span><span class="special">/</span><span class="identifier">make_map</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_map.example"></a><h6>
|
||||
<a name="id535333"></a>
|
||||
<a name="id1066365"></a>
|
||||
<a href="make_map.html#fusion.sequences.generation.metafunctions.make_map.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_map</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">char</span><span class="special">,</span> <span class="keyword">double</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_map.see_also"></a><h6>
|
||||
<a name="id535436"></a>
|
||||
<a name="id1066456"></a>
|
||||
<a href="make_map.html#fusion.sequences.generation.metafunctions.make_map.see_also">See
|
||||
also</a>
|
||||
</h6>
|
||||
<p>
|
||||
<a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a>
|
||||
<a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></code></a>
|
||||
</p>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id534590" href="#id534590">13</a>] </sup>
|
||||
<tt class="computeroutput"><span class="identifier">map</span></tt> is implemented
|
||||
in terms of the vector. That is why we reuse <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id1048234" href="#id1048234">13</a>] </sup>
|
||||
<code class="computeroutput"><span class="identifier">map</span></code> is implemented
|
||||
in terms of the vector. That is why we reuse <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>make_set</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="MetaFunctions">
|
||||
<link rel="prev" href="make_vector.html" title="make_vector">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.generation.metafunctions.make_set"></a><a href="make_set.html" title="make_set">make_set</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_set.description"></a><h6>
|
||||
<a name="id533553"></a>
|
||||
<a name="id1047319"></a>
|
||||
<a href="make_set.html#fusion.sequences.generation.metafunctions.make_set.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/make_set.html" title="make_set"><tt class="computeroutput"><span class="identifier">make_set</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/make_set.html" title="make_set"><code class="computeroutput"><span class="identifier">make_set</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_set.synopsis"></a><h6>
|
||||
<a name="id533601"></a>
|
||||
<a name="id1047361"></a>
|
||||
<a href="make_set.html#fusion.sequences.generation.metafunctions.make_set.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -41,19 +41,19 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">make_set</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
<sup>[<a name="id533731" href="#ftn.id533731">12</a>]</sup>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
|
||||
<tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
<sup>[<a name="id1047475" href="#ftn.id1047475">12</a>]</sup>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
|
||||
<code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_VECTOR_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_set.parameters"></a><h6>
|
||||
<a name="id533827"></a>
|
||||
<a name="id1047563"></a>
|
||||
<a href="make_set.html#fusion.sequences.generation.metafunctions.make_set.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -68,17 +68,17 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<td><code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<span class="identifier">T1</span><span class="special">,...</span>
|
||||
<span class="identifier">TN</span></tt></td>
|
||||
<span class="identifier">TN</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>The arguments to <tt class="computeroutput"><span class="identifier">make_set</span></tt>
|
||||
<td>The arguments to <code class="computeroutput"><span class="identifier">make_set</span></code>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_set.expression_semantics"></a><h6>
|
||||
<a name="id533940"></a>
|
||||
<a name="id1047663"></a>
|
||||
<a href="make_set.html#fusion.sequences.generation.metafunctions.make_set.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -86,26 +86,26 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_set</span><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: A <a href="../../containers/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a> with elements of types converted
|
||||
<span class="bold"><strong>Return type</strong></span>: A <a href="../../containers/set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a> with elements of types converted
|
||||
following the rules for <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
|
||||
conversion</em></span></a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../containers/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a> from <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a href="../../containers/set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a> from <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></code>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Precondition</b></span>: There may be no duplicate
|
||||
<span class="bold"><strong>Precondition</strong></span>: There may be no duplicate
|
||||
key types.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_set.header"></a><h6>
|
||||
<a name="id534138"></a>
|
||||
<a name="id1047837"></a>
|
||||
<a href="make_set.html#fusion.sequences.generation.metafunctions.make_set.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">generation</span><span class="special">/</span><span class="identifier">make_set</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_set.example"></a><h6>
|
||||
<a name="id534244"></a>
|
||||
<a name="id1047929"></a>
|
||||
<a href="make_set.html#fusion.sequences.generation.metafunctions.make_set.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -113,9 +113,9 @@
|
||||
</pre>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id533731" href="#id533731">12</a>] </sup>
|
||||
<tt class="computeroutput"><span class="identifier">set</span></tt> is implemented
|
||||
in terms of the vector. That is why we reuse <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id1047475" href="#id1047475">12</a>] </sup>
|
||||
<code class="computeroutput"><span class="identifier">set</span></code> is implemented
|
||||
in terms of the vector. That is why we reuse <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>make_vector</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="MetaFunctions">
|
||||
<link rel="prev" href="make_cons.html" title="make_cons">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.generation.metafunctions.make_vector"></a><a href="make_vector.html" title="make_vector">make_vector</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_vector.description"></a><h6>
|
||||
<a name="id532767"></a>
|
||||
<a name="id1046625"></a>
|
||||
<a href="make_vector.html#fusion.sequences.generation.metafunctions.make_vector.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_vector.synopsis"></a><h6>
|
||||
<a name="id532816"></a>
|
||||
<a name="id1046668"></a>
|
||||
<a href="make_vector.html#fusion.sequences.generation.metafunctions.make_vector.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -41,18 +41,18 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">make_vector</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
|
||||
<tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
|
||||
<code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_VECTOR_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_vector.parameters"></a><h6>
|
||||
<a name="id533016"></a>
|
||||
<a name="id1046846"></a>
|
||||
<a href="make_vector.html#fusion.sequences.generation.metafunctions.make_vector.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -67,17 +67,17 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<td><code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<span class="identifier">T1</span><span class="special">,...</span>
|
||||
<span class="identifier">TN</span></tt></td>
|
||||
<span class="identifier">TN</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>Template arguments to <tt class="computeroutput"><span class="identifier">make_vector</span></tt>
|
||||
<td>Template arguments to <code class="computeroutput"><span class="identifier">make_vector</span></code>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_vector.expression_semantics"></a><h6>
|
||||
<a name="id533128"></a>
|
||||
<a name="id1046945"></a>
|
||||
<a href="make_vector.html#fusion.sequences.generation.metafunctions.make_vector.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -85,22 +85,22 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_vector</span><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: A <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a> with elements of types
|
||||
<span class="bold"><strong>Return type</strong></span>: A <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> with elements of types
|
||||
converted following the rules for <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
|
||||
conversion</em></span></a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a> from <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> from <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_vector.header"></a><h6>
|
||||
<a name="id533317"></a>
|
||||
<a name="id1047111"></a>
|
||||
<a href="make_vector.html#fusion.sequences.generation.metafunctions.make_vector.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">generation</span><span class="special">/</span><span class="identifier">make_list</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.metafunctions.make_vector.example"></a><h6>
|
||||
<a name="id533423"></a>
|
||||
<a name="id1047205"></a>
|
||||
<a href="make_vector.html#fusion.sequences.generation.metafunctions.make_vector.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>vector_tie</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="MetaFunctions">
|
||||
<link rel="prev" href="list_tie.html" title="list_tie">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.generation.metafunctions.vector_tie"></a><a href="vector_tie.html" title="vector_tie">vector_tie</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.generation.metafunctions.vector_tie.description"></a><h6>
|
||||
<a name="id536270"></a>
|
||||
<a name="id1067194"></a>
|
||||
<a href="vector_tie.html#fusion.sequences.generation.metafunctions.vector_tie.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/vector_tie.html" title="vector_tie"><tt class="computeroutput"><span class="identifier">vector_tie</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/vector_tie.html" title="vector_tie"><code class="computeroutput"><span class="identifier">vector_tie</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.metafunctions.vector_tie.synopsis"></a><h6>
|
||||
<a name="id536319"></a>
|
||||
<a name="id1067236"></a>
|
||||
<a href="vector_tie.html#fusion.sequences.generation.metafunctions.vector_tie.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -41,18 +41,18 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">vector_tie</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
|
||||
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
|
||||
<tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
|
||||
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
|
||||
to <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
|
||||
<code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
|
||||
before including any Fusion header to change the default. Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_VECTOR_SIZE</span> <span class="number">20</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.metafunctions.vector_tie.parameters"></a><h6>
|
||||
<a name="id536516"></a>
|
||||
<a name="id1067412"></a>
|
||||
<a href="vector_tie.html#fusion.sequences.generation.metafunctions.vector_tie.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -67,17 +67,17 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<td><code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
|
||||
<span class="identifier">T1</span><span class="special">,...</span>
|
||||
<span class="identifier">TN</span></tt></td>
|
||||
<span class="identifier">TN</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>The arguments to <tt class="computeroutput"><span class="identifier">vector_tie</span></tt>
|
||||
<td>The arguments to <code class="computeroutput"><span class="identifier">vector_tie</span></code>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.generation.metafunctions.vector_tie.expression_semantics"></a><h6>
|
||||
<a name="id536629"></a>
|
||||
<a name="id1067511"></a>
|
||||
<a href="vector_tie.html#fusion.sequences.generation.metafunctions.vector_tie.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -85,21 +85,21 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">vector_tie</span><span class="special"><</span><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">>::</span><span class="identifier">type</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><T0&, T1&,...
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><T0&, T1&,...
|
||||
TN&>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a> of references from <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> of references from <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.generation.metafunctions.vector_tie.header"></a><h6>
|
||||
<a name="id536814"></a>
|
||||
<a name="id1067673"></a>
|
||||
<a href="vector_tie.html#fusion.sequences.generation.metafunctions.vector_tie.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">generation</span><span class="special">/</span><span class="identifier">vector_tie</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.generation.metafunctions.vector_tie.example"></a><h6>
|
||||
<a name="id536920"></a>
|
||||
<a name="id1067766"></a>
|
||||
<a href="vector_tie.html#fusion.sequences.generation.metafunctions.vector_tie.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Intrinsics</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../sequences.html" title="Sequences">
|
||||
<link rel="prev" href="adapted/boost__variant.html" title="boost::variant">
|
||||
@@ -32,11 +32,11 @@
|
||||
Intrinsic functions, unlike <a href="../algorithms.html" title="Algorithms">Algorithms</a>,
|
||||
are not generic across the full <a href="../sequences.html" title="Sequences">Sequence</a>
|
||||
repertoire. They need to be implemented for each Fusion <a href="../sequences.html" title="Sequences">Sequence</a>
|
||||
<sup>[<a name="id503793" href="#ftn.id503793">5</a>]</sup>
|
||||
<sup>[<a name="id1003528" href="#ftn.id1003528">5</a>]</sup>
|
||||
.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.header"></a><h4>
|
||||
<a name="id503812"></a>
|
||||
<a name="id1003546"></a>
|
||||
<a href="intrinsics.html#fusion.sequences.intrinsics.header">Header</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
@@ -44,7 +44,7 @@
|
||||
</pre>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id503793" href="#id503793">5</a>] </sup>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id1003528" href="#id1003528">5</a>] </sup>
|
||||
In practice, many of intrinsic functions have default implementations
|
||||
that will work in majority of cases
|
||||
</p></div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Functions</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../intrinsics.html" title="Intrinsics">
|
||||
<link rel="prev" href="../intrinsics.html" title="Intrinsics">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>at</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="size.html" title="size">
|
||||
@@ -26,27 +26,27 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.functions.at"></a><a href="at.html" title="at">at</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.at.description"></a><h6>
|
||||
<a name="id508868"></a>
|
||||
<a name="id1008027"></a>
|
||||
<a href="at.html#fusion.sequences.intrinsics.functions.at.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the N-th element from the beginning of the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.at.synopsis"></a><h6>
|
||||
<a name="id508900"></a>
|
||||
<a name="id1008056"></a>
|
||||
<a href="at.html#fusion.sequences.intrinsics.functions.at.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">N</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at.html" title="at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at.html" title="at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">at</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">N</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at.html" title="at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at.html" title="at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">at</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.at.parameters"></a><h6>
|
||||
<a name="id509231"></a>
|
||||
<a name="id1008347"></a>
|
||||
<a href="at.html#fusion.sequences.intrinsics.functions.at.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -62,7 +62,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">seq</span></code></td>
|
||||
<td>Model
|
||||
of <a href="../../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
@@ -71,7 +71,7 @@
|
||||
<td>The sequence we wish to investigate.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">N</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">N</span></code></td>
|
||||
<td>An
|
||||
<a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a>
|
||||
integral constant</td>
|
||||
@@ -81,7 +81,7 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.at.expression_semantics"></a><h6>
|
||||
<a name="id509346"></a>
|
||||
<a name="id1008450"></a>
|
||||
<a href="at.html#fusion.sequences.intrinsics.functions.at.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -89,38 +89,38 @@
|
||||
<span class="identifier">at</span><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Returns a reference to
|
||||
the N-th element from the beginning of the sequence <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">seq</span></tt> is mutable and
|
||||
<tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></tt>, where <tt class="computeroutput"><span class="identifier">e</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: Returns a reference to
|
||||
the N-th element from the beginning of the sequence <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">seq</span></code> is mutable and
|
||||
<code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></code>, where <code class="computeroutput"><span class="identifier">e</span></code>
|
||||
is the N-th element from the beginning of the sequence, is a valid expression.
|
||||
Else, returns a type convertable to the N-th element from the beginning
|
||||
of the sequence.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Precondition</b></span>: <tt class="computeroutput"><span class="number">0</span>
|
||||
<span class="special"><=</span> <span class="identifier">N</span><span class="special">::</span><span class="identifier">value</span> <span class="special"><</span> <a href="size.html" title="size"><tt class="computeroutput"><span class="identifier">size</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
<span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput"><span class="number">0</span>
|
||||
<span class="special"><=</span> <span class="identifier">N</span><span class="special">::</span><span class="identifier">value</span> <span class="special"><</span> <a href="size.html" title="size"><code class="computeroutput"><span class="identifier">size</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Equivalent to
|
||||
<span class="bold"><strong>Semantics</strong></span>: Equivalent to
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<a href="../../../iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="../../../iterators/functions/advance.html" title="advance"><tt class="computeroutput"><span class="identifier">advance</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><a href="begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)))</span>
|
||||
<a href="../../../iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a href="../../../iterators/functions/advance.html" title="advance"><code class="computeroutput"><span class="identifier">advance</span></code></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><a href="begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)))</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.at.header"></a><h6>
|
||||
<a name="id509655"></a>
|
||||
<a name="id1008721"></a>
|
||||
<a href="at.html#fusion.sequences.intrinsics.functions.at.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">at</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.at.example"></a><h6>
|
||||
<a name="id509758"></a>
|
||||
<a name="id1008812"></a>
|
||||
<a href="at.html#fusion.sequences.intrinsics.functions.at.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</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">></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>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</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">></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><span class="identifier">at</span><span class="special"><</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">int_</span><span class="special"><</span><span class="number">1</span><span class="special">></span> <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>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>at_c</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="at.html" title="at">
|
||||
@@ -26,27 +26,27 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.functions.at_c"></a><a href="at_c.html" title="at_c">at_c</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.at_c.description"></a><h6>
|
||||
<a name="id509988"></a>
|
||||
<a name="id1009017"></a>
|
||||
<a href="at_c.html#fusion.sequences.intrinsics.functions.at_c.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the N-th element from the beginning of the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.at_c.synopsis"></a><h6>
|
||||
<a name="id510020"></a>
|
||||
<a name="id1009046"></a>
|
||||
<a href="at_c.html#fusion.sequences.intrinsics.functions.at_c.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">int</span> <span class="identifier">N</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">at_c</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">int</span> <span class="identifier">N</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">at_c</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.at_c.parameters"></a><h6>
|
||||
<a name="id510354"></a>
|
||||
<a name="id1009340"></a>
|
||||
<a href="at_c.html#fusion.sequences.intrinsics.functions.at_c.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -62,7 +62,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">seq</span></code></td>
|
||||
<td>Model
|
||||
of <a href="../../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
@@ -71,7 +71,7 @@
|
||||
<td>The sequence we wish to investigate.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">N</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">N</span></code></td>
|
||||
<td>An
|
||||
integral constant</td>
|
||||
<td>An index from the beginning of
|
||||
@@ -80,7 +80,7 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.at_c.expression_semantics"></a><h6>
|
||||
<a name="id510462"></a>
|
||||
<a name="id1009437"></a>
|
||||
<a href="at_c.html#fusion.sequences.intrinsics.functions.at_c.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -88,39 +88,39 @@
|
||||
<span class="identifier">at_c</span><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Returns a reference to
|
||||
the N-th element from the beginning of the sequence <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">seq</span></tt> is mutable and
|
||||
<tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></tt>, where <tt class="computeroutput"><span class="identifier">e</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: Returns a reference to
|
||||
the N-th element from the beginning of the sequence <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">seq</span></code> is mutable and
|
||||
<code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></code>, where <code class="computeroutput"><span class="identifier">e</span></code>
|
||||
is the N-th element from the beginning of the sequence, is a valid expression.
|
||||
Else, returns a type convertable to the N-th element from the beginning
|
||||
of the sequence.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Precondition</b></span>: <tt class="computeroutput"><span class="number">0</span>
|
||||
<span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput"><span class="number">0</span>
|
||||
<span class="special"><=</span> <span class="identifier">N</span>
|
||||
<span class="special"><</span> <a href="size.html" title="size"><tt class="computeroutput"><span class="identifier">size</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>
|
||||
<span class="special"><</span> <a href="size.html" title="size"><code class="computeroutput"><span class="identifier">size</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Equivalent to
|
||||
<span class="bold"><strong>Semantics</strong></span>: Equivalent to
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<a href="../../../iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="../../../iterators/functions/advance.html" title="advance"><tt class="computeroutput"><span class="identifier">advance</span></tt></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><a href="begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a><span class="special">(</span><span class="identifier">s</span><span class="special">)))</span>
|
||||
<a href="../../../iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a href="../../../iterators/functions/advance.html" title="advance"><code class="computeroutput"><span class="identifier">advance</span></code></a><span class="special"><</span><span class="identifier">N</span><span class="special">>(</span><a href="begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a><span class="special">(</span><span class="identifier">s</span><span class="special">)))</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.at_c.header"></a><h6>
|
||||
<a name="id510762"></a>
|
||||
<a name="id1009700"></a>
|
||||
<a href="at_c.html#fusion.sequences.intrinsics.functions.at_c.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">at_c</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.at_c.example"></a><h6>
|
||||
<a name="id510866"></a>
|
||||
<a name="id1009793"></a>
|
||||
<a href="at_c.html#fusion.sequences.intrinsics.functions.at_c.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</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">></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>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</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">></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><span class="identifier">at_c</span><span class="special"><</span><span class="number">1</span><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>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>at_key</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="has_key.html" title="has_key">
|
||||
@@ -26,27 +26,27 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.functions.at_key"></a><a href="at_key.html" title="at_key">at_key</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.at_key.description"></a><h6>
|
||||
<a name="id511855"></a>
|
||||
<a name="id1010669"></a>
|
||||
<a href="at_key.html#fusion.sequences.intrinsics.functions.at_key.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the element associated with a Key from the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.at_key.synopsis"></a><h6>
|
||||
<a name="id511887"></a>
|
||||
<a name="id1010698"></a>
|
||||
<a href="at_key.html#fusion.sequences.intrinsics.functions.at_key.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Key</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">at_key</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Key</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">at_key</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.at_key.parameters"></a><h6>
|
||||
<a name="id512220"></a>
|
||||
<a name="id1010991"></a>
|
||||
<a href="at_key.html#fusion.sequences.intrinsics.functions.at_key.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -62,7 +62,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">seq</span></code></td>
|
||||
<td>Model
|
||||
of <a href="../../concepts/associative_sequence.html" title="Associative
|
||||
Sequence">Associative
|
||||
@@ -71,7 +71,7 @@
|
||||
<td>The sequence we wish to investigate.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Key</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Key</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>The queried key.</td>
|
||||
@@ -79,7 +79,7 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.at_key.expression_semantics"></a><h6>
|
||||
<a name="id512327"></a>
|
||||
<a name="id1011089"></a>
|
||||
<a href="at_key.html#fusion.sequences.intrinsics.functions.at_key.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -87,34 +87,34 @@
|
||||
<span class="identifier">at_key</span><span class="special"><</span><span class="identifier">Key</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Returns a reference to
|
||||
the element associated with Key from the sequence <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">seq</span></tt> is mutable and
|
||||
<tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></tt>, where <tt class="computeroutput"><span class="identifier">e</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: Returns a reference to
|
||||
the element associated with Key from the sequence <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">seq</span></code> is mutable and
|
||||
<code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></code>, where <code class="computeroutput"><span class="identifier">e</span></code>
|
||||
is the element associated with Key, is a valid expression. Else, returns
|
||||
a type convertable to the element associated with Key.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Precondition</b></span>: <tt class="computeroutput"><span class="identifier">has_key</span><span class="special"><</span><span class="identifier">Key</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">true</span></tt>
|
||||
<span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput"><span class="identifier">has_key</span><span class="special"><</span><span class="identifier">Key</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">true</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the element associated
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the element associated
|
||||
with Key.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.at_key.header"></a><h6>
|
||||
<a name="id512526"></a>
|
||||
<a name="id1011266"></a>
|
||||
<a href="at_key.html#fusion.sequences.intrinsics.functions.at_key.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">at_key</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.at_key.example"></a><h6>
|
||||
<a name="id512632"></a>
|
||||
<a name="id1011359"></a>
|
||||
<a href="at_key.html#fusion.sequences.intrinsics.functions.at_key.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">bool</span><span class="special">></span> <span class="identifier">s</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'x'</span><span class="special">,</span> <span class="keyword">true</span><span class="special">);</span>
|
||||
<a href="../../containers/set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">bool</span><span class="special">></span> <span class="identifier">s</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'x'</span><span class="special">,</span> <span class="keyword">true</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">at_key</span><span class="special"><</span><span class="keyword">char</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span> <span class="special">==</span> <span class="char">'x'</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>back</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="front.html" title="front">
|
||||
@@ -26,27 +26,27 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.functions.back"></a><a href="back.html" title="back">back</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.back.description"></a><h6>
|
||||
<a name="id507317"></a>
|
||||
<a name="id1006654"></a>
|
||||
<a href="back.html#fusion.sequences.intrinsics.functions.back.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the last element in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.back.synopsis"></a><h6>
|
||||
<a name="id507349"></a>
|
||||
<a name="id1006682"></a>
|
||||
<a href="back.html#fusion.sequences.intrinsics.functions.back.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/back.html" title="back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/back.html" title="back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">back</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/back.html" title="back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/back.html" title="back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">back</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.back.parameters"></a><h6>
|
||||
<a name="id507624"></a>
|
||||
<a name="id1006925"></a>
|
||||
<a href="back.html#fusion.sequences.intrinsics.functions.back.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -61,7 +61,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">seq</span></code></td>
|
||||
<td>Model
|
||||
of <a href="../../concepts/bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">Bidirectional
|
||||
@@ -71,7 +71,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.back.expression_semantics"></a><h6>
|
||||
<a name="id507711"></a>
|
||||
<a name="id1007002"></a>
|
||||
<a href="back.html#fusion.sequences.intrinsics.functions.back.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -79,34 +79,34 @@
|
||||
<span class="identifier">back</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Returns a reference to
|
||||
the last element in the sequence <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">seq</span></tt> is mutable and
|
||||
<tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></tt>, where <tt class="computeroutput"><span class="identifier">e</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: Returns a reference to
|
||||
the last element in the sequence <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">seq</span></code> is mutable and
|
||||
<code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></code>, where <code class="computeroutput"><span class="identifier">e</span></code>
|
||||
is the last element in the sequence, is a valid expression. Else, returns
|
||||
a type convertable to the last element in the sequence.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Precondition</b></span>: <tt class="computeroutput"><a href="empty.html" title="empty"><tt class="computeroutput"><span class="identifier">empty</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">false</span></tt>
|
||||
<span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput"><a href="empty.html" title="empty"><code class="computeroutput"><span class="identifier">empty</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">false</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the last element
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the last element
|
||||
in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.back.header"></a><h6>
|
||||
<a name="id507900"></a>
|
||||
<a name="id1007169"></a>
|
||||
<a href="back.html#fusion.sequences.intrinsics.functions.back.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">back</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.back.example"></a><h6>
|
||||
<a name="id508006"></a>
|
||||
<a name="id1007263"></a>
|
||||
<a href="back.html#fusion.sequences.intrinsics.functions.back.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</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">></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>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</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">></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><span class="identifier">back</span><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>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>begin</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="../functions.html" title="Functions">
|
||||
@@ -26,27 +26,27 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.functions.begin"></a><a href="begin.html" title="begin">begin</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.begin.description"></a><h6>
|
||||
<a name="id503946"></a>
|
||||
<a name="id1003663"></a>
|
||||
<a href="begin.html#fusion.sequences.intrinsics.functions.begin.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns an iterator pointing to the first element in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.begin.synopsis"></a><h6>
|
||||
<a name="id503978"></a>
|
||||
<a name="id1003692"></a>
|
||||
<a href="begin.html#fusion.sequences.intrinsics.functions.begin.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../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"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../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"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">begin</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../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"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../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"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">begin</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.begin.parameters"></a><h6>
|
||||
<a name="id504254"></a>
|
||||
<a name="id1003935"></a>
|
||||
<a href="begin.html#fusion.sequences.intrinsics.functions.begin.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -61,7 +61,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">seq</span></code></td>
|
||||
<td>Model
|
||||
of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -72,7 +72,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.begin.expression_semantics"></a><h6>
|
||||
<a name="id504342"></a>
|
||||
<a name="id1004015"></a>
|
||||
<a href="begin.html#fusion.sequences.intrinsics.functions.begin.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -80,41 +80,41 @@
|
||||
<span class="identifier">begin</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../../../iterators/concepts/forward_iterator.html" title="Forward
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="../../../iterators/concepts/forward_iterator.html" title="Forward
|
||||
Iterator">Forward
|
||||
Iterator</a> if <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a> else, <a href="../../../iterators/concepts/bidirectional_iterator.html" title="Bidirectional
|
||||
Iterator">Bidirectional
|
||||
Iterator</a> if <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a href="../../concepts/bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">Bidirectional
|
||||
Sequence</a> else, <a href="../../../iterators/concepts/random_access_iterator.html" title="Random
|
||||
Access Iterator">Random
|
||||
Access Iterator</a> if <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
Access Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a href="../../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns an iterator pointing
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns an iterator pointing
|
||||
to the first element in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.begin.header"></a><h6>
|
||||
<a name="id504508"></a>
|
||||
<a name="id1004161"></a>
|
||||
<a href="begin.html#fusion.sequences.intrinsics.functions.begin.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">begin</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.begin.example"></a><h6>
|
||||
<a name="id504613"></a>
|
||||
<a name="id1004254"></a>
|
||||
<a href="begin.html#fusion.sequences.intrinsics.functions.begin.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</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">></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="../../../iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><span class="identifier">begin</span><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>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</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">></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="../../../iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><span class="identifier">begin</span><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>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>empty</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="end.html" title="end">
|
||||
@@ -26,25 +26,25 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.functions.empty"></a><a href="empty.html" title="empty">empty</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.empty.description"></a><h6>
|
||||
<a name="id505724"></a>
|
||||
<a name="id1005239"></a>
|
||||
<a href="empty.html#fusion.sequences.intrinsics.functions.empty.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns a type convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
that evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt> if
|
||||
the sequence is empty, else, evaluates to <tt class="computeroutput"><span class="keyword">false</span></tt>.
|
||||
Returns a type convertible to <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
that evaluates to <code class="computeroutput"><span class="keyword">true</span></code> if
|
||||
the sequence is empty, else, evaluates to <code class="computeroutput"><span class="keyword">false</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.empty.synopsis"></a><h6>
|
||||
<a name="id505786"></a>
|
||||
<a name="id1005294"></a>
|
||||
<a href="empty.html#fusion.sequences.intrinsics.functions.empty.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/empty.html" title="empty"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/empty.html" title="empty"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">empty</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.empty.parameters"></a><h6>
|
||||
<a name="id505940"></a>
|
||||
<a name="id1005430"></a>
|
||||
<a href="empty.html#fusion.sequences.intrinsics.functions.empty.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -59,7 +59,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">seq</span></code></td>
|
||||
<td>Model
|
||||
of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -69,7 +69,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.empty.expression_semantics"></a><h6>
|
||||
<a name="id506027"></a>
|
||||
<a name="id1005510"></a>
|
||||
<a href="empty.html#fusion.sequences.intrinsics.functions.empty.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -77,25 +77,25 @@
|
||||
<span class="identifier">empty</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>.
|
||||
<span class="bold"><strong>Return type</strong></span>: Convertible to <code class="computeroutput"><span class="keyword">bool</span></code>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt> if the sequence is empty, else, evaluates
|
||||
to <tt class="computeroutput"><span class="keyword">false</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Evaluates to <code class="computeroutput"><span class="keyword">true</span></code> if the sequence is empty, else, evaluates
|
||||
to <code class="computeroutput"><span class="keyword">false</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.empty.header"></a><h6>
|
||||
<a name="id506134"></a>
|
||||
<a name="id1005517"></a>
|
||||
<a href="empty.html#fusion.sequences.intrinsics.functions.empty.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">empty</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.empty.example"></a><h6>
|
||||
<a name="id506240"></a>
|
||||
<a name="id1005697"></a>
|
||||
<a href="empty.html#fusion.sequences.intrinsics.functions.empty.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</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">></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>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</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">></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><span class="identifier">empty</span><span class="special">(</span><span class="identifier">v</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">false</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>end</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="begin.html" title="begin">
|
||||
@@ -26,27 +26,27 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.functions.end"></a><a href="end.html" title="end">end</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.end.description"></a><h6>
|
||||
<a name="id504827"></a>
|
||||
<a name="id1004444"></a>
|
||||
<a href="end.html#fusion.sequences.intrinsics.functions.end.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns an iterator pointing to one element past the end of the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.end.synopsis"></a><h6>
|
||||
<a name="id504859"></a>
|
||||
<a name="id1004473"></a>
|
||||
<a href="end.html#fusion.sequences.intrinsics.functions.end.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../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"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../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"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">end</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../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"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../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"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">end</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.end.parameters"></a><h6>
|
||||
<a name="id505134"></a>
|
||||
<a name="id1004715"></a>
|
||||
<a href="end.html#fusion.sequences.intrinsics.functions.end.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -61,7 +61,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">seq</span></code></td>
|
||||
<td>Model
|
||||
of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -72,7 +72,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.end.expression_semantics"></a><h6>
|
||||
<a name="id505221"></a>
|
||||
<a name="id1004793"></a>
|
||||
<a href="end.html#fusion.sequences.intrinsics.functions.end.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -80,41 +80,41 @@
|
||||
<span class="identifier">end</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../../../iterators/concepts/forward_iterator.html" title="Forward
|
||||
<span class="bold"><strong>Return type</strong></span>: <a href="../../../iterators/concepts/forward_iterator.html" title="Forward
|
||||
Iterator">Forward
|
||||
Iterator</a> if <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
Sequence</a> else, <a href="../../../iterators/concepts/bidirectional_iterator.html" title="Bidirectional
|
||||
Iterator">Bidirectional
|
||||
Iterator</a> if <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a href="../../concepts/bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">Bidirectional
|
||||
Sequence</a> else, <a href="../../../iterators/concepts/random_access_iterator.html" title="Random
|
||||
Access Iterator">Random
|
||||
Access Iterator</a> if <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
Access Iterator</a> if <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
is a <a href="../../concepts/random_access_sequence.html" title="Random
|
||||
Access Sequence">Random
|
||||
Access Sequence</a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns an iterator pointing
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns an iterator pointing
|
||||
to one element past the end of the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.end.header"></a><h6>
|
||||
<a name="id505386"></a>
|
||||
<a name="id1004940"></a>
|
||||
<a href="end.html#fusion.sequences.intrinsics.functions.end.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">end</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.end.example"></a><h6>
|
||||
<a name="id505491"></a>
|
||||
<a name="id1005033"></a>
|
||||
<a href="end.html#fusion.sequences.intrinsics.functions.end.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</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">></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="../../../iterators/functions/deref.html" title="deref"><tt class="computeroutput"><span class="identifier">deref</span></tt></a><span class="special">(</span><a href="../../../iterators/functions/prior.html" title="prior"><tt class="computeroutput"><span class="identifier">prior</span></tt></a><span class="special">(</span><span class="identifier">end</span><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>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</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">></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="../../../iterators/functions/deref.html" title="deref"><code class="computeroutput"><span class="identifier">deref</span></code></a><span class="special">(</span><a href="../../../iterators/functions/prior.html" title="prior"><code class="computeroutput"><span class="identifier">prior</span></code></a><span class="special">(</span><span class="identifier">end</span><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>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>front</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="empty.html" title="empty">
|
||||
@@ -26,27 +26,27 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.functions.front"></a><a href="front.html" title="front">front</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.front.description"></a><h6>
|
||||
<a name="id506435"></a>
|
||||
<a name="id1005870"></a>
|
||||
<a href="front.html#fusion.sequences.intrinsics.functions.front.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the first element in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.front.synopsis"></a><h6>
|
||||
<a name="id506465"></a>
|
||||
<a name="id1005899"></a>
|
||||
<a href="front.html#fusion.sequences.intrinsics.functions.front.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/front.html" title="front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/front.html" title="front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">front</span><span class="special">(</span><span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/front.html" title="front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/front.html" title="front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></code></a><span class="special"><</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">front</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.front.parameters"></a><h6>
|
||||
<a name="id506741"></a>
|
||||
<a name="id1006141"></a>
|
||||
<a href="front.html#fusion.sequences.intrinsics.functions.front.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -61,7 +61,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">seq</span></code></td>
|
||||
<td>Model
|
||||
of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -71,7 +71,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.front.expression_semantics"></a><h6>
|
||||
<a name="id506829"></a>
|
||||
<a name="id1006221"></a>
|
||||
<a href="front.html#fusion.sequences.intrinsics.functions.front.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -79,34 +79,34 @@
|
||||
<span class="identifier">front</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Returns a reference to
|
||||
the first element in the sequence <tt class="computeroutput"><span class="identifier">seq</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">seq</span></tt> is mutable and
|
||||
<tt class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></tt>, where <tt class="computeroutput"><span class="identifier">e</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: Returns a reference to
|
||||
the first element in the sequence <code class="computeroutput"><span class="identifier">seq</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">seq</span></code> is mutable and
|
||||
<code class="computeroutput"><span class="identifier">e</span> <span class="special">=</span>
|
||||
<span class="identifier">o</span></code>, where <code class="computeroutput"><span class="identifier">e</span></code>
|
||||
is the first element in the sequence, is a valid expression. Else, returns
|
||||
a type convertable to the first element in the sequence.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Precondition</b></span>: <tt class="computeroutput"><a href="empty.html" title="empty"><tt class="computeroutput"><span class="identifier">empty</span></tt></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">false</span></tt>
|
||||
<span class="bold"><strong>Precondition</strong></span>: <code class="computeroutput"><a href="empty.html" title="empty"><code class="computeroutput"><span class="identifier">empty</span></code></a><span class="special">(</span><span class="identifier">seq</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">false</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the first element
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the first element
|
||||
in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.front.header"></a><h6>
|
||||
<a name="id507017"></a>
|
||||
<a name="id1006388"></a>
|
||||
<a href="front.html#fusion.sequences.intrinsics.functions.front.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">front</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.front.example"></a><h6>
|
||||
<a name="id507123"></a>
|
||||
<a name="id1006481"></a>
|
||||
<a href="front.html#fusion.sequences.intrinsics.functions.front.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</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">></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>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</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">></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><span class="identifier">front</span><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>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>has_key</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="at_c.html" title="at_c">
|
||||
@@ -26,26 +26,26 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.functions.has_key"></a><a href="has_key.html" title="has_key">has_key</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.has_key.description"></a><h6>
|
||||
<a name="id511070"></a>
|
||||
<a name="id1009974"></a>
|
||||
<a href="has_key.html#fusion.sequences.intrinsics.functions.has_key.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns a type convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
that evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt> if
|
||||
Returns a type convertible to <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
that evaluates to <code class="computeroutput"><span class="keyword">true</span></code> if
|
||||
the sequence contains an element associated with a Key, else, evaluates
|
||||
to <tt class="computeroutput"><span class="keyword">false</span></tt>.
|
||||
to <code class="computeroutput"><span class="keyword">false</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.has_key.synopsis"></a><h6>
|
||||
<a name="id511134"></a>
|
||||
<a name="id1010032"></a>
|
||||
<a href="has_key.html#fusion.sequences.intrinsics.functions.has_key.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Key</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../metafunctions/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></code></a><span class="special"><</span><span class="identifier">Sequence</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">has_key</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.has_key.parameters"></a><h6>
|
||||
<a name="id511316"></a>
|
||||
<a name="id1010193"></a>
|
||||
<a href="has_key.html#fusion.sequences.intrinsics.functions.has_key.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -61,7 +61,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">seq</span></code></td>
|
||||
<td>Model
|
||||
of <a href="../../concepts/associative_sequence.html" title="Associative
|
||||
Sequence">Associative
|
||||
@@ -70,7 +70,7 @@
|
||||
<td>The sequence we wish to investigate.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Key</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Key</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>The queried key.</td>
|
||||
@@ -78,7 +78,7 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.has_key.expression_semantics"></a><h6>
|
||||
<a name="id511425"></a>
|
||||
<a name="id1010290"></a>
|
||||
<a href="has_key.html#fusion.sequences.intrinsics.functions.has_key.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -86,25 +86,25 @@
|
||||
<span class="identifier">has_key</span><span class="special"><</span><span class="identifier">Key</span><span class="special">>(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Convertible to <tt class="computeroutput"><span class="keyword">bool</span></tt>.
|
||||
<span class="bold"><strong>Return type</strong></span>: Convertible to <code class="computeroutput"><span class="keyword">bool</span></code>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Evaluates to <tt class="computeroutput"><span class="keyword">true</span></tt> if the sequence contains an element
|
||||
associated with Key, else, evaluates to <tt class="computeroutput"><span class="keyword">false</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Evaluates to <code class="computeroutput"><span class="keyword">true</span></code> if the sequence contains an element
|
||||
associated with Key, else, evaluates to <code class="computeroutput"><span class="keyword">false</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.has_key.header"></a><h6>
|
||||
<a name="id511543"></a>
|
||||
<a name="id1010297"></a>
|
||||
<a href="has_key.html#fusion.sequences.intrinsics.functions.has_key.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">has_key</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.has_key.example"></a><h6>
|
||||
<a name="id511648"></a>
|
||||
<a name="id1010487"></a>
|
||||
<a href="has_key.html#fusion.sequences.intrinsics.functions.has_key.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">bool</span><span class="special">></span> <span class="identifier">s</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'x'</span><span class="special">,</span> <span class="keyword">true</span><span class="special">);</span>
|
||||
<a href="../../containers/set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">bool</span><span class="special">></span> <span class="identifier">s</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'x'</span><span class="special">,</span> <span class="keyword">true</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">has_key</span><span class="special"><</span><span class="keyword">char</span><span class="special">>(</span><span class="identifier">s</span><span class="special">)</span> <span class="special">==</span> <span class="keyword">true</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>size</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="back.html" title="back">
|
||||
@@ -26,24 +26,24 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.functions.size"></a><a href="size.html" title="size">size</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.size.description"></a><h6>
|
||||
<a name="id508201"></a>
|
||||
<a name="id1007436"></a>
|
||||
<a href="size.html#fusion.sequences.intrinsics.functions.size.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns a type convertible to <tt class="computeroutput"><span class="keyword">int</span></tt>
|
||||
Returns a type convertible to <code class="computeroutput"><span class="keyword">int</span></code>
|
||||
that evaluates the number of elements in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.size.synopsis"></a><h6>
|
||||
<a name="id508243"></a>
|
||||
<a name="id1007473"></a>
|
||||
<a href="size.html#fusion.sequences.intrinsics.functions.size.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">></span>
|
||||
<span class="keyword">typename</span> <a href="../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"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="keyword">typename</span> <a href="../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"><</span><span class="identifier">Sequence</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
<span class="identifier">size</span><span class="special">(</span><span class="identifier">Sequence</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.size.parameters"></a><h6>
|
||||
<a name="id508397"></a>
|
||||
<a name="id1007609"></a>
|
||||
<a href="size.html#fusion.sequences.intrinsics.functions.size.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -58,7 +58,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">seq</span></code></td>
|
||||
<td>Model
|
||||
of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -68,7 +68,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.intrinsics.functions.size.expression_semantics"></a><h6>
|
||||
<a name="id508483"></a>
|
||||
<a name="id1007686"></a>
|
||||
<a href="size.html#fusion.sequences.intrinsics.functions.size.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -76,25 +76,25 @@
|
||||
<span class="identifier">size</span><span class="special">(</span><span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Convertible to <tt class="computeroutput"><span class="keyword">int</span></tt>.
|
||||
<span class="bold"><strong>Return type</strong></span>: Convertible to <code class="computeroutput"><span class="keyword">int</span></code>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the number of elements
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the number of elements
|
||||
in the sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.functions.size.header"></a><h6>
|
||||
<a name="id508568"></a>
|
||||
<a name="id1007762"></a>
|
||||
<a href="size.html#fusion.sequences.intrinsics.functions.size.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">size</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.functions.size.example"></a><h6>
|
||||
<a name="id508673"></a>
|
||||
<a name="id1007855"></a>
|
||||
<a href="size.html#fusion.sequences.intrinsics.functions.size.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</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">></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>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</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">></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><span class="identifier">size</span><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>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Metafunctions</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../intrinsics.html" title="Intrinsics">
|
||||
<link rel="prev" href="functions/at_key.html" title="at_key">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>at</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="size.html" title="size">
|
||||
@@ -26,16 +26,16 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at"></a><a href="at.html" title="at">at</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at.description"></a><h6>
|
||||
<a name="id517159"></a>
|
||||
<a name="id1032839"></a>
|
||||
<a href="at.html#fusion.sequences.intrinsics.metafunctions.at.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a>
|
||||
<sup>[<a name="id517197" href="#ftn.id517197">6</a>]</sup>
|
||||
Returns the result type of <a href="../functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a>
|
||||
<sup>[<a name="id1032871" href="#ftn.id1032871">6</a>]</sup>
|
||||
.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at.synopsis"></a><h6>
|
||||
<a name="id517308"></a>
|
||||
<a name="id1032971"></a>
|
||||
<a href="at.html#fusion.sequences.intrinsics.metafunctions.at.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -48,7 +48,7 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id517424"></a><p class="title"><b>Table 1.25. Parameters</b></p>
|
||||
<a name="id1033073"></a><p class="title"><b>Table 1.25. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -62,7 +62,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Seq</span></code></td>
|
||||
<td>A
|
||||
model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -71,7 +71,7 @@
|
||||
<td>Argument sequence</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">N</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">N</span></code></td>
|
||||
<td>An
|
||||
MPL Integral Constant</td>
|
||||
<td>Index of element</td>
|
||||
@@ -80,7 +80,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at.expression_semantics"></a><h6>
|
||||
<a name="id517520"></a>
|
||||
<a name="id1033159"></a>
|
||||
<a href="at.html#fusion.sequences.intrinsics.metafunctions.at.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -88,34 +88,34 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Any type.
|
||||
<span class="bold"><strong>Return type</strong></span>: Any type.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the result type of
|
||||
using <a href="../functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a> to access the <tt class="computeroutput"><span class="identifier">N</span></tt>th element of <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the result type of
|
||||
using <a href="../functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a> to access the <code class="computeroutput"><span class="identifier">N</span></code>th element of <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at.header"></a><h6>
|
||||
<a name="id517659"></a>
|
||||
<a name="id1033281"></a>
|
||||
<a href="at.html#fusion.sequences.intrinsics.metafunctions.at.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">at</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at.example"></a><h6>
|
||||
<a name="id517764"></a>
|
||||
<a name="id1033374"></a>
|
||||
<a href="at.html#fusion.sequences.intrinsics.metafunctions.at.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</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"><</span><a href="at.html" title="at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></tt></a><span class="special"><</span><span class="identifier">vec</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"><</span><span class="number">1</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">&>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</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"><</span><a href="at.html" title="at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></code></a><span class="special"><</span><span class="identifier">vec</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"><</span><span class="number">1</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">&>));</span>
|
||||
</pre>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id517197" href="#id517197">6</a>] </sup>
|
||||
<a href="at.html" title="at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></tt></a> reflects the actual return
|
||||
type of the function <a href="../functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a>. <span class="underline">_sequence</span>_s
|
||||
typically return references to its elements via the <a href="../functions/at.html" title="at"><tt class="computeroutput"><span class="identifier">at</span></tt></a> function. If you want
|
||||
to get the actual element type, use <a href="value_at.html" title="value_at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></tt></a>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id1032871" href="#id1032871">6</a>] </sup>
|
||||
<a href="at.html" title="at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at</span></code></a> reflects the actual return
|
||||
type of the function <a href="../functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a>. <span class="underline">_sequence</span>_s
|
||||
typically return references to its elements via the <a href="../functions/at.html" title="at"><code class="computeroutput"><span class="identifier">at</span></code></a> function. If you want
|
||||
to get the actual element type, use <a href="value_at.html" title="value_at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></code></a>
|
||||
</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>at_c</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="at.html" title="at">
|
||||
@@ -26,16 +26,16 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at_c"></a><a href="at_c.html" title="at_c">at_c</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at_c.description"></a><h6>
|
||||
<a name="id518025"></a>
|
||||
<a name="id1033604"></a>
|
||||
<a href="at_c.html#fusion.sequences.intrinsics.metafunctions.at_c.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a>
|
||||
<sup>[<a name="id518063" href="#ftn.id518063">7</a>]</sup>
|
||||
Returns the result type of <a href="../functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a>
|
||||
<sup>[<a name="id1033637" href="#ftn.id1033637">7</a>]</sup>
|
||||
.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at_c.synopsis"></a><h6>
|
||||
<a name="id518177"></a>
|
||||
<a name="id1033740"></a>
|
||||
<a href="at_c.html#fusion.sequences.intrinsics.metafunctions.at_c.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -48,7 +48,7 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id518293"></a><p class="title"><b>Table 1.26. Parameters</b></p>
|
||||
<a name="id1033842"></a><p class="title"><b>Table 1.26. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -62,7 +62,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Seq</span></code></td>
|
||||
<td>A
|
||||
model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -71,7 +71,7 @@
|
||||
<td>Argument sequence</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">M</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">M</span></code></td>
|
||||
<td>Positive
|
||||
integer index</td>
|
||||
<td>Index of element</td>
|
||||
@@ -80,7 +80,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at_c.expression_semantics"></a><h6>
|
||||
<a name="id518389"></a>
|
||||
<a name="id1033928"></a>
|
||||
<a href="at_c.html#fusion.sequences.intrinsics.metafunctions.at_c.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -88,34 +88,34 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">,</span> <span class="identifier">M</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Any type
|
||||
<span class="bold"><strong>Return type</strong></span>: Any type
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the result type of
|
||||
using <a href="../functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a> to access the <tt class="computeroutput"><span class="identifier">M</span></tt>th element of <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the result type of
|
||||
using <a href="../functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a> to access the <code class="computeroutput"><span class="identifier">M</span></code>th element of <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at_c.header"></a><h6>
|
||||
<a name="id518528"></a>
|
||||
<a name="id1034050"></a>
|
||||
<a href="at_c.html#fusion.sequences.intrinsics.metafunctions.at_c.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">at</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at_c.example"></a><h6>
|
||||
<a name="id518634"></a>
|
||||
<a name="id1034143"></a>
|
||||
<a href="at_c.html#fusion.sequences.intrinsics.metafunctions.at_c.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</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"><</span><a href="at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></tt></a><span class="special"><</span><span class="identifier">vec</span><span class="special">,</span> <span class="number">1</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">&>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</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"><</span><a href="at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></code></a><span class="special"><</span><span class="identifier">vec</span><span class="special">,</span> <span class="number">1</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">&>));</span>
|
||||
</pre>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id518063" href="#id518063">7</a>] </sup>
|
||||
<a href="at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></tt></a> reflects the actual
|
||||
return type of the function <a href="../functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a>. <span class="underline">_sequence</span>_s
|
||||
typically return references to its elements via the <a href="../functions/at_c.html" title="at_c"><tt class="computeroutput"><span class="identifier">at_c</span></tt></a> function. If you want
|
||||
to get the actual element type, use <a href="value_at_c.html" title="value_at_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_c</span></tt></a>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id1033637" href="#id1033637">7</a>] </sup>
|
||||
<a href="at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_c</span></code></a> reflects the actual
|
||||
return type of the function <a href="../functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a>. <span class="underline">_sequence</span>_s
|
||||
typically return references to its elements via the <a href="../functions/at_c.html" title="at_c"><code class="computeroutput"><span class="identifier">at_c</span></code></a> function. If you want
|
||||
to get the actual element type, use <a href="value_at_c.html" title="value_at_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_c</span></code></a>
|
||||
</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>at_key</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="has_key.html" title="has_key">
|
||||
@@ -26,16 +26,16 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at_key"></a><a href="at_key.html" title="at_key">at_key</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at_key.description"></a><h6>
|
||||
<a name="id521186"></a>
|
||||
<a name="id1036397"></a>
|
||||
<a href="at_key.html#fusion.sequences.intrinsics.metafunctions.at_key.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a>
|
||||
<sup>[<a name="id521224" href="#ftn.id521224">8</a>]</sup>
|
||||
Returns the result type of <a href="../functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a>
|
||||
<sup>[<a name="id1036430" href="#ftn.id1036430">8</a>]</sup>
|
||||
.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at_key.synopsis"></a><h6>
|
||||
<a name="id521334"></a>
|
||||
<a name="id1036531"></a>
|
||||
<a href="at_key.html#fusion.sequences.intrinsics.metafunctions.at_key.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -48,7 +48,7 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id521451"></a><p class="title"><b>Table 1.30. Parameters</b></p>
|
||||
<a name="id1036633"></a><p class="title"><b>Table 1.30. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -62,7 +62,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Seq</span></code></td>
|
||||
<td>A
|
||||
model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -71,7 +71,7 @@
|
||||
<td>Argument sequence</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Key</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Key</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>Key type</td>
|
||||
@@ -80,7 +80,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at_key.expression_semantics"></a><h6>
|
||||
<a name="id521547"></a>
|
||||
<a name="id1036718"></a>
|
||||
<a href="at_key.html#fusion.sequences.intrinsics.metafunctions.at_key.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -88,36 +88,36 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Any type.
|
||||
<span class="bold"><strong>Return type</strong></span>: Any type.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the result of using
|
||||
<a href="../functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a> to access the element
|
||||
with key type <tt class="computeroutput"><span class="identifier">Key</span></tt> in
|
||||
<tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the result of using
|
||||
<a href="../functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a> to access the element
|
||||
with key type <code class="computeroutput"><span class="identifier">Key</span></code> in
|
||||
<code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at_key.header"></a><h6>
|
||||
<a name="id521688"></a>
|
||||
<a name="id1036842"></a>
|
||||
<a href="at_key.html#fusion.sequences.intrinsics.metafunctions.at_key.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">at_key</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.at_key.example"></a><h6>
|
||||
<a name="id521793"></a>
|
||||
<a name="id1036935"></a>
|
||||
<a href="at_key.html#fusion.sequences.intrinsics.metafunctions.at_key.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a href="../../containers/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a><span class="special"><</span><a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span> <span class="identifier">mymap</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"><</span><a href="at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">int</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../containers/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a><span class="special"><</span><a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span> <span class="identifier">mymap</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"><</span><a href="at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">int</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&>));</span>
|
||||
</pre>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id521224" href="#id521224">8</a>] </sup>
|
||||
<a href="at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a> reflects the actual
|
||||
return type of the function <a href="../functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a>. <span class="underline">_sequence</span>_s
|
||||
typically return references to its elements via the <a href="../functions/at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">at_key</span></tt></a> function. If you
|
||||
want to get the actual element type, use <a href="value_at_key.html" title="value_at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_key</span></tt></a>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id1036430" href="#id1036430">8</a>] </sup>
|
||||
<a href="at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></code></a> reflects the actual
|
||||
return type of the function <a href="../functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a>. <span class="underline">_sequence</span>_s
|
||||
typically return references to its elements via the <a href="../functions/at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">at_key</span></code></a> function. If you
|
||||
want to get the actual element type, use <a href="value_at_key.html" title="value_at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_key</span></code></a>
|
||||
</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>back</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="front.html" title="front">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.back"></a><a href="back.html" title="back">back</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.back.description"></a><h6>
|
||||
<a name="id515749"></a>
|
||||
<a name="id1031590"></a>
|
||||
<a href="back.html#fusion.sequences.intrinsics.metafunctions.back.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/back.html" title="back"><tt class="computeroutput"><span class="identifier">back</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/back.html" title="back"><code class="computeroutput"><span class="identifier">back</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.back.synopsis"></a><h6>
|
||||
<a name="id515796"></a>
|
||||
<a name="id1031632"></a>
|
||||
<a href="back.html#fusion.sequences.intrinsics.metafunctions.back.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -44,7 +44,7 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id515894"></a><p class="title"><b>Table 1.23. Parameters</b></p>
|
||||
<a name="id1031718"></a><p class="title"><b>Table 1.23. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -57,7 +57,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Seq</span></code></td>
|
||||
<td>A
|
||||
model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -68,7 +68,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.back.expression_semantics"></a><h6>
|
||||
<a name="id515967"></a>
|
||||
<a name="id1031785"></a>
|
||||
<a href="back.html#fusion.sequences.intrinsics.metafunctions.back.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -76,26 +76,26 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Any type
|
||||
<span class="bold"><strong>Return type</strong></span>: Any type
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: The type returned by dereferencing
|
||||
an iterator to the last element in the sequence. Equivalent to <tt class="computeroutput"><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><span class="special"><</span><a href="../../../iterators/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"><</span><a href="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"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</span><span class="identifier">type</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: The type returned by dereferencing
|
||||
an iterator to the last element in the sequence. Equivalent to <code class="computeroutput"><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><span class="special"><</span><a href="../../../iterators/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"><</span><a href="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"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</span><span class="identifier">type</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.back.header"></a><h6>
|
||||
<a name="id516191"></a>
|
||||
<a name="id1031981"></a>
|
||||
<a href="back.html#fusion.sequences.intrinsics.metafunctions.back.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">back</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.back.example"></a><h6>
|
||||
<a name="id516296"></a>
|
||||
<a name="id1032074"></a>
|
||||
<a href="back.html#fusion.sequences.intrinsics.metafunctions.back.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</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"><</span><a href="back.html" title="back"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></tt></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</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"><</span><a href="back.html" title="back"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">back</span></code></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">char</span><span class="special">&>));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>begin</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" 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">
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.begin"></a><a href="begin.html" title="begin">begin</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.begin.description"></a><h6>
|
||||
<a name="id512859"></a>
|
||||
<a name="id1011560"></a>
|
||||
<a href="begin.html#fusion.sequences.intrinsics.metafunctions.begin.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/begin.html" title="begin"><tt class="computeroutput"><span class="identifier">begin</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/begin.html" title="begin"><code class="computeroutput"><span class="identifier">begin</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.begin.synopsis"></a><h6>
|
||||
<a name="id512907"></a>
|
||||
<a name="id1011602"></a>
|
||||
<a href="begin.html#fusion.sequences.intrinsics.metafunctions.begin.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -44,7 +44,7 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id513005"></a><p class="title"><b>Table 1.19. Parameters</b></p>
|
||||
<a name="id1011688"></a><p class="title"><b>Table 1.19. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -57,7 +57,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Seq</span></code></td>
|
||||
<td>A
|
||||
model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -68,7 +68,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.begin.expression_semantics"></a><h6>
|
||||
<a name="id513080"></a>
|
||||
<a name="id1011756"></a>
|
||||
<a href="begin.html#fusion.sequences.intrinsics.metafunctions.begin.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -76,28 +76,28 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">begin</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: An iterator modelling the
|
||||
same traversal concept as <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
<span class="bold"><strong>Return type</strong></span>: An iterator modelling the
|
||||
same traversal concept as <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the type of an iterator
|
||||
to the first element of <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the type of an iterator
|
||||
to the first element of <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.begin.header"></a><h6>
|
||||
<a name="id513192"></a>
|
||||
<a name="id1011855"></a>
|
||||
<a href="begin.html#fusion.sequences.intrinsics.metafunctions.begin.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">begin</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.begin.example"></a><h6>
|
||||
<a name="id513298"></a>
|
||||
<a name="id1011948"></a>
|
||||
<a href="begin.html#fusion.sequences.intrinsics.metafunctions.begin.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="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"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">it</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"><</span><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><span class="special"><</span><span class="identifier">it</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&>))</span>
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="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"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">it</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"><</span><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><span class="special"><</span><span class="identifier">it</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&>))</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>empty</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="end.html" title="end">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.empty"></a><a href="empty.html" title="empty">empty</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.empty.description"></a><h6>
|
||||
<a name="id514296"></a>
|
||||
<a name="id1012831"></a>
|
||||
<a href="empty.html#fusion.sequences.intrinsics.metafunctions.empty.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/empty.html" title="empty"><tt class="computeroutput"><span class="identifier">empty</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/empty.html" title="empty"><code class="computeroutput"><span class="identifier">empty</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.empty.synopsis"></a><h6>
|
||||
<a name="id514344"></a>
|
||||
<a name="id1012873"></a>
|
||||
<a href="empty.html#fusion.sequences.intrinsics.metafunctions.empty.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -44,7 +44,7 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id514442"></a><p class="title"><b>Table 1.21. Parameters</b></p>
|
||||
<a name="id1012959"></a><p class="title"><b>Table 1.21. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -57,7 +57,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Seq</span></code></td>
|
||||
<td>A
|
||||
model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -68,7 +68,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.empty.expression_semantics"></a><h6>
|
||||
<a name="id514516"></a>
|
||||
<a name="id1013026"></a>
|
||||
<a href="empty.html#fusion.sequences.intrinsics.metafunctions.empty.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -76,30 +76,30 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: An MPL Integral Constant
|
||||
<span class="bold"><strong>Return type</strong></span>: An MPL Integral Constant
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">Seq</span></tt> has zero elements,
|
||||
<tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></tt> otherwise.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">Seq</span></code> has zero elements,
|
||||
<code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code> otherwise.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.empty.header"></a><h6>
|
||||
<a name="id514659"></a>
|
||||
<a name="id1013033"></a>
|
||||
<a href="empty.html#fusion.sequences.intrinsics.metafunctions.empty.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">empty</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.empty.example"></a><h6>
|
||||
<a name="id514765"></a>
|
||||
<a name="id1013245"></a>
|
||||
<a href="empty.html#fusion.sequences.intrinsics.metafunctions.empty.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><></span> <span class="identifier">empty_vec</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><></span> <span class="identifier">empty_vec</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a href="empty.html" title="empty"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></tt></a><span class="special"><</span><span class="identifier">empty_vec</span><span class="special">>));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span><a href="empty.html" title="empty"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></tt></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a href="empty.html" title="empty"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></code></a><span class="special"><</span><span class="identifier">empty_vec</span><span class="special">>));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span><a href="empty.html" title="empty"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">empty</span></code></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>end</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="begin.html" title="begin">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.end"></a><a href="end.html" title="end">end</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.end.description"></a><h6>
|
||||
<a name="id513554"></a>
|
||||
<a name="id1012175"></a>
|
||||
<a href="end.html#fusion.sequences.intrinsics.metafunctions.end.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/end.html" title="end"><tt class="computeroutput"><span class="identifier">end</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/end.html" title="end"><code class="computeroutput"><span class="identifier">end</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.end.synopsis"></a><h6>
|
||||
<a name="id513601"></a>
|
||||
<a name="id1012216"></a>
|
||||
<a href="end.html#fusion.sequences.intrinsics.metafunctions.end.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -44,7 +44,7 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id513698"></a><p class="title"><b>Table 1.20. Parameters</b></p>
|
||||
<a name="id1012301"></a><p class="title"><b>Table 1.20. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -57,7 +57,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Seq</span></code></td>
|
||||
<td>A
|
||||
model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -68,7 +68,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.end.expression_semantics"></a><h6>
|
||||
<a name="id513773"></a>
|
||||
<a name="id1012369"></a>
|
||||
<a href="end.html#fusion.sequences.intrinsics.metafunctions.end.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -76,28 +76,28 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">end</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: A model of the same traversal
|
||||
concept as <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
<span class="bold"><strong>Return type</strong></span>: A model of the same traversal
|
||||
concept as <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the type of an iterator
|
||||
one past the end of <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the type of an iterator
|
||||
one past the end of <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.end.header"></a><h6>
|
||||
<a name="id513884"></a>
|
||||
<a name="id1012467"></a>
|
||||
<a href="end.html#fusion.sequences.intrinsics.metafunctions.end.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">end</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.end.example"></a><h6>
|
||||
<a name="id513988"></a>
|
||||
<a name="id1012560"></a>
|
||||
<a href="end.html#fusion.sequences.intrinsics.metafunctions.end.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../iterators/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"><</span><a href="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"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</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><a href="../../../iterators/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"><</span><span class="identifier">first</span><span class="special">,</span> <a href="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"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>))</span>
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../../../iterators/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"><</span><a href="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"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</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><a href="../../../iterators/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"><</span><span class="identifier">first</span><span class="special">,</span> <a href="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"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>))</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>front</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="empty.html" title="empty">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.front"></a><a href="front.html" title="front">front</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.front.description"></a><h6>
|
||||
<a name="id515028"></a>
|
||||
<a name="id1013476"></a>
|
||||
<a href="front.html#fusion.sequences.intrinsics.metafunctions.front.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/front.html" title="front"><tt class="computeroutput"><span class="identifier">front</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/front.html" title="front"><code class="computeroutput"><span class="identifier">front</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.front.synopsis"></a><h6>
|
||||
<a name="id515075"></a>
|
||||
<a name="id1013518"></a>
|
||||
<a href="front.html#fusion.sequences.intrinsics.metafunctions.front.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -44,7 +44,7 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id515173"></a><p class="title"><b>Table 1.22. Parameters</b></p>
|
||||
<a name="id1013604"></a><p class="title"><b>Table 1.22. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -57,7 +57,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Seq</span></code></td>
|
||||
<td>A
|
||||
model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -68,7 +68,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.front.expression_semantics"></a><h6>
|
||||
<a name="id515246"></a>
|
||||
<a name="id1031147"></a>
|
||||
<a href="front.html#fusion.sequences.intrinsics.metafunctions.front.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -76,27 +76,27 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Any type
|
||||
<span class="bold"><strong>Return type</strong></span>: Any type
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: The type returned by dereferencing
|
||||
an iterator to the first element in <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
Equivalent to <tt class="computeroutput"><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><span class="special"><</span><a href="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"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</span><span class="identifier">type</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: The type returned by dereferencing
|
||||
an iterator to the first element in <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
Equivalent to <code class="computeroutput"><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><span class="special"><</span><a href="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"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span><span class="special">>::</span><span class="identifier">type</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.front.header"></a><h6>
|
||||
<a name="id515440"></a>
|
||||
<a name="id1031317"></a>
|
||||
<a href="front.html#fusion.sequences.intrinsics.metafunctions.front.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">front</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.front.example"></a><h6>
|
||||
<a name="id515546"></a>
|
||||
<a name="id1031410"></a>
|
||||
<a href="front.html#fusion.sequences.intrinsics.metafunctions.front.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</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"><</span><a href="front.html" title="front"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></tt></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</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"><</span><a href="front.html" title="front"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">front</span></code></a><span class="special"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&>));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>has_key</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="value_at_c.html" title="value_at_c">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.has_key"></a><a href="has_key.html" title="has_key">has_key</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.has_key.description"></a><h6>
|
||||
<a name="id520311"></a>
|
||||
<a name="id1035624"></a>
|
||||
<a href="has_key.html#fusion.sequences.intrinsics.metafunctions.has_key.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">has_key</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">has_key</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.has_key.synopsis"></a><h6>
|
||||
<a name="id520358"></a>
|
||||
<a name="id1035665"></a>
|
||||
<a href="has_key.html#fusion.sequences.intrinsics.metafunctions.has_key.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -46,7 +46,7 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id520475"></a><p class="title"><b>Table 1.29. Parameters</b></p>
|
||||
<a name="id1035767"></a><p class="title"><b>Table 1.29. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -60,7 +60,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Seq</span></code></td>
|
||||
<td>A
|
||||
model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -69,7 +69,7 @@
|
||||
<td>Argument sequence</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Key</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Key</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>Key type</td>
|
||||
@@ -78,7 +78,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.has_key.expression_semantics"></a><h6>
|
||||
<a name="id520568"></a>
|
||||
<a name="id1035852"></a>
|
||||
<a href="has_key.html#fusion.sequences.intrinsics.metafunctions.has_key.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -86,29 +86,29 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: An MPL Integral Constant.
|
||||
<span class="bold"><strong>Return type</strong></span>: An MPL Integral Constant.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>
|
||||
if <tt class="computeroutput"><span class="identifier">Seq</span></tt> contains an element
|
||||
with key type <tt class="computeroutput"><span class="identifier">Key</span></tt>, returns
|
||||
<tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></tt> otherwise.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>
|
||||
if <code class="computeroutput"><span class="identifier">Seq</span></code> contains an element
|
||||
with key type <code class="computeroutput"><span class="identifier">Key</span></code>, returns
|
||||
<code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">false_</span></code> otherwise.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.has_key.header"></a><h6>
|
||||
<a name="id520732"></a>
|
||||
<a name="id1035859"></a>
|
||||
<a href="has_key.html#fusion.sequences.intrinsics.metafunctions.has_key.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">has_key</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.has_key.example"></a><h6>
|
||||
<a name="id520838"></a>
|
||||
<a name="id1036088"></a>
|
||||
<a href="has_key.html#fusion.sequences.intrinsics.metafunctions.has_key.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a href="../../containers/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a><span class="special"><</span><a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span> <span class="identifier">mymap</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a href="has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">int</span><span class="special">>));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span><a href="has_key.html" title="has_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></tt></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">void</span><span class="special">*>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../containers/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a><span class="special"><</span><a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span> <span class="identifier">mymap</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT</span><span class="special">((</span><a href="has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></code></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">int</span><span class="special">>));</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT_NOT</span><span class="special">((</span><a href="has_key.html" title="has_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">has_key</span></code></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">void</span><span class="special">*>));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>size</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="back.html" title="back">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.size"></a><a href="size.html" title="size">size</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.size.description"></a><h6>
|
||||
<a name="id516499"></a>
|
||||
<a name="id1032254"></a>
|
||||
<a href="size.html#fusion.sequences.intrinsics.metafunctions.size.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the result type of <a href="../functions/size.html" title="size"><tt class="computeroutput"><span class="identifier">size</span></tt></a>.
|
||||
Returns the result type of <a href="../functions/size.html" title="size"><code class="computeroutput"><span class="identifier">size</span></code></a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.size.synopsis"></a><h6>
|
||||
<a name="id516547"></a>
|
||||
<a name="id1032296"></a>
|
||||
<a href="size.html#fusion.sequences.intrinsics.metafunctions.size.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -44,7 +44,7 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id516644"></a><p class="title"><b>Table 1.24. Parameters</b></p>
|
||||
<a name="id1032383"></a><p class="title"><b>Table 1.24. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -57,7 +57,7 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Seq</span></code></td>
|
||||
<td>A
|
||||
model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -68,7 +68,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.size.expression_semantics"></a><h6>
|
||||
<a name="id516718"></a>
|
||||
<a name="id1032450"></a>
|
||||
<a href="size.html#fusion.sequences.intrinsics.metafunctions.size.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -76,26 +76,26 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">size</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: An MPL Integral Constant.
|
||||
<span class="bold"><strong>Return type</strong></span>: An MPL Integral Constant.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the number of elements
|
||||
in <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the number of elements
|
||||
in <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.size.header"></a><h6>
|
||||
<a name="id516820"></a>
|
||||
<a name="id1032457"></a>
|
||||
<a href="size.html#fusion.sequences.intrinsics.metafunctions.size.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">size</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.size.example"></a><h6>
|
||||
<a name="id516926"></a>
|
||||
<a name="id1032633"></a>
|
||||
<a href="size.html#fusion.sequences.intrinsics.metafunctions.size.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="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"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">size_mpl_integral_constant</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="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"><</span><span class="identifier">vec</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">size_mpl_integral_constant</span><span class="special">;</span>
|
||||
<span class="identifier">BOOST_MPL_ASSERT_RELATION</span><span class="special">(</span><span class="identifier">size_mpl_integral_constant</span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="special">==,</span> <span class="number">3</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>value_at</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="at_c.html" title="at_c">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at"></a><a href="value_at.html" title="value_at">value_at</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at.description"></a><h6>
|
||||
<a name="id518859"></a>
|
||||
<a name="id1034342"></a>
|
||||
<a href="value_at.html#fusion.sequences.intrinsics.metafunctions.value_at.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the actual type at a given index from the <a href="../../../sequences.html" title="Sequences">Sequence</a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at.synopsis"></a><h6>
|
||||
<a name="id518899"></a>
|
||||
<a name="id1034377"></a>
|
||||
<a href="value_at.html#fusion.sequences.intrinsics.metafunctions.value_at.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -46,7 +46,7 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id519016"></a><p class="title"><b>Table 1.27. Parameters</b></p>
|
||||
<a name="id1034480"></a><p class="title"><b>Table 1.27. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -60,7 +60,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Seq</span></code></td>
|
||||
<td>A
|
||||
model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -69,7 +69,7 @@
|
||||
<td>Argument sequence</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">N</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">N</span></code></td>
|
||||
<td>An
|
||||
MPL Integral Constant</td>
|
||||
<td>Index of element</td>
|
||||
@@ -78,7 +78,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at.expression_semantics"></a><h6>
|
||||
<a name="id519109"></a>
|
||||
<a name="id1034565"></a>
|
||||
<a href="value_at.html#fusion.sequences.intrinsics.metafunctions.value_at.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -86,26 +86,26 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">,</span> <span class="identifier">N</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Any type.
|
||||
<span class="bold"><strong>Return type</strong></span>: Any type.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the actual type at
|
||||
the <tt class="computeroutput"><span class="identifier">N</span></tt>th element of <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the actual type at
|
||||
the <code class="computeroutput"><span class="identifier">N</span></code>th element of <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at.header"></a><h6>
|
||||
<a name="id519232"></a>
|
||||
<a name="id1034572"></a>
|
||||
<a href="value_at.html#fusion.sequences.intrinsics.metafunctions.value_at.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">value_at</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at.example"></a><h6>
|
||||
<a name="id519338"></a>
|
||||
<a name="id1034765"></a>
|
||||
<a href="value_at.html#fusion.sequences.intrinsics.metafunctions.value_at.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</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"><</span><a href="value_at.html" title="value_at"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></tt></a><span class="special"><</span><span class="identifier">vec</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"><</span><span class="number">1</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</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"><</span><a href="value_at.html" title="value_at"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at</span></code></a><span class="special"><</span><span class="identifier">vec</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"><</span><span class="number">1</span><span class="special">></span> <span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">>));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>value_at_c</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="value_at.html" title="value_at">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at_c"></a><a href="value_at_c.html" title="value_at_c">value_at_c</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at_c.description"></a><h6>
|
||||
<a name="id519601"></a>
|
||||
<a name="id1034999"></a>
|
||||
<a href="value_at_c.html#fusion.sequences.intrinsics.metafunctions.value_at_c.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the actual type at a given index from the <a href="../../../sequences.html" title="Sequences">Sequence</a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at_c.synopsis"></a><h6>
|
||||
<a name="id519642"></a>
|
||||
<a name="id1035034"></a>
|
||||
<a href="value_at_c.html#fusion.sequences.intrinsics.metafunctions.value_at_c.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -46,7 +46,7 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id519759"></a><p class="title"><b>Table 1.28. Parameters</b></p>
|
||||
<a name="id1035137"></a><p class="title"><b>Table 1.28. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -60,7 +60,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Seq</span></code></td>
|
||||
<td>A
|
||||
model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -69,7 +69,7 @@
|
||||
<td>Argument sequence</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">M</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">M</span></code></td>
|
||||
<td>Positive
|
||||
integer index</td>
|
||||
<td>Index of element</td>
|
||||
@@ -78,7 +78,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at_c.expression_semantics"></a><h6>
|
||||
<a name="id519854"></a>
|
||||
<a name="id1035222"></a>
|
||||
<a href="value_at_c.html#fusion.sequences.intrinsics.metafunctions.value_at_c.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -86,26 +86,26 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_c</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">,</span> <span class="identifier">M</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Any type
|
||||
<span class="bold"><strong>Return type</strong></span>: Any type
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the actual type at
|
||||
the <tt class="computeroutput"><span class="identifier">M</span></tt>th element of <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the actual type at
|
||||
the <code class="computeroutput"><span class="identifier">M</span></code>th element of <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at_c.header"></a><h6>
|
||||
<a name="id519979"></a>
|
||||
<a name="id1035230"></a>
|
||||
<a href="value_at_c.html#fusion.sequences.intrinsics.metafunctions.value_at_c.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">value_at</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at_c.example"></a><h6>
|
||||
<a name="id520085"></a>
|
||||
<a name="id1035424"></a>
|
||||
<a href="value_at_c.html#fusion.sequences.intrinsics.metafunctions.value_at_c.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</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"><</span><a href="value_at_c.html" title="value_at_c"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_c</span></tt></a><span class="special"><</span><span class="identifier">vec</span><span class="special">,</span> <span class="number">1</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">float</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec</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"><</span><a href="value_at_c.html" title="value_at_c"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_c</span></code></a><span class="special"><</span><span class="identifier">vec</span><span class="special">,</span> <span class="number">1</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">float</span><span class="special">>));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>value_at_key</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../metafunctions.html" title="Metafunctions">
|
||||
<link rel="prev" href="at_key.html" title="at_key">
|
||||
@@ -26,14 +26,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at_key"></a><a href="value_at_key.html" title="value_at_key">value_at_key</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at_key.description"></a><h6>
|
||||
<a name="id522120"></a>
|
||||
<a name="id1037226"></a>
|
||||
<a href="value_at_key.html#fusion.sequences.intrinsics.metafunctions.value_at_key.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Returns the actual element type associated with a Key from the <a href="../../../sequences.html" title="Sequences">Sequence</a>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at_key.synopsis"></a><h6>
|
||||
<a name="id522161"></a>
|
||||
<a name="id1037261"></a>
|
||||
<a href="value_at_key.html#fusion.sequences.intrinsics.metafunctions.value_at_key.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -46,7 +46,7 @@
|
||||
<span class="special">};</span>
|
||||
</pre>
|
||||
<div class="table">
|
||||
<a name="id522278"></a><p class="title"><b>Table 1.31. Parameters</b></p>
|
||||
<a name="id1037364"></a><p class="title"><b>Table 1.31. Parameters</b></p>
|
||||
<table class="table" summary="Parameters">
|
||||
<colgroup>
|
||||
<col>
|
||||
@@ -60,7 +60,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Seq</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Seq</span></code></td>
|
||||
<td>A
|
||||
model of <a href="../../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -69,7 +69,7 @@
|
||||
<td>Argument sequence</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Key</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Key</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td>Key type</td>
|
||||
@@ -78,7 +78,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at_key.expression_semantics"></a><h6>
|
||||
<a name="id522374"></a>
|
||||
<a name="id1037449"></a>
|
||||
<a href="value_at_key.html#fusion.sequences.intrinsics.metafunctions.value_at_key.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -86,27 +86,27 @@
|
||||
<span class="identifier">result_of</span><span class="special">::</span><span class="identifier">value_at_key</span><span class="special"><</span><span class="identifier">Seq</span><span class="special">,</span> <span class="identifier">Key</span><span class="special">>::</span><span class="identifier">type</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: Any type.
|
||||
<span class="bold"><strong>Return type</strong></span>: Any type.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the actual element
|
||||
type associated with key type <tt class="computeroutput"><span class="identifier">Key</span></tt>
|
||||
in <tt class="computeroutput"><span class="identifier">Seq</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the actual element
|
||||
type associated with key type <code class="computeroutput"><span class="identifier">Key</span></code>
|
||||
in <code class="computeroutput"><span class="identifier">Seq</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at_key.header"></a><h6>
|
||||
<a name="id522497"></a>
|
||||
<a name="id1037558"></a>
|
||||
<a href="value_at_key.html#fusion.sequences.intrinsics.metafunctions.value_at_key.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">intrinsic</span><span class="special">/</span><span class="identifier">value_at_key</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.intrinsics.metafunctions.value_at_key.example"></a><h6>
|
||||
<a name="id522604"></a>
|
||||
<a name="id1037651"></a>
|
||||
<a href="value_at_key.html#fusion.sequences.intrinsics.metafunctions.value_at_key.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a href="../../containers/map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a><span class="special"><</span><a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span> <span class="identifier">mymap</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"><</span><a href="at_key.html" title="at_key"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></tt></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">int</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>));</span>
|
||||
<span class="keyword">typedef</span> <a href="../../containers/map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a><span class="special"><</span><a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>,</span> <a href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="special">></span> <span class="identifier">mymap</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"><</span><a href="at_key.html" title="at_key"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">at_key</span></code></a><span class="special"><</span><span class="identifier">mymap</span><span class="special">,</span> <span class="keyword">int</span><span class="special">>::</span><span class="identifier">type</span><span class="special">,</span> <span class="keyword">char</span><span class="special">>));</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Operators</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../sequences.html" title="Sequences">
|
||||
<link rel="prev" href="conversion/metafunctions/as_map.html" title="as_map">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Comparison</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../operators.html" title="Operators">
|
||||
<link rel="prev" href="i_o/out.html" title="out">
|
||||
@@ -26,16 +26,16 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.operators.comparison"></a><a href="comparison.html" title="Comparison">Comparison</a></h4></div></div></div>
|
||||
<p>
|
||||
The Comparison operators: <tt class="computeroutput"><span class="special">==</span></tt>,
|
||||
<tt class="computeroutput"><span class="special">!=</span></tt>, <tt class="computeroutput"><span class="special"><</span></tt>,
|
||||
<tt class="computeroutput"><span class="special"><=</span></tt>, <tt class="computeroutput"><span class="special">>=</span></tt>
|
||||
and <tt class="computeroutput"><span class="special">>=</span></tt> work generically
|
||||
The Comparison operators: <code class="computeroutput"><span class="special">==</span></code>,
|
||||
<code class="computeroutput"><span class="special">!=</span></code>, <code class="computeroutput"><span class="special"><</span></code>,
|
||||
<code class="computeroutput"><span class="special"><=</span></code>, <code class="computeroutput"><span class="special">>=</span></code>
|
||||
and <code class="computeroutput"><span class="special">>=</span></code> work generically
|
||||
on all Fusion sequences. Comparison operators are "short- circuited":
|
||||
elementary comparisons start from the first elements and are performed
|
||||
only until the result is clear.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.comparison.header"></a><h5>
|
||||
<a name="id545529"></a>
|
||||
<a name="id1075369"></a>
|
||||
<a href="comparison.html#fusion.sequences.operators.comparison.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>equal</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../comparison.html" title="Comparison">
|
||||
<link rel="prev" href="../comparison.html" title="Comparison">
|
||||
@@ -27,14 +27,14 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.operators.comparison.equal"></a><a href="equal.html" title="equal">equal</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.operators.comparison.equal.description"></a><h6>
|
||||
<a name="id545643"></a>
|
||||
<a name="id1075469"></a>
|
||||
<a href="equal.html#fusion.sequences.operators.comparison.equal.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Compare two sequences for equality.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.comparison.equal.synopsis"></a><h6>
|
||||
<a name="id545674"></a>
|
||||
<a name="id1075497"></a>
|
||||
<a href="equal.html#fusion.sequences.operators.comparison.equal.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -43,7 +43,7 @@
|
||||
<span class="keyword">operator</span><span class="special">==(</span><span class="identifier">Seq1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">a</span><span class="special">,</span> <span class="identifier">Seq2</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">b</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.comparison.equal.parameters"></a><h6>
|
||||
<a name="id545827"></a>
|
||||
<a name="id1075633"></a>
|
||||
<a href="equal.html#fusion.sequences.operators.comparison.equal.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -58,8 +58,8 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></code></td>
|
||||
<td>Instances
|
||||
of <a href="../../../sequences.html" title="Sequences">Sequence</a>
|
||||
</td>
|
||||
@@ -68,7 +68,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.operators.comparison.equal.expression_semantics"></a><h6>
|
||||
<a name="id545931"></a>
|
||||
<a name="id1075725"></a>
|
||||
<a href="equal.html#fusion.sequences.operators.comparison.equal.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -76,16 +76,16 @@
|
||||
<span class="identifier">a</span> <span class="special">==</span> <span class="identifier">b</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Requirements</b></span>:
|
||||
<span class="bold"><strong>Requirements</strong></span>:
|
||||
</p>
|
||||
<p>
|
||||
For each element, <tt class="computeroutput"><span class="identifier">e1</span></tt>,
|
||||
in sequence <tt class="computeroutput"><span class="identifier">a</span></tt>, and for
|
||||
each element, <tt class="computeroutput"><span class="identifier">e2</span></tt>, in
|
||||
sequence <tt class="computeroutput"><span class="identifier">b</span></tt>, <tt class="computeroutput"><span class="identifier">a</span> <span class="special">==</span> <span class="identifier">b</span></tt> is a valid expression returning a
|
||||
For each element, <code class="computeroutput"><span class="identifier">e1</span></code>,
|
||||
in sequence <code class="computeroutput"><span class="identifier">a</span></code>, and for
|
||||
each element, <code class="computeroutput"><span class="identifier">e2</span></code>, in
|
||||
sequence <code class="computeroutput"><span class="identifier">b</span></code>, <code class="computeroutput"><span class="identifier">a</span> <span class="special">==</span> <span class="identifier">b</span></code> is a valid expression returning a
|
||||
type that is convertible to bool.
|
||||
</p>
|
||||
<p>
|
||||
@@ -93,30 +93,30 @@
|
||||
compile time error.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>:
|
||||
<span class="bold"><strong>Semantics</strong></span>:
|
||||
</p>
|
||||
<p>
|
||||
For each element, <tt class="computeroutput"><span class="identifier">e1</span></tt>,
|
||||
in sequence <tt class="computeroutput"><span class="identifier">a</span></tt>, and for
|
||||
each element, <tt class="computeroutput"><span class="identifier">e2</span></tt>, in
|
||||
sequence <tt class="computeroutput"><span class="identifier">b</span></tt>, <tt class="computeroutput"><span class="identifier">e1</span> <span class="special">==</span> <span class="identifier">e2</span></tt> returns true. For any 2 zero length
|
||||
For each element, <code class="computeroutput"><span class="identifier">e1</span></code>,
|
||||
in sequence <code class="computeroutput"><span class="identifier">a</span></code>, and for
|
||||
each element, <code class="computeroutput"><span class="identifier">e2</span></code>, in
|
||||
sequence <code class="computeroutput"><span class="identifier">b</span></code>, <code class="computeroutput"><span class="identifier">e1</span> <span class="special">==</span> <span class="identifier">e2</span></code> returns true. For any 2 zero length
|
||||
<span class="underline">_sequence</span>_s, e and f, e == f returns
|
||||
true.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.comparison.equal.header"></a><h6>
|
||||
<a name="id546175"></a>
|
||||
<a name="id1075732"></a>
|
||||
<a href="equal.html#fusion.sequences.operators.comparison.equal.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">comparison</span><span class="special">/</span><span class="identifier">equal_to</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.comparison.equal.example"></a><h6>
|
||||
<a name="id546280"></a>
|
||||
<a name="id1076032"></a>
|
||||
<a href="equal.html#fusion.sequences.operators.comparison.equal.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v1</span> <span class="special">==</span> <span class="identifier">v2</span><span class="special">);</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<title>greater
|
||||
than</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../comparison.html" title="Comparison">
|
||||
<link rel="prev" href="less_than_equal.html" title="less
|
||||
@@ -34,7 +34,7 @@
|
||||
Lexicographically compare two sequences.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.comparison.greater_than.synopsis"></a><h6>
|
||||
<a name="id549144"></a>
|
||||
<a name="id1078566"></a>
|
||||
<a href="greater_than.html#fusion.sequences.operators.comparison.greater_than.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -43,7 +43,7 @@
|
||||
<span class="keyword">operator</span><span class="special">>(</span><span class="identifier">Seq1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">a</span><span class="special">,</span> <span class="identifier">Seq2</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">b</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.comparison.greater_than.parameters"></a><h6>
|
||||
<a name="id549298"></a>
|
||||
<a name="id1078702"></a>
|
||||
<a href="greater_than.html#fusion.sequences.operators.comparison.greater_than.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -58,8 +58,8 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></code></td>
|
||||
<td>Instances
|
||||
of <a href="../../../sequences.html" title="Sequences">Sequence</a>
|
||||
</td>
|
||||
@@ -68,7 +68,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.operators.comparison.greater_than.expression_semantics"></a><h6>
|
||||
<a name="id549402"></a>
|
||||
<a name="id1078794"></a>
|
||||
<a href="greater_than.html#fusion.sequences.operators.comparison.greater_than.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -76,16 +76,16 @@
|
||||
<span class="identifier">a</span> <span class="special">></span> <span class="identifier">b</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Requirements</b></span>:
|
||||
<span class="bold"><strong>Requirements</strong></span>:
|
||||
</p>
|
||||
<p>
|
||||
For each element, <tt class="computeroutput"><span class="identifier">e1</span></tt>,
|
||||
in sequence <tt class="computeroutput"><span class="identifier">a</span></tt>, and for
|
||||
each element, <tt class="computeroutput"><span class="identifier">e2</span></tt>, in
|
||||
sequence <tt class="computeroutput"><span class="identifier">b</span></tt>, <tt class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></tt> is a valid expression returning a
|
||||
For each element, <code class="computeroutput"><span class="identifier">e1</span></code>,
|
||||
in sequence <code class="computeroutput"><span class="identifier">a</span></code>, and for
|
||||
each element, <code class="computeroutput"><span class="identifier">e2</span></code>, in
|
||||
sequence <code class="computeroutput"><span class="identifier">b</span></code>, <code class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></code> is a valid expression returning a
|
||||
type that is convertible to bool.
|
||||
</p>
|
||||
<p>
|
||||
@@ -93,23 +93,23 @@
|
||||
compile time error.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns b < a.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns b < a.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.comparison.greater_than.header"></a><h6>
|
||||
<a name="id549570"></a>
|
||||
<a name="id1078942"></a>
|
||||
<a href="greater_than.html#fusion.sequences.operators.comparison.greater_than.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">comparison</span><span class="special">/</span><span class="identifier">less_equal</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.comparison.greater_than.example"></a><h6>
|
||||
<a name="id549676"></a>
|
||||
<a name="id1079035"></a>
|
||||
<a href="greater_than.html#fusion.sequences.operators.comparison.greater_than.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v2</span> <span class="special">></span> <span class="identifier">v1</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v3</span> <span class="special">></span> <span class="identifier">v2</span><span class="special">);</span>
|
||||
</pre>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<title>greater
|
||||
than equal</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../comparison.html" title="Comparison">
|
||||
<link rel="prev" href="greater_than.html" title="greater
|
||||
@@ -33,7 +33,7 @@
|
||||
Lexicographically compare two sequences.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.comparison.greater_than_equal.synopsis"></a><h6>
|
||||
<a name="id550027"></a>
|
||||
<a name="id1079347"></a>
|
||||
<a href="greater_than_equal.html#fusion.sequences.operators.comparison.greater_than_equal.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -42,7 +42,7 @@
|
||||
<span class="keyword">operator</span><span class="special">>=(</span><span class="identifier">Seq1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">a</span><span class="special">,</span> <span class="identifier">Seq2</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">b</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.comparison.greater_than_equal.parameters"></a><h6>
|
||||
<a name="id550182"></a>
|
||||
<a name="id1079485"></a>
|
||||
<a href="greater_than_equal.html#fusion.sequences.operators.comparison.greater_than_equal.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -57,8 +57,8 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></code></td>
|
||||
<td>Instances
|
||||
of <a href="../../../sequences.html" title="Sequences">Sequence</a>
|
||||
</td>
|
||||
@@ -67,7 +67,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.operators.comparison.greater_than_equal.expression_semantics"></a><h6>
|
||||
<a name="id550286"></a>
|
||||
<a name="id1079576"></a>
|
||||
<a href="greater_than_equal.html#fusion.sequences.operators.comparison.greater_than_equal.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -75,16 +75,16 @@
|
||||
<span class="identifier">a</span> <span class="special">>=</span> <span class="identifier">b</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Requirements</b></span>:
|
||||
<span class="bold"><strong>Requirements</strong></span>:
|
||||
</p>
|
||||
<p>
|
||||
For each element, <tt class="computeroutput"><span class="identifier">e1</span></tt>,
|
||||
in sequence <tt class="computeroutput"><span class="identifier">a</span></tt>, and for
|
||||
each element, <tt class="computeroutput"><span class="identifier">e2</span></tt>, in
|
||||
sequence <tt class="computeroutput"><span class="identifier">b</span></tt>, <tt class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></tt> is a valid expression returning a
|
||||
For each element, <code class="computeroutput"><span class="identifier">e1</span></code>,
|
||||
in sequence <code class="computeroutput"><span class="identifier">a</span></code>, and for
|
||||
each element, <code class="computeroutput"><span class="identifier">e2</span></code>, in
|
||||
sequence <code class="computeroutput"><span class="identifier">b</span></code>, <code class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></code> is a valid expression returning a
|
||||
type that is convertible to bool.
|
||||
</p>
|
||||
<p>
|
||||
@@ -92,23 +92,23 @@
|
||||
compile time error.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns !(a < b).
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns !(a < b).
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.comparison.greater_than_equal.header"></a><h6>
|
||||
<a name="id550454"></a>
|
||||
<a name="id1079725"></a>
|
||||
<a href="greater_than_equal.html#fusion.sequences.operators.comparison.greater_than_equal.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">comparison</span><span class="special">/</span><span class="identifier">greater_equal</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.comparison.greater_than_equal.example"></a><h6>
|
||||
<a name="id550561"></a>
|
||||
<a name="id1079820"></a>
|
||||
<a href="greater_than_equal.html#fusion.sequences.operators.comparison.greater_than_equal.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v2</span> <span class="special">>=</span> <span class="identifier">v1</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v3</span> <span class="special">>=</span> <span class="identifier">v2</span><span class="special">);</span>
|
||||
</pre>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<title>less
|
||||
than</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../comparison.html" title="Comparison">
|
||||
<link rel="prev" href="not_equal.html" title="not
|
||||
@@ -34,7 +34,7 @@
|
||||
Lexicographically compare two sequences.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.comparison.less_than.synopsis"></a><h6>
|
||||
<a name="id547359"></a>
|
||||
<a name="id1076987"></a>
|
||||
<a href="less_than.html#fusion.sequences.operators.comparison.less_than.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -43,7 +43,7 @@
|
||||
<span class="keyword">operator</span><span class="special"><(</span><span class="identifier">Seq1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">a</span><span class="special">,</span> <span class="identifier">Seq2</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">b</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.comparison.less_than.parameters"></a><h6>
|
||||
<a name="id547514"></a>
|
||||
<a name="id1077123"></a>
|
||||
<a href="less_than.html#fusion.sequences.operators.comparison.less_than.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -58,8 +58,8 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></code></td>
|
||||
<td>Instances
|
||||
of <a href="../../../sequences.html" title="Sequences">Sequence</a>
|
||||
</td>
|
||||
@@ -68,7 +68,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.operators.comparison.less_than.expression_semantics"></a><h6>
|
||||
<a name="id547618"></a>
|
||||
<a name="id1077215"></a>
|
||||
<a href="less_than.html#fusion.sequences.operators.comparison.less_than.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -76,16 +76,16 @@
|
||||
<span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Requirements</b></span>:
|
||||
<span class="bold"><strong>Requirements</strong></span>:
|
||||
</p>
|
||||
<p>
|
||||
For each element, <tt class="computeroutput"><span class="identifier">e1</span></tt>,
|
||||
in sequence <tt class="computeroutput"><span class="identifier">a</span></tt>, and for
|
||||
each element, <tt class="computeroutput"><span class="identifier">e2</span></tt>, in
|
||||
sequence <tt class="computeroutput"><span class="identifier">b</span></tt>, <tt class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></tt> is a valid expression returning a
|
||||
For each element, <code class="computeroutput"><span class="identifier">e1</span></code>,
|
||||
in sequence <code class="computeroutput"><span class="identifier">a</span></code>, and for
|
||||
each element, <code class="computeroutput"><span class="identifier">e2</span></code>, in
|
||||
sequence <code class="computeroutput"><span class="identifier">b</span></code>, <code class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></code> is a valid expression returning a
|
||||
type that is convertible to bool.
|
||||
</p>
|
||||
<p>
|
||||
@@ -93,25 +93,25 @@
|
||||
compile time error.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns the lexicographical
|
||||
comparison of between <tt class="computeroutput"><span class="identifier">a</span></tt>
|
||||
and <tt class="computeroutput"><span class="identifier">b</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns the lexicographical
|
||||
comparison of between <code class="computeroutput"><span class="identifier">a</span></code>
|
||||
and <code class="computeroutput"><span class="identifier">b</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.comparison.less_than.header"></a><h6>
|
||||
<a name="id547805"></a>
|
||||
<a name="id1077382"></a>
|
||||
<a href="less_than.html#fusion.sequences.operators.comparison.less_than.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">comparison</span><span class="special">/</span><span class="identifier">less</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.comparison.less_than.example"></a><h6>
|
||||
<a name="id547911"></a>
|
||||
<a name="id1077475"></a>
|
||||
<a href="less_than.html#fusion.sequences.operators.comparison.less_than.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v1</span> <span class="special"><</span> <span class="identifier">v2</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v2</span> <span class="special"><</span> <span class="identifier">v3</span><span class="special">);</span>
|
||||
</pre>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<title>less
|
||||
than equal</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../comparison.html" title="Comparison">
|
||||
<link rel="prev" href="less_than.html" title="less
|
||||
@@ -34,7 +34,7 @@
|
||||
Lexicographically compare two sequences.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.comparison.less_than_equal.synopsis"></a><h6>
|
||||
<a name="id548260"></a>
|
||||
<a name="id1077785"></a>
|
||||
<a href="less_than_equal.html#fusion.sequences.operators.comparison.less_than_equal.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -43,7 +43,7 @@
|
||||
<span class="keyword">operator</span><span class="special"><=(</span><span class="identifier">Seq1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">a</span><span class="special">,</span> <span class="identifier">Seq2</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">b</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.comparison.less_than_equal.parameters"></a><h6>
|
||||
<a name="id548416"></a>
|
||||
<a name="id1077923"></a>
|
||||
<a href="less_than_equal.html#fusion.sequences.operators.comparison.less_than_equal.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -58,8 +58,8 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></code></td>
|
||||
<td>Instances
|
||||
of <a href="../../../sequences.html" title="Sequences">Sequence</a>
|
||||
</td>
|
||||
@@ -68,7 +68,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.operators.comparison.less_than_equal.expression_semantics"></a><h6>
|
||||
<a name="id548521"></a>
|
||||
<a name="id1078015"></a>
|
||||
<a href="less_than_equal.html#fusion.sequences.operators.comparison.less_than_equal.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -76,16 +76,16 @@
|
||||
<span class="identifier">a</span> <span class="special"><=</span> <span class="identifier">b</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Requirements</b></span>:
|
||||
<span class="bold"><strong>Requirements</strong></span>:
|
||||
</p>
|
||||
<p>
|
||||
For each element, <tt class="computeroutput"><span class="identifier">e1</span></tt>,
|
||||
in sequence <tt class="computeroutput"><span class="identifier">a</span></tt>, and for
|
||||
each element, <tt class="computeroutput"><span class="identifier">e2</span></tt>, in
|
||||
sequence <tt class="computeroutput"><span class="identifier">b</span></tt>, <tt class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></tt> is a valid expression returning a
|
||||
For each element, <code class="computeroutput"><span class="identifier">e1</span></code>,
|
||||
in sequence <code class="computeroutput"><span class="identifier">a</span></code>, and for
|
||||
each element, <code class="computeroutput"><span class="identifier">e2</span></code>, in
|
||||
sequence <code class="computeroutput"><span class="identifier">b</span></code>, <code class="computeroutput"><span class="identifier">a</span> <span class="special"><</span> <span class="identifier">b</span></code> is a valid expression returning a
|
||||
type that is convertible to bool.
|
||||
</p>
|
||||
<p>
|
||||
@@ -93,23 +93,23 @@
|
||||
compile time error.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: Returns !(b < a).
|
||||
<span class="bold"><strong>Semantics</strong></span>: Returns !(b < a).
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.comparison.less_than_equal.header"></a><h6>
|
||||
<a name="id548689"></a>
|
||||
<a name="id1078163"></a>
|
||||
<a href="less_than_equal.html#fusion.sequences.operators.comparison.less_than_equal.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">comparison</span><span class="special">/</span><span class="identifier">less_equal</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.comparison.less_than_equal.example"></a><h6>
|
||||
<a name="id548796"></a>
|
||||
<a name="id1078256"></a>
|
||||
<a href="less_than_equal.html#fusion.sequences.operators.comparison.less_than_equal.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">4</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">short</span><span class="special">,</span> <span class="keyword">float</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">3.3f</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">long</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="number">4.4</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v1</span> <span class="special"><=</span> <span class="identifier">v2</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v2</span> <span class="special"><=</span> <span class="identifier">v3</span><span class="special">);</span>
|
||||
</pre>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<title>not
|
||||
equal</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../comparison.html" title="Comparison">
|
||||
<link rel="prev" href="equal.html" title="equal">
|
||||
@@ -33,7 +33,7 @@
|
||||
Compare two sequences for inequality.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.comparison.not_equal.synopsis"></a><h6>
|
||||
<a name="id546520"></a>
|
||||
<a name="id1076244"></a>
|
||||
<a href="not_equal.html#fusion.sequences.operators.comparison.not_equal.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -42,7 +42,7 @@
|
||||
<span class="keyword">operator</span><span class="special">!=(</span><span class="identifier">Seq1</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">a</span><span class="special">,</span> <span class="identifier">Seq2</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">b</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.comparison.not_equal.parameters"></a><h6>
|
||||
<a name="id546674"></a>
|
||||
<a name="id1076380"></a>
|
||||
<a href="not_equal.html#fusion.sequences.operators.comparison.not_equal.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -57,8 +57,8 @@
|
||||
<th>Description</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">a</span><span class="special">,</span>
|
||||
<span class="identifier">b</span></code></td>
|
||||
<td>Instances
|
||||
of <a href="../../../sequences.html" title="Sequences">Sequence</a>
|
||||
</td>
|
||||
@@ -67,7 +67,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.operators.comparison.not_equal.expression_semantics"></a><h6>
|
||||
<a name="id546777"></a>
|
||||
<a name="id1076472"></a>
|
||||
<a href="not_equal.html#fusion.sequences.operators.comparison.not_equal.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -75,16 +75,16 @@
|
||||
<span class="identifier">a</span> <span class="special">!=</span> <span class="identifier">b</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: <tt class="computeroutput"><span class="keyword">bool</span></tt>
|
||||
<span class="bold"><strong>Return type</strong></span>: <code class="computeroutput"><span class="keyword">bool</span></code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Requirements</b></span>:
|
||||
<span class="bold"><strong>Requirements</strong></span>:
|
||||
</p>
|
||||
<p>
|
||||
For each element, <tt class="computeroutput"><span class="identifier">e1</span></tt>,
|
||||
in sequence <tt class="computeroutput"><span class="identifier">a</span></tt>, and for
|
||||
each element, <tt class="computeroutput"><span class="identifier">e2</span></tt>, in
|
||||
sequence <tt class="computeroutput"><span class="identifier">b</span></tt>, <tt class="computeroutput"><span class="identifier">a</span> <span class="special">==</span> <span class="identifier">b</span></tt> is a valid expression returning a
|
||||
For each element, <code class="computeroutput"><span class="identifier">e1</span></code>,
|
||||
in sequence <code class="computeroutput"><span class="identifier">a</span></code>, and for
|
||||
each element, <code class="computeroutput"><span class="identifier">e2</span></code>, in
|
||||
sequence <code class="computeroutput"><span class="identifier">b</span></code>, <code class="computeroutput"><span class="identifier">a</span> <span class="special">==</span> <span class="identifier">b</span></code> is a valid expression returning a
|
||||
type that is convertible to bool.
|
||||
</p>
|
||||
<p>
|
||||
@@ -92,25 +92,25 @@
|
||||
compile time error.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>:
|
||||
<span class="bold"><strong>Semantics</strong></span>:
|
||||
</p>
|
||||
<p>
|
||||
Returns !(a == b).
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.comparison.not_equal.header"></a><h6>
|
||||
<a name="id546948"></a>
|
||||
<a name="id1076480"></a>
|
||||
<a href="not_equal.html#fusion.sequences.operators.comparison.not_equal.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">comparison</span><span class="special">/</span><span class="identifier">not_equal_to</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.comparison.not_equal.example"></a><h6>
|
||||
<a name="id547053"></a>
|
||||
<a name="id1076716"></a>
|
||||
<a href="not_equal.html#fusion.sequences.operators.comparison.not_equal.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="char">'b'</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">t4</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">v3</span><span class="special">(</span><span class="number">5</span><span class="special">,</span> <span class="char">'b'</span><span class="special">);</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">t4</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="char">'a'</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v1</span> <span class="special">!=</span> <span class="identifier">v3</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(</span><span class="identifier">v1</span> <span class="special">!=</span> <span class="identifier">t4</span><span class="special">);</span>
|
||||
<span class="identifier">assert</span><span class="special">(!(</span><span class="identifier">v1</span> <span class="special">!=</span> <span class="identifier">v2</span><span class="special">));</span>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>I/O</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../operators.html" title="Operators">
|
||||
<link rel="prev" href="../operators.html" title="Operators">
|
||||
@@ -26,25 +26,25 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.operators.i_o"></a><a href="i_o.html" title="I/O">I/O</a></h4></div></div></div>
|
||||
<p>
|
||||
The I/O operators: <tt class="computeroutput"><span class="special"><<</span></tt>
|
||||
and <tt class="computeroutput"><span class="special">>></span></tt> work generically
|
||||
on all Fusion sequences. The global <tt class="computeroutput"><span class="keyword">operator</span><span class="special"><<</span></tt> has been overloaded for generic
|
||||
The I/O operators: <code class="computeroutput"><span class="special"><<</span></code>
|
||||
and <code class="computeroutput"><span class="special">>></span></code> work generically
|
||||
on all Fusion sequences. The global <code class="computeroutput"><span class="keyword">operator</span><span class="special"><<</span></code> has been overloaded for generic
|
||||
output streams such that <span class="underline">_sequence</span>_s
|
||||
are output by recursively calling <tt class="computeroutput"><span class="keyword">operator</span><span class="special"><<</span></tt> for each element. Analogously,
|
||||
the global <tt class="computeroutput"><span class="keyword">operator</span><span class="special">>></span></tt>
|
||||
are output by recursively calling <code class="computeroutput"><span class="keyword">operator</span><span class="special"><<</span></code> for each element. Analogously,
|
||||
the global <code class="computeroutput"><span class="keyword">operator</span><span class="special">>></span></code>
|
||||
has been overloaded to extract <span class="underline">_sequence</span>_s
|
||||
from generic input streams by recursively calling <tt class="computeroutput"><span class="keyword">operator</span><span class="special">>></span></tt> for each element.
|
||||
from generic input streams by recursively calling <code class="computeroutput"><span class="keyword">operator</span><span class="special">>></span></code> for each element.
|
||||
</p>
|
||||
<p>
|
||||
The default delimiter between the elements is space, and the <a href="../../sequences.html" title="Sequences">Sequence</a>
|
||||
is enclosed in parenthesis. For Example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">float</span><span class="special">,</span> <span class="keyword">int</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="identifier">a</span><span class="special">(</span><span class="number">1.0f</span><span class="special">,</span> <span class="number">2</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">"Howdy folks!"</span><span class="special">);</span>
|
||||
<a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">float</span><span class="special">,</span> <span class="keyword">int</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="identifier">a</span><span class="special">(</span><span class="number">1.0f</span><span class="special">,</span> <span class="number">2</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">"Howdy folks!"</span><span class="special">);</span>
|
||||
<span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">a</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
outputs the <a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a> as: (1.0 2 Howdy folks!)
|
||||
outputs the <a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> as: (1.0 2 Howdy folks!)
|
||||
</p>
|
||||
<p>
|
||||
The library defines three manipulators for changing the default behavior:
|
||||
@@ -52,23 +52,23 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Manipulators</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">tuple_open</span><span class="special">(</span><span class="identifier">arg</span><span class="special">)</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">tuple_open</span><span class="special">(</span><span class="identifier">arg</span><span class="special">)</span></code></span></dt>
|
||||
<dd>
|
||||
Defines the character that is output before the first element.
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">tuple_close</span><span class="special">(</span><span class="identifier">arg</span><span class="special">)</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">tuple_close</span><span class="special">(</span><span class="identifier">arg</span><span class="special">)</span></code></span></dt>
|
||||
<dd>
|
||||
Defines the character that is output after the last element.
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">tuple_delimiter</span><span class="special">(</span><span class="identifier">arg</span><span class="special">)</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">tuple_delimiter</span><span class="special">(</span><span class="identifier">arg</span><span class="special">)</span></code></span></dt>
|
||||
<dd>
|
||||
Defines the delimiter character between elements.
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
The argument to <tt class="computeroutput"><span class="identifier">tuple_open</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">tuple_close</span></tt> and <tt class="computeroutput"><span class="identifier">tuple_delimiter</span></tt> may be a <tt class="computeroutput"><span class="keyword">char</span></tt>, <tt class="computeroutput"><span class="keyword">wchar_t</span></tt>,
|
||||
The argument to <code class="computeroutput"><span class="identifier">tuple_open</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">tuple_close</span></code> and <code class="computeroutput"><span class="identifier">tuple_delimiter</span></code> may be a <code class="computeroutput"><span class="keyword">char</span></code>, <code class="computeroutput"><span class="keyword">wchar_t</span></code>,
|
||||
a C-string, or a wide C-string.
|
||||
</p>
|
||||
<p>
|
||||
@@ -78,12 +78,12 @@
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">tuple_open</span><span class="special">(</span><span class="char">'['</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">tuple_close</span><span class="special">(</span><span class="char">']'</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">tuple_delimiter</span><span class="special">(</span><span class="string">", "</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">a</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
outputs the same <a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>, <tt class="computeroutput"><span class="identifier">a</span></tt>
|
||||
outputs the same <a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a>, <code class="computeroutput"><span class="identifier">a</span></code>
|
||||
as: [1.0, 2, Howdy folks!]
|
||||
</p>
|
||||
<p>
|
||||
The same manipulators work with <tt class="computeroutput"><span class="keyword">operator</span><span class="special">>></span></tt> and <tt class="computeroutput"><span class="identifier">istream</span></tt>
|
||||
as well. Suppose the <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">cin</span></tt>
|
||||
The same manipulators work with <code class="computeroutput"><span class="keyword">operator</span><span class="special">>></span></code> and <code class="computeroutput"><span class="identifier">istream</span></code>
|
||||
as well. Suppose the <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">cin</span></code>
|
||||
stream contains the following data:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
@@ -93,8 +93,8 @@
|
||||
The code:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</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">></span> <span class="identifier">i</span><span class="special">;</span>
|
||||
<a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">j</span><span class="special">;</span>
|
||||
<a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</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">></span> <span class="identifier">i</span><span class="special">;</span>
|
||||
<a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">j</span><span class="special">;</span>
|
||||
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cin</span> <span class="special">>></span> <span class="identifier">i</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cin</span> <span class="special">>></span> <span class="identifier">set_open</span><span class="special">(</span><span class="char">'['</span><span class="special">)</span> <span class="special">>></span> <span class="identifier">set_close</span><span class="special">(</span><span class="char">']'</span><span class="special">)</span> <span class="special">>></span> <span class="identifier">set_delimiter</span><span class="special">(</span><span class="char">':'</span><span class="special">);</span>
|
||||
@@ -102,16 +102,16 @@
|
||||
</pre>
|
||||
<p>
|
||||
reads the data into the <span class="underline">_vector</span>_s
|
||||
<tt class="computeroutput"><span class="identifier">i</span></tt> and <tt class="computeroutput"><span class="identifier">j</span></tt>.
|
||||
<code class="computeroutput"><span class="identifier">i</span></code> and <code class="computeroutput"><span class="identifier">j</span></code>.
|
||||
</p>
|
||||
<p>
|
||||
Note that extracting <span class="underline">_sequence</span>_s
|
||||
with <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span></tt> or C-style string elements does
|
||||
with <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span></code> or C-style string elements does
|
||||
not generally work, since the streamed <a href="../../sequences.html" title="Sequences">Sequence</a>
|
||||
representation may not be unambiguously parseable.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.i_o.header"></a><h5>
|
||||
<a name="id544040"></a>
|
||||
<a name="id1074056"></a>
|
||||
<a href="i_o.html#fusion.sequences.operators.i_o.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>in</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../i_o.html" title="I/O">
|
||||
<link rel="prev" href="../i_o.html" title="I/O">
|
||||
@@ -26,7 +26,7 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.operators.i_o.in"></a><a href="in.html" title="in">in</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.operators.i_o.in.description"></a><h6>
|
||||
<a name="id544155"></a>
|
||||
<a name="id1074157"></a>
|
||||
<a href="in.html#fusion.sequences.operators.i_o.in.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
@@ -34,7 +34,7 @@
|
||||
stream.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.i_o.in.synopsis"></a><h6>
|
||||
<a name="id544194"></a>
|
||||
<a name="id1074191"></a>
|
||||
<a href="in.html#fusion.sequences.operators.i_o.in.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -43,7 +43,7 @@
|
||||
<span class="keyword">operator</span><span class="special">>>(</span><span class="identifier">IStream</span><span class="special">&</span> <span class="identifier">is</span><span class="special">,</span> <span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.i_o.in.parameters"></a><h6>
|
||||
<a name="id544340"></a>
|
||||
<a name="id1074319"></a>
|
||||
<a href="in.html#fusion.sequences.operators.i_o.in.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -73,7 +73,7 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.operators.i_o.in.expression_semantics"></a><h6>
|
||||
<a name="id544432"></a>
|
||||
<a name="id1074401"></a>
|
||||
<a href="in.html#fusion.sequences.operators.i_o.in.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -81,26 +81,26 @@
|
||||
<span class="identifier">is</span> <span class="special">>></span> <span class="identifier">seq</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: IStream&
|
||||
<span class="bold"><strong>Return type</strong></span>: IStream&
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: For each element, <tt class="computeroutput"><span class="identifier">e</span></tt>, in sequence, <tt class="computeroutput"><span class="identifier">seq</span></tt>,
|
||||
call <tt class="computeroutput"><span class="identifier">is</span> <span class="special">>></span>
|
||||
<span class="identifier">e</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: For each element, <code class="computeroutput"><span class="identifier">e</span></code>, in sequence, <code class="computeroutput"><span class="identifier">seq</span></code>,
|
||||
call <code class="computeroutput"><span class="identifier">is</span> <span class="special">>></span>
|
||||
<span class="identifier">e</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.i_o.in.header"></a><h6>
|
||||
<a name="id544548"></a>
|
||||
<a name="id1074503"></a>
|
||||
<a href="in.html#fusion.sequences.operators.i_o.in.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">io</span><span class="special">/</span><span class="identifier">in</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.i_o.in.example"></a><h6>
|
||||
<a name="id544651"></a>
|
||||
<a name="id1074594"></a>
|
||||
<a href="in.html#fusion.sequences.operators.i_o.in.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<a href="../../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</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="keyword">char</span><span class="special">></span> <span class="identifier">v</span><span class="special">;</span>
|
||||
<a href="../../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</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="keyword">char</span><span class="special">></span> <span class="identifier">v</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cin</span> <span class="special">>></span> <span class="identifier">v</span><span class="special">;</span>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>out</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../i_o.html" title="I/O">
|
||||
<link rel="prev" href="in.html" title="in">
|
||||
@@ -26,7 +26,7 @@
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.sequences.operators.i_o.out"></a><a href="out.html" title="out">out</a></h5></div></div></div>
|
||||
<a name="fusion.sequences.operators.i_o.out.description"></a><h6>
|
||||
<a name="id544811"></a>
|
||||
<a name="id1074734"></a>
|
||||
<a href="out.html#fusion.sequences.operators.i_o.out.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
@@ -34,7 +34,7 @@
|
||||
stream.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.i_o.out.synopsis"></a><h6>
|
||||
<a name="id544849"></a>
|
||||
<a name="id1074768"></a>
|
||||
<a href="out.html#fusion.sequences.operators.i_o.out.synopsis">Synopsis</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
@@ -43,7 +43,7 @@
|
||||
<span class="keyword">operator</span><span class="special"><<(</span><span class="identifier">OStream</span><span class="special">&</span> <span class="identifier">os</span><span class="special">,</span> <span class="identifier">Sequence</span><span class="special">&</span> <span class="identifier">seq</span><span class="special">);</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.i_o.out.parameters"></a><h6>
|
||||
<a name="id544995"></a>
|
||||
<a name="id1074895"></a>
|
||||
<a href="out.html#fusion.sequences.operators.i_o.out.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
@@ -73,7 +73,7 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.operators.i_o.out.expression_semantics"></a><h6>
|
||||
<a name="id545086"></a>
|
||||
<a name="id1074976"></a>
|
||||
<a href="out.html#fusion.sequences.operators.i_o.out.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
@@ -81,26 +81,26 @@
|
||||
<span class="identifier">os</span> <span class="special"><<</span> <span class="identifier">seq</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Return type</b></span>: OStream&
|
||||
<span class="bold"><strong>Return type</strong></span>: OStream&
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><b>Semantics</b></span>: For each element, <tt class="computeroutput"><span class="identifier">e</span></tt>, in sequence, <tt class="computeroutput"><span class="identifier">seq</span></tt>,
|
||||
call <tt class="computeroutput"><span class="identifier">os</span> <span class="special"><<</span>
|
||||
<span class="identifier">e</span></tt>.
|
||||
<span class="bold"><strong>Semantics</strong></span>: For each element, <code class="computeroutput"><span class="identifier">e</span></code>, in sequence, <code class="computeroutput"><span class="identifier">seq</span></code>,
|
||||
call <code class="computeroutput"><span class="identifier">os</span> <span class="special"><<</span>
|
||||
<span class="identifier">e</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.operators.i_o.out.header"></a><h6>
|
||||
<a name="id545200"></a>
|
||||
<a name="id1075078"></a>
|
||||
<a href="out.html#fusion.sequences.operators.i_o.out.header">Header</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">io</span><span class="special">/</span><span class="identifier">out</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.operators.i_o.out.example"></a><h6>
|
||||
<a name="id545304"></a>
|
||||
<a name="id1075169"></a>
|
||||
<a href="out.html#fusion.sequences.operators.i_o.out.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../../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">123</span><span class="special">,</span> <span class="string">"Hello"</span><span class="special">,</span> <span class="char">'x'</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <a href="../../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">123</span><span class="special">,</span> <span class="string">"Hello"</span><span class="special">,</span> <span class="char">'x'</span><span class="special">)</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Views</title>
|
||||
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../sequences.html" title="Sequences">
|
||||
<link rel="prev" href="containers/map.html" title="map">
|
||||
@@ -35,7 +35,7 @@
|
||||
very cheap to copy and be passed around by value.
|
||||
</p>
|
||||
<a name="fusion.sequences.views.header"></a><h4>
|
||||
<a name="id491238"></a>
|
||||
<a name="id974992"></a>
|
||||
<a href="views.html#fusion.sequences.views.header">Header</a>
|
||||
</h4>
|
||||
<pre class="programlisting">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>filter_view</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../views.html" title="Views">
|
||||
<link rel="prev" href="single_view.html" title="single_view">
|
||||
@@ -26,25 +26,25 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.views.filter_view"></a><a href="filter_view.html" title="filter_view">filter_view</a></h4></div></div></div>
|
||||
<a name="fusion.sequences.views.filter_view.description"></a><h5>
|
||||
<a name="id492172"></a>
|
||||
<a name="id975813"></a>
|
||||
<a href="filter_view.html#fusion.sequences.views.filter_view.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
<tt class="computeroutput"><span class="identifier">filter_view</span></tt> is a view into
|
||||
<code class="computeroutput"><span class="identifier">filter_view</span></code> is a view into
|
||||
a subset of its underlying sequence's elements satisfying a given predicate
|
||||
(an <a href="http://www.boost.org/libs/mpl/index.html" target="_top">MPL</a> metafunction).
|
||||
The <tt class="computeroutput"><span class="identifier">filter_view</span></tt> presents
|
||||
only those elements for which its predicate evaluates to <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></tt>.
|
||||
The <code class="computeroutput"><span class="identifier">filter_view</span></code> presents
|
||||
only those elements for which its predicate evaluates to <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">true_</span></code>.
|
||||
</p>
|
||||
<a name="fusion.sequences.views.filter_view.header"></a><h5>
|
||||
<a name="id492252"></a>
|
||||
<a name="id975883"></a>
|
||||
<a href="filter_view.html#fusion.sequences.views.filter_view.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">view</span><span class="special">/</span><span class="identifier">filter_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.views.filter_view.synopsis"></a><h5>
|
||||
<a name="id492356"></a>
|
||||
<a name="id975974"></a>
|
||||
<a href="filter_view.html#fusion.sequences.views.filter_view.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -52,7 +52,7 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">filter_view</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.views.filter_view.template_parameters"></a><h5>
|
||||
<a name="id492452"></a>
|
||||
<a name="id976058"></a>
|
||||
<a href="filter_view.html#fusion.sequences.views.filter_view.template_parameters">Template
|
||||
parameters</a>
|
||||
</h5>
|
||||
@@ -69,7 +69,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td>
|
||||
<td>A
|
||||
<a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -78,16 +78,16 @@
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Pred</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Pred</span></code></td>
|
||||
<td>Unary
|
||||
Metafunction returning an <tt class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">bool_</span></tt>
|
||||
Metafunction returning an <code class="computeroutput"><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">bool_</span></code>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.views.filter_view.model_of"></a><h5>
|
||||
<a name="id492574"></a>
|
||||
<a name="id976168"></a>
|
||||
<a href="filter_view.html#fusion.sequences.views.filter_view.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="../concepts/forward_sequence.html" title="Forward
|
||||
@@ -95,16 +95,16 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">F</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">F</span></code></span></dt>
|
||||
<dd>
|
||||
A <tt class="computeroutput"><span class="identifier">filter_view</span></tt> type
|
||||
A <code class="computeroutput"><span class="identifier">filter_view</span></code> type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">f</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">f2</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">f</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">f2</span></code></span></dt>
|
||||
<dd>
|
||||
Instances of <tt class="computeroutput"><span class="identifier">filter_view</span></tt>
|
||||
Instances of <code class="computeroutput"><span class="identifier">filter_view</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dd>
|
||||
A <a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -113,7 +113,7 @@
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.views.filter_view.expression_semantics"></a><h5>
|
||||
<a name="id492717"></a>
|
||||
<a name="id976292"></a>
|
||||
<a href="filter_view.html#fusion.sequences.views.filter_view.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -134,30 +134,30 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">F</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">F</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>Creates
|
||||
a <tt class="computeroutput"><span class="identifier">filter_view</span></tt> given
|
||||
a sequence, <tt class="computeroutput"><span class="identifier">s</span></tt>.</td>
|
||||
a <code class="computeroutput"><span class="identifier">filter_view</span></code> given
|
||||
a sequence, <code class="computeroutput"><span class="identifier">s</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">F</span><span class="special">(</span><span class="identifier">f</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">F</span><span class="special">(</span><span class="identifier">f</span><span class="special">)</span></code></td>
|
||||
<td>Copy
|
||||
constructs a <tt class="computeroutput"><span class="identifier">filter_view</span></tt>
|
||||
from another <tt class="computeroutput"><span class="identifier">filter_view</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">f</span></tt>.</td>
|
||||
constructs a <code class="computeroutput"><span class="identifier">filter_view</span></code>
|
||||
from another <code class="computeroutput"><span class="identifier">filter_view</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">f</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">f</span> <span class="special">=</span>
|
||||
<span class="identifier">f2</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">f</span> <span class="special">=</span>
|
||||
<span class="identifier">f2</span></code></td>
|
||||
<td>Assigns
|
||||
to a <tt class="computeroutput"><span class="identifier">filter_view</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">f</span></tt>, from another
|
||||
<tt class="computeroutput"><span class="identifier">filter_view</span></tt>, <tt class="computeroutput"><span class="identifier">f2</span></tt>.</td>
|
||||
to a <code class="computeroutput"><span class="identifier">filter_view</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">f</span></code>, from another
|
||||
<code class="computeroutput"><span class="identifier">filter_view</span></code>, <code class="computeroutput"><span class="identifier">f2</span></code>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.views.filter_view.example"></a><h5>
|
||||
<a name="id492975"></a>
|
||||
<a name="id976520"></a>
|
||||
<a href="filter_view.html#fusion.sequences.views.filter_view.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -165,7 +165,7 @@
|
||||
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">mpl</span><span class="special">::</span><span class="identifier">not_</span><span class="special">;</span>
|
||||
<span class="keyword">using</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">is_class</span><span class="special">;</span>
|
||||
|
||||
<span class="keyword">typedef</span> <a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">long</span><span class="special">,</span> <span class="keyword">bool</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">vector_type</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">long</span><span class="special">,</span> <span class="keyword">bool</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">vector_type</span><span class="special">;</span>
|
||||
|
||||
<span class="identifier">vector_type</span> <span class="identifier">v</span><span class="special">(</span><span class="string">"a-string"</span><span class="special">,</span> <span class="char">'@'</span><span class="special">,</span> <span class="number">987654</span><span class="special">,</span> <span class="keyword">true</span><span class="special">,</span> <span class="number">6.6</span><span class="special">);</span>
|
||||
<span class="identifier">filter_view</span><span class="special"><</span><span class="identifier">vector_type</span> <span class="keyword">const</span><span class="special">,</span> <span class="identifier">not_</span><span class="special"><</span><span class="identifier">is_class</span><span class="special"><</span><span class="identifier">_</span><span class="special">></span> <span class="special">></span> <span class="special">></span> <span class="identifier">view</span><span class="special">(</span><span class="identifier">v</span><span class="special">);</span>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>iterator_range</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../views.html" title="Views">
|
||||
<link rel="prev" href="filter_view.html" title="filter_view">
|
||||
@@ -26,22 +26,22 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.views.iterator_range"></a><a href="iterator_range.html" title="iterator_range">iterator_range</a></h4></div></div></div>
|
||||
<a name="fusion.sequences.views.iterator_range.description"></a><h5>
|
||||
<a name="id493451"></a>
|
||||
<a name="id976940"></a>
|
||||
<a href="iterator_range.html#fusion.sequences.views.iterator_range.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
<tt class="computeroutput"><span class="identifier">iterator_range</span></tt> presents
|
||||
<code class="computeroutput"><span class="identifier">iterator_range</span></code> presents
|
||||
a sub-range of its underlying sequence delimited by a pair of iterators.
|
||||
</p>
|
||||
<a name="fusion.sequences.views.iterator_range.header"></a><h5>
|
||||
<a name="id493494"></a>
|
||||
<a name="id976978"></a>
|
||||
<a href="iterator_range.html#fusion.sequences.views.iterator_range.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">view</span><span class="special">/</span><span class="identifier">iterator_range</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.views.iterator_range.synopsis"></a><h5>
|
||||
<a name="id493598"></a>
|
||||
<a name="id977069"></a>
|
||||
<a href="iterator_range.html#fusion.sequences.views.iterator_range.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -49,7 +49,7 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">iterator_range</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.views.iterator_range.template_parameters"></a><h5>
|
||||
<a name="id493695"></a>
|
||||
<a name="id977154"></a>
|
||||
<a href="iterator_range.html#fusion.sequences.views.iterator_range.template_parameters">Template
|
||||
parameters</a>
|
||||
</h5>
|
||||
@@ -66,14 +66,14 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">First</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">First</span></code></td>
|
||||
<td>A
|
||||
fusion <a href="../../iterators.html" title="Iterators">Iterator</a>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Last</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Last</span></code></td>
|
||||
<td>A
|
||||
fusion <a href="../../iterators.html" title="Iterators">Iterator</a>
|
||||
</td>
|
||||
@@ -82,7 +82,7 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.views.iterator_range.model_of"></a><h5>
|
||||
<a name="id493806"></a>
|
||||
<a name="id977252"></a>
|
||||
<a href="iterator_range.html#fusion.sequences.views.iterator_range.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="../concepts/forward_sequence.html" title="Forward
|
||||
@@ -90,27 +90,27 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">IR</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">IR</span></code></span></dt>
|
||||
<dd>
|
||||
An <tt class="computeroutput"><span class="identifier">iterator_range</span></tt> type
|
||||
An <code class="computeroutput"><span class="identifier">iterator_range</span></code> type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">f</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">f</span></code></span></dt>
|
||||
<dd>
|
||||
An instance of <tt class="computeroutput"><span class="identifier">First</span></tt>
|
||||
An instance of <code class="computeroutput"><span class="identifier">First</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">l</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">l</span></code></span></dt>
|
||||
<dd>
|
||||
An instance of <tt class="computeroutput"><span class="identifier">Last</span></tt>
|
||||
An instance of <code class="computeroutput"><span class="identifier">Last</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">ir</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">ir2</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">ir</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">ir2</span></code></span></dt>
|
||||
<dd>
|
||||
Instances of <tt class="computeroutput"><span class="identifier">iterator_range</span></tt>
|
||||
Instances of <code class="computeroutput"><span class="identifier">iterator_range</span></code>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.views.iterator_range.expression_semantics"></a><h5>
|
||||
<a name="id493978"></a>
|
||||
<a name="id977402"></a>
|
||||
<a href="iterator_range.html#fusion.sequences.views.iterator_range.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -131,43 +131,43 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">IR</span><span class="special">(</span><span class="identifier">f</span><span class="special">,</span> <span class="identifier">l</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">IR</span><span class="special">(</span><span class="identifier">f</span><span class="special">,</span> <span class="identifier">l</span><span class="special">)</span></code></td>
|
||||
<td>Creates
|
||||
an <tt class="computeroutput"><span class="identifier">iterator_range</span></tt>
|
||||
given iterators, <tt class="computeroutput"><span class="identifier">f</span></tt>
|
||||
and <tt class="computeroutput"><span class="identifier">l</span></tt>.</td>
|
||||
an <code class="computeroutput"><span class="identifier">iterator_range</span></code>
|
||||
given iterators, <code class="computeroutput"><span class="identifier">f</span></code>
|
||||
and <code class="computeroutput"><span class="identifier">l</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">IR</span><span class="special">(</span><span class="identifier">ir</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">IR</span><span class="special">(</span><span class="identifier">ir</span><span class="special">)</span></code></td>
|
||||
<td>Copy
|
||||
constructs an <tt class="computeroutput"><span class="identifier">iterator_range</span></tt>
|
||||
from another <tt class="computeroutput"><span class="identifier">iterator_range</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">ir</span></tt>.</td>
|
||||
constructs an <code class="computeroutput"><span class="identifier">iterator_range</span></code>
|
||||
from another <code class="computeroutput"><span class="identifier">iterator_range</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">ir</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">ir</span> <span class="special">=</span>
|
||||
<span class="identifier">ir2</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">ir</span> <span class="special">=</span>
|
||||
<span class="identifier">ir2</span></code></td>
|
||||
<td>Assigns
|
||||
to a <tt class="computeroutput"><span class="identifier">iterator_range</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">ir</span></tt>, from another
|
||||
<tt class="computeroutput"><span class="identifier">iterator_range</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">ir2</span></tt>.</td>
|
||||
to a <code class="computeroutput"><span class="identifier">iterator_range</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">ir</span></code>, from another
|
||||
<code class="computeroutput"><span class="identifier">iterator_range</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">ir2</span></code>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.views.iterator_range.example"></a><h5>
|
||||
<a name="id494257"></a>
|
||||
<a name="id977648"></a>
|
||||
<a href="iterator_range.html#fusion.sequences.views.iterator_range.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">char</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">s</span> <span class="special">=</span> <span class="string">"Ruby"</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span> <span class="keyword">const</span><span class="special">*></span> <span class="identifier">vector_type</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span> <span class="keyword">const</span><span class="special">*></span> <span class="identifier">vector_type</span><span class="special">;</span>
|
||||
<span class="identifier">vector_type</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">1</span><span class="special">,</span> <span class="char">'x'</span><span class="special">,</span> <span class="number">3.3</span><span class="special">,</span> <span class="identifier">s</span><span class="special">);</span>
|
||||
|
||||
<span class="keyword">typedef</span> <a href="../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"><</span><span class="identifier">vector_type</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">A</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../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"><</span><span class="identifier">vector_type</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">B</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../../iterators/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"><</span><span class="identifier">A</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">C</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../../iterators/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"><</span><span class="identifier">B</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">D</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../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"><</span><span class="identifier">vector_type</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">A</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../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"><</span><span class="identifier">vector_type</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">B</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../../iterators/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"><</span><span class="identifier">A</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">C</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../../iterators/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"><</span><span class="identifier">B</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">D</span><span class="special">;</span>
|
||||
|
||||
<span class="identifier">C</span> <span class="identifier">c</span><span class="special">(</span><span class="identifier">vec</span><span class="special">);</span>
|
||||
<span class="identifier">D</span> <span class="identifier">d</span><span class="special">(</span><span class="identifier">vec</span><span class="special">);</span>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>joint_view</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../views.html" title="Views">
|
||||
<link rel="prev" href="iterator_range.html" title="iterator_range">
|
||||
@@ -26,22 +26,22 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.views.joint_view"></a><a href="joint_view.html" title="joint_view">joint_view</a></h4></div></div></div>
|
||||
<a name="fusion.sequences.views.joint_view.description"></a><h5>
|
||||
<a name="id494925"></a>
|
||||
<a name="id978237"></a>
|
||||
<a href="joint_view.html#fusion.sequences.views.joint_view.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
<tt class="computeroutput"><span class="identifier">joint_view</span></tt> presents a view
|
||||
<code class="computeroutput"><span class="identifier">joint_view</span></code> presents a view
|
||||
which is a concatenation of two sequences.
|
||||
</p>
|
||||
<a name="fusion.sequences.views.joint_view.header"></a><h5>
|
||||
<a name="id494965"></a>
|
||||
<a name="id978272"></a>
|
||||
<a href="joint_view.html#fusion.sequences.views.joint_view.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">view</span><span class="special">/</span><span class="identifier">joint_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.views.joint_view.synopsis"></a><h5>
|
||||
<a name="id495070"></a>
|
||||
<a name="id978364"></a>
|
||||
<a href="joint_view.html#fusion.sequences.views.joint_view.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -49,7 +49,7 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">joint_view</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.views.joint_view.template_parameters"></a><h5>
|
||||
<a name="id495166"></a>
|
||||
<a name="id978449"></a>
|
||||
<a href="joint_view.html#fusion.sequences.views.joint_view.template_parameters">Template
|
||||
parameters</a>
|
||||
</h5>
|
||||
@@ -66,7 +66,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Sequence1</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Sequence1</span></code></td>
|
||||
<td>A
|
||||
<a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -75,7 +75,7 @@
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Sequence2</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Sequence2</span></code></td>
|
||||
<td>A
|
||||
<a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -86,7 +86,7 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.views.joint_view.model_of"></a><h5>
|
||||
<a name="id495278"></a>
|
||||
<a name="id978548"></a>
|
||||
<a href="joint_view.html#fusion.sequences.views.joint_view.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="../concepts/forward_sequence.html" title="Forward
|
||||
@@ -94,27 +94,27 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">JV</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">JV</span></code></span></dt>
|
||||
<dd>
|
||||
A <tt class="computeroutput"><span class="identifier">joint_view</span></tt> type
|
||||
A <code class="computeroutput"><span class="identifier">joint_view</span></code> type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s1</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s1</span></code></span></dt>
|
||||
<dd>
|
||||
An instance of <tt class="computeroutput"><span class="identifier">Sequence1</span></tt>
|
||||
An instance of <code class="computeroutput"><span class="identifier">Sequence1</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s2</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s2</span></code></span></dt>
|
||||
<dd>
|
||||
An instance of <tt class="computeroutput"><span class="identifier">Sequence2</span></tt>
|
||||
An instance of <code class="computeroutput"><span class="identifier">Sequence2</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">jv</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">jv2</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">jv</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">jv2</span></code></span></dt>
|
||||
<dd>
|
||||
Instances of <tt class="computeroutput"><span class="identifier">joint_view</span></tt>
|
||||
Instances of <code class="computeroutput"><span class="identifier">joint_view</span></code>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.views.joint_view.expression_semantics"></a><h5>
|
||||
<a name="id495449"></a>
|
||||
<a name="id996174"></a>
|
||||
<a href="joint_view.html#fusion.sequences.views.joint_view.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -135,39 +135,39 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">JV</span><span class="special">(</span><span class="identifier">s1</span><span class="special">,</span> <span class="identifier">s2</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">JV</span><span class="special">(</span><span class="identifier">s1</span><span class="special">,</span> <span class="identifier">s2</span><span class="special">)</span></code></td>
|
||||
<td>Creates
|
||||
a <tt class="computeroutput"><span class="identifier">joint_view</span></tt> given
|
||||
sequences, <tt class="computeroutput"><span class="identifier">s1</span></tt> and
|
||||
<tt class="computeroutput"><span class="identifier">s2</span></tt>.</td>
|
||||
a <code class="computeroutput"><span class="identifier">joint_view</span></code> given
|
||||
sequences, <code class="computeroutput"><span class="identifier">s1</span></code> and
|
||||
<code class="computeroutput"><span class="identifier">s2</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">JV</span><span class="special">(</span><span class="identifier">jv</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">JV</span><span class="special">(</span><span class="identifier">jv</span><span class="special">)</span></code></td>
|
||||
<td>Copy
|
||||
constructs a <tt class="computeroutput"><span class="identifier">joint_view</span></tt>
|
||||
from another <tt class="computeroutput"><span class="identifier">joint_view</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">jv</span></tt>.</td>
|
||||
constructs a <code class="computeroutput"><span class="identifier">joint_view</span></code>
|
||||
from another <code class="computeroutput"><span class="identifier">joint_view</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">jv</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">jv</span> <span class="special">=</span>
|
||||
<span class="identifier">jv2</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">jv</span> <span class="special">=</span>
|
||||
<span class="identifier">jv2</span></code></td>
|
||||
<td>Assigns
|
||||
to a <tt class="computeroutput"><span class="identifier">joint_view</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">jv</span></tt>, from another
|
||||
<tt class="computeroutput"><span class="identifier">joint_view</span></tt>, <tt class="computeroutput"><span class="identifier">jv2</span></tt>.</td>
|
||||
to a <code class="computeroutput"><span class="identifier">joint_view</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">jv</span></code>, from another
|
||||
<code class="computeroutput"><span class="identifier">joint_view</span></code>, <code class="computeroutput"><span class="identifier">jv2</span></code>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.views.joint_view.example"></a><h5>
|
||||
<a name="id495728"></a>
|
||||
<a name="id996420"></a>
|
||||
<a href="joint_view.html#fusion.sequences.views.joint_view.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">3</span><span class="special">,</span> <span class="char">'x'</span><span class="special">);</span>
|
||||
<a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="string">"hello"</span><span class="special">,</span> <span class="number">123</span><span class="special">);</span>
|
||||
<a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span> <span class="identifier">v1</span><span class="special">(</span><span class="number">3</span><span class="special">,</span> <span class="char">'x'</span><span class="special">);</span>
|
||||
<a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span> <span class="identifier">v2</span><span class="special">(</span><span class="string">"hello"</span><span class="special">,</span> <span class="number">123</span><span class="special">);</span>
|
||||
<span class="identifier">joint_view</span><span class="special"><</span>
|
||||
<a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span>
|
||||
<span class="special">,</span> <a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span>
|
||||
<a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">></span>
|
||||
<span class="special">,</span> <a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">,</span> <span class="keyword">int</span><span class="special">></span>
|
||||
<span class="special">></span> <span class="identifier">view</span><span class="special">(</span><span class="identifier">v1</span><span class="special">,</span> <span class="identifier">v2</span><span class="special">);</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">view</span> <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
||||
</pre>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>reverse_view</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../views.html" title="Views">
|
||||
<link rel="prev" href="transform_view.html" title="transform_view">
|
||||
@@ -26,19 +26,19 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.views.reverse_view"></a><a href="reverse_view.html" title="reverse_view">reverse_view</a></h4></div></div></div>
|
||||
<p>
|
||||
<tt class="computeroutput"><span class="identifier">reverse_view</span></tt> presents a
|
||||
<code class="computeroutput"><span class="identifier">reverse_view</span></code> presents a
|
||||
reversed view of underlying sequence. The first element will be its last
|
||||
and the last element will be its first.
|
||||
</p>
|
||||
<a name="fusion.sequences.views.reverse_view.header"></a><h5>
|
||||
<a name="id499080"></a>
|
||||
<a name="id999372"></a>
|
||||
<a href="reverse_view.html#fusion.sequences.views.reverse_view.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">view</span><span class="special">/</span><span class="identifier">reverse_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.views.reverse_view.synopsis"></a><h5>
|
||||
<a name="id499183"></a>
|
||||
<a name="id999463"></a>
|
||||
<a href="reverse_view.html#fusion.sequences.views.reverse_view.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -46,7 +46,7 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">reverse_view</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.views.reverse_view.template_parameters"></a><h5>
|
||||
<a name="id499261"></a>
|
||||
<a name="id999531"></a>
|
||||
<a href="reverse_view.html#fusion.sequences.views.reverse_view.template_parameters">Template
|
||||
parameters</a>
|
||||
</h5>
|
||||
@@ -62,7 +62,7 @@
|
||||
<th>Default</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td>
|
||||
<td>A
|
||||
<a href="../concepts/bidirectional_sequence.html" title="Bidirectional
|
||||
Sequence">Bidirectional
|
||||
@@ -72,7 +72,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.views.reverse_view.model_of"></a><h5>
|
||||
<a name="id499346"></a>
|
||||
<a name="id999608"></a>
|
||||
<a href="reverse_view.html#fusion.sequences.views.reverse_view.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="../concepts/bidirectional_sequence.html" title="Bidirectional
|
||||
@@ -81,23 +81,23 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">RV</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">RV</span></code></span></dt>
|
||||
<dd>
|
||||
A <tt class="computeroutput"><span class="identifier">reverse_view</span></tt> type
|
||||
A <code class="computeroutput"><span class="identifier">reverse_view</span></code> type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dd>
|
||||
An instance of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
|
||||
An instance of <code class="computeroutput"><span class="identifier">Sequence</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">rv</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">rv2</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">rv</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">rv2</span></code></span></dt>
|
||||
<dd>
|
||||
Instances of <tt class="computeroutput"><span class="identifier">reverse_view</span></tt>
|
||||
Instances of <code class="computeroutput"><span class="identifier">reverse_view</span></code>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.views.reverse_view.expression_semantics"></a><h5>
|
||||
<a name="id499490"></a>
|
||||
<a name="id999734"></a>
|
||||
<a href="reverse_view.html#fusion.sequences.views.reverse_view.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -118,34 +118,34 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">RV</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">RV</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>Creates
|
||||
a unary <tt class="computeroutput"><span class="identifier">reverse_view</span></tt>
|
||||
given sequence, <tt class="computeroutput"><span class="identifier">s</span></tt>.</td>
|
||||
a unary <code class="computeroutput"><span class="identifier">reverse_view</span></code>
|
||||
given sequence, <code class="computeroutput"><span class="identifier">s</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">RV</span><span class="special">(</span><span class="identifier">rv</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">RV</span><span class="special">(</span><span class="identifier">rv</span><span class="special">)</span></code></td>
|
||||
<td>Copy
|
||||
constructs a <tt class="computeroutput"><span class="identifier">reverse_view</span></tt>
|
||||
from another <tt class="computeroutput"><span class="identifier">reverse_view</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">rv</span></tt>.</td>
|
||||
constructs a <code class="computeroutput"><span class="identifier">reverse_view</span></code>
|
||||
from another <code class="computeroutput"><span class="identifier">reverse_view</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">rv</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">rv</span> <span class="special">=</span>
|
||||
<span class="identifier">rv2</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">rv</span> <span class="special">=</span>
|
||||
<span class="identifier">rv2</span></code></td>
|
||||
<td>Assigns
|
||||
to a <tt class="computeroutput"><span class="identifier">reverse_view</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">rv</span></tt>, from another
|
||||
<tt class="computeroutput"><span class="identifier">reverse_view</span></tt>, <tt class="computeroutput"><span class="identifier">rv2</span></tt>.</td>
|
||||
to a <code class="computeroutput"><span class="identifier">reverse_view</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">rv</span></code>, from another
|
||||
<code class="computeroutput"><span class="identifier">reverse_view</span></code>, <code class="computeroutput"><span class="identifier">rv2</span></code>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.views.reverse_view.example"></a><h5>
|
||||
<a name="id499750"></a>
|
||||
<a name="id999963"></a>
|
||||
<a href="reverse_view.html#fusion.sequences.views.reverse_view.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">short</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">vector_type</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">short</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">vector_type</span><span class="special">;</span>
|
||||
<span class="identifier">vector_type</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="number">5</span><span class="special">,</span> <span class="number">3.3</span><span class="special">);</span>
|
||||
|
||||
<span class="identifier">reverse_view</span><span class="special"><</span><span class="identifier">vector_type</span><span class="special">></span> <span class="identifier">reverse</span><span class="special">(</span><span class="identifier">vec</span><span class="special">);</span>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>single_view</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../views.html" title="Views">
|
||||
<link rel="prev" href="../views.html" title="Views">
|
||||
@@ -26,18 +26,18 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.views.single_view"></a><a href="single_view.html" title="single_view">single_view</a></h4></div></div></div>
|
||||
<p>
|
||||
<tt class="computeroutput"><span class="identifier">single_view</span></tt> is a view into
|
||||
<code class="computeroutput"><span class="identifier">single_view</span></code> is a view into
|
||||
a value as a single element sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.views.single_view.header"></a><h5>
|
||||
<a name="id491366"></a>
|
||||
<a name="id975104"></a>
|
||||
<a href="single_view.html#fusion.sequences.views.single_view.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">view</span><span class="special">/</span><span class="identifier">single_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.views.single_view.synopsis"></a><h5>
|
||||
<a name="id491469"></a>
|
||||
<a name="id975194"></a>
|
||||
<a href="single_view.html#fusion.sequences.views.single_view.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -45,7 +45,7 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">single_view</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.views.single_view.template_parameters"></a><h5>
|
||||
<a name="id491548"></a>
|
||||
<a name="id975262"></a>
|
||||
<a href="single_view.html#fusion.sequences.views.single_view.template_parameters">Template
|
||||
parameters</a>
|
||||
</h5>
|
||||
@@ -61,14 +61,14 @@
|
||||
<th>Default</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">T</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">T</span></code></td>
|
||||
<td>Any
|
||||
type</td>
|
||||
<td> </td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.views.single_view.model_of"></a><h5>
|
||||
<a name="id491625"></a>
|
||||
<a name="id975331"></a>
|
||||
<a href="single_view.html#fusion.sequences.views.single_view.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="../concepts/forward_sequence.html" title="Forward
|
||||
@@ -76,23 +76,23 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">S</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">S</span></code></span></dt>
|
||||
<dd>
|
||||
A <tt class="computeroutput"><span class="identifier">single_view</span></tt> type
|
||||
A <code class="computeroutput"><span class="identifier">single_view</span></code> type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">s2</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">s2</span></code></span></dt>
|
||||
<dd>
|
||||
Instances of <tt class="computeroutput"><span class="identifier">single_view</span></tt>
|
||||
Instances of <code class="computeroutput"><span class="identifier">single_view</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">x</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">x</span></code></span></dt>
|
||||
<dd>
|
||||
An instance of <tt class="computeroutput"><span class="identifier">T</span></tt>
|
||||
An instance of <code class="computeroutput"><span class="identifier">T</span></code>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.views.single_view.expression_semantics"></a><h5>
|
||||
<a name="id491767"></a>
|
||||
<a name="id975456"></a>
|
||||
<a href="single_view.html#fusion.sequences.views.single_view.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -113,30 +113,30 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">S</span><span class="special">(</span><span class="identifier">x</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">S</span><span class="special">(</span><span class="identifier">x</span><span class="special">)</span></code></td>
|
||||
<td>Creates
|
||||
a <tt class="computeroutput"><span class="identifier">single_view</span></tt> from
|
||||
<tt class="computeroutput"><span class="identifier">x</span></tt>.</td>
|
||||
a <code class="computeroutput"><span class="identifier">single_view</span></code> from
|
||||
<code class="computeroutput"><span class="identifier">x</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">S</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">S</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>Copy
|
||||
constructs a <tt class="computeroutput"><span class="identifier">single_view</span></tt>
|
||||
from another <tt class="computeroutput"><span class="identifier">single_view</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">s</span></tt>.</td>
|
||||
constructs a <code class="computeroutput"><span class="identifier">single_view</span></code>
|
||||
from another <code class="computeroutput"><span class="identifier">single_view</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">s</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">s</span> <span class="special">=</span>
|
||||
<span class="identifier">s2</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">s</span> <span class="special">=</span>
|
||||
<span class="identifier">s2</span></code></td>
|
||||
<td>Assigns
|
||||
to a <tt class="computeroutput"><span class="identifier">single_view</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">s</span></tt>, from another
|
||||
<tt class="computeroutput"><span class="identifier">single_view</span></tt>, <tt class="computeroutput"><span class="identifier">s2</span></tt>.</td>
|
||||
to a <code class="computeroutput"><span class="identifier">single_view</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">s</span></code>, from another
|
||||
<code class="computeroutput"><span class="identifier">single_view</span></code>, <code class="computeroutput"><span class="identifier">s2</span></code>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.views.single_view.example"></a><h5>
|
||||
<a name="id492023"></a>
|
||||
<a name="id975682"></a>
|
||||
<a href="single_view.html#fusion.sequences.views.single_view.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>transform_view</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../views.html" title="Views">
|
||||
<link rel="prev" href="zip_view.html" title="zip_view">
|
||||
@@ -26,40 +26,40 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.views.transform_view"></a><a href="transform_view.html" title="transform_view">transform_view</a></h4></div></div></div>
|
||||
<p>
|
||||
<tt class="computeroutput"><span class="identifier">transform_view</span></tt> presents
|
||||
<code class="computeroutput"><span class="identifier">transform_view</span></code> presents
|
||||
a transformed view of its underlying sequence given a unary <a href="../../algorithms/concepts/poly.html" title=" Polymorphic Function
|
||||
Object">Polymorphic
|
||||
Function Object</a>. The <tt class="computeroutput"><span class="identifier">transform_view</span></tt>
|
||||
Function Object</a>. The <code class="computeroutput"><span class="identifier">transform_view</span></code>
|
||||
inherits the traversal characteristics (see <a href="../concepts.html#fusion.sequences.concepts.traversal">Sequence
|
||||
Traversal Concept</a>) of its underlying sequence.
|
||||
</p>
|
||||
<a name="fusion.sequences.views.transform_view.header"></a><h5>
|
||||
<a name="id497346"></a>
|
||||
<a name="id997847"></a>
|
||||
<a href="transform_view.html#fusion.sequences.views.transform_view.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">view</span><span class="special">/</span><span class="identifier">transform_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.views.transform_view.synopsis"></a><h5>
|
||||
<a name="id497450"></a>
|
||||
<a name="id997938"></a>
|
||||
<a href="transform_view.html#fusion.sequences.views.transform_view.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
<p>
|
||||
<span class="bold"><b>Unary Version</b></span>
|
||||
<span class="bold"><strong>Unary Version</strong></span>
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</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">struct</span> <span class="identifier">transform_view</span><span class="special">;</span>
|
||||
</pre>
|
||||
<p>
|
||||
<span class="bold"><b>Binary Version</b></span>
|
||||
<span class="bold"><strong>Binary Version</strong></span>
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Sequence1</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Sequence2</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">F</span><span class="special">></span>
|
||||
<span class="keyword">struct</span> <span class="identifier">transform_view</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.views.transform_view.template_parameters"></a><h5>
|
||||
<a name="id497654"></a>
|
||||
<a name="id998117"></a>
|
||||
<a href="transform_view.html#fusion.sequences.views.transform_view.template_parameters">Template
|
||||
parameters</a>
|
||||
</h5>
|
||||
@@ -76,7 +76,7 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Sequence</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Sequence</span></code></td>
|
||||
<td>A
|
||||
<a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -85,7 +85,7 @@
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Sequence1</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Sequence1</span></code></td>
|
||||
<td>A
|
||||
<a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -94,7 +94,7 @@
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Sequence2</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Sequence2</span></code></td>
|
||||
<td>A
|
||||
<a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -103,7 +103,7 @@
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">F</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">F</span></code></td>
|
||||
<td>A
|
||||
<a href="../../algorithms/concepts/poly.html" title=" Polymorphic Function
|
||||
Object">Polymorphic Function
|
||||
@@ -114,7 +114,7 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.views.transform_view.model_of"></a><h5>
|
||||
<a name="id497821"></a>
|
||||
<a name="id998264"></a>
|
||||
<a href="transform_view.html#fusion.sequences.views.transform_view.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li>
|
||||
@@ -131,45 +131,45 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">TV</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">TV</span></code></span></dt>
|
||||
<dd>
|
||||
A <tt class="computeroutput"><span class="identifier">transform_view</span></tt> type
|
||||
A <code class="computeroutput"><span class="identifier">transform_view</span></code> type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">BTV</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">BTV</span></code></span></dt>
|
||||
<dd>
|
||||
A binary <tt class="computeroutput"><span class="identifier">transform_view</span></tt>
|
||||
A binary <code class="computeroutput"><span class="identifier">transform_view</span></code>
|
||||
type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">UTV</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">UTV</span></code></span></dt>
|
||||
<dd>
|
||||
A unary <tt class="computeroutput"><span class="identifier">transform_view</span></tt>
|
||||
A unary <code class="computeroutput"><span class="identifier">transform_view</span></code>
|
||||
type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">f</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">f</span></code></span></dt>
|
||||
<dd>
|
||||
An instance of <tt class="computeroutput"><span class="identifier">F</span></tt>
|
||||
An instance of <code class="computeroutput"><span class="identifier">F</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dd>
|
||||
An instance of <tt class="computeroutput"><span class="identifier">Sequence</span></tt>
|
||||
An instance of <code class="computeroutput"><span class="identifier">Sequence</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s1</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s1</span></code></span></dt>
|
||||
<dd>
|
||||
An instance of <tt class="computeroutput"><span class="identifier">Sequence1</span></tt>
|
||||
An instance of <code class="computeroutput"><span class="identifier">Sequence1</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s2</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s2</span></code></span></dt>
|
||||
<dd>
|
||||
An instance of <tt class="computeroutput"><span class="identifier">Sequence2</span></tt>
|
||||
An instance of <code class="computeroutput"><span class="identifier">Sequence2</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">tv</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">tv2</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">tv</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">tv2</span></code></span></dt>
|
||||
<dd>
|
||||
Instances of <tt class="computeroutput"><span class="identifier">transform_view</span></tt>
|
||||
Instances of <code class="computeroutput"><span class="identifier">transform_view</span></code>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.views.transform_view.expression_semantics"></a><h5>
|
||||
<a name="id498135"></a>
|
||||
<a name="id998540"></a>
|
||||
<a href="transform_view.html#fusion.sequences.views.transform_view.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -196,44 +196,44 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">UTV</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">f</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">UTV</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">f</span><span class="special">)</span></code></td>
|
||||
<td>Creates
|
||||
a unary <tt class="computeroutput"><span class="identifier">transform_view</span></tt>
|
||||
given sequence, <tt class="computeroutput"><span class="identifier">s</span></tt>
|
||||
a unary <code class="computeroutput"><span class="identifier">transform_view</span></code>
|
||||
given sequence, <code class="computeroutput"><span class="identifier">s</span></code>
|
||||
and unary <a href="../../algorithms/concepts/poly.html" title=" Polymorphic Function
|
||||
Object">Polymorphic
|
||||
Function Object</a>, <tt class="computeroutput"><span class="identifier">f</span></tt>.</td>
|
||||
Function Object</a>, <code class="computeroutput"><span class="identifier">f</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">BTV</span><span class="special">(</span><span class="identifier">s1</span><span class="special">,</span> <span class="identifier">s2</span><span class="special">,</span> <span class="identifier">f</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">BTV</span><span class="special">(</span><span class="identifier">s1</span><span class="special">,</span> <span class="identifier">s2</span><span class="special">,</span> <span class="identifier">f</span><span class="special">)</span></code></td>
|
||||
<td>Creates
|
||||
a binary <tt class="computeroutput"><span class="identifier">transform_view</span></tt>
|
||||
given sequences, <tt class="computeroutput"><span class="identifier">s1</span></tt>
|
||||
and <tt class="computeroutput"><span class="identifier">s2</span></tt> and unary
|
||||
a binary <code class="computeroutput"><span class="identifier">transform_view</span></code>
|
||||
given sequences, <code class="computeroutput"><span class="identifier">s1</span></code>
|
||||
and <code class="computeroutput"><span class="identifier">s2</span></code> and unary
|
||||
<a href="../../algorithms/concepts/poly.html" title=" Polymorphic Function
|
||||
Object">Polymorphic Function
|
||||
Object</a>, <tt class="computeroutput"><span class="identifier">f</span></tt>.</td>
|
||||
Object</a>, <code class="computeroutput"><span class="identifier">f</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">TV</span><span class="special">(</span><span class="identifier">tv</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">TV</span><span class="special">(</span><span class="identifier">tv</span><span class="special">)</span></code></td>
|
||||
<td>Copy
|
||||
constructs a <tt class="computeroutput"><span class="identifier">transform_view</span></tt>
|
||||
from another <tt class="computeroutput"><span class="identifier">transform_view</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">tv</span></tt>.</td>
|
||||
constructs a <code class="computeroutput"><span class="identifier">transform_view</span></code>
|
||||
from another <code class="computeroutput"><span class="identifier">transform_view</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">tv</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">tv</span> <span class="special">=</span>
|
||||
<span class="identifier">tv2</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">tv</span> <span class="special">=</span>
|
||||
<span class="identifier">tv2</span></code></td>
|
||||
<td>Assigns
|
||||
to a <tt class="computeroutput"><span class="identifier">transform_view</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">tv</span></tt>, from another
|
||||
<tt class="computeroutput"><span class="identifier">transform_view</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">tv2</span></tt>.</td>
|
||||
to a <code class="computeroutput"><span class="identifier">transform_view</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">tv</span></code>, from another
|
||||
<code class="computeroutput"><span class="identifier">transform_view</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">tv2</span></code>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.views.transform_view.example"></a><h5>
|
||||
<a name="id498559"></a>
|
||||
<a name="id998914"></a>
|
||||
<a href="transform_view.html#fusion.sequences.views.transform_view.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -252,7 +252,7 @@
|
||||
<span class="special">}</span>
|
||||
<span class="special">};</span>
|
||||
|
||||
<span class="keyword">typedef</span> <a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">short</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">vector_type</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">short</span><span class="special">,</span> <span class="keyword">double</span><span class="special">></span> <span class="identifier">vector_type</span><span class="special">;</span>
|
||||
<span class="identifier">vector_type</span> <span class="identifier">vec</span><span class="special">(</span><span class="number">2</span><span class="special">,</span> <span class="number">5</span><span class="special">,</span> <span class="number">3.3</span><span class="special">);</span>
|
||||
|
||||
<span class="identifier">transform_view</span><span class="special"><</span><span class="identifier">vector_type</span><span class="special">,</span> <span class="identifier">square</span><span class="special">></span> <span class="identifier">transform</span><span class="special">(</span><span class="identifier">vec</span><span class="special">,</span> <span class="identifier">square</span><span class="special">());</span>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>zip_view</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
|
||||
<link rel="start" href="../../../index.html" title="Chapter 1. Fusion 2.0">
|
||||
<link rel="up" href="../views.html" title="Views">
|
||||
<link rel="prev" href="joint_view.html" title="joint_view">
|
||||
@@ -26,25 +26,25 @@
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="fusion.sequences.views.zip_view"></a><a href="zip_view.html" title="zip_view">zip_view</a></h4></div></div></div>
|
||||
<a name="fusion.sequences.views.zip_view.description"></a><h5>
|
||||
<a name="id496144"></a>
|
||||
<a name="id996786"></a>
|
||||
<a href="zip_view.html#fusion.sequences.views.zip_view.description">Description</a>
|
||||
</h5>
|
||||
<p>
|
||||
<tt class="computeroutput"><span class="identifier">zip_view</span></tt> presents a view
|
||||
<code class="computeroutput"><span class="identifier">zip_view</span></code> presents a view
|
||||
which iterates over a collection of <span class="underline">_sequence</span>_s
|
||||
in parallel. A <tt class="computeroutput"><span class="identifier">zip_view</span></tt>
|
||||
in parallel. A <code class="computeroutput"><span class="identifier">zip_view</span></code>
|
||||
is constructed from a <a href="../../sequences.html" title="Sequences">Sequence</a>
|
||||
of references to the component <span class="underline">_sequence</span>_s.
|
||||
</p>
|
||||
<a name="fusion.sequences.views.zip_view.header"></a><h5>
|
||||
<a name="id496217"></a>
|
||||
<a name="id996851"></a>
|
||||
<a href="zip_view.html#fusion.sequences.views.zip_view.header">Header</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="preprocessor">#include</span> <span class="special"><</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">view</span><span class="special">/</span><span class="identifier">zip_view</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.views.zip_view.synopsis"></a><h5>
|
||||
<a name="id496322"></a>
|
||||
<a name="id996942"></a>
|
||||
<a href="zip_view.html#fusion.sequences.views.zip_view.synopsis">Synopsis</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
@@ -52,7 +52,7 @@
|
||||
<span class="keyword">struct</span> <span class="identifier">zip_view</span><span class="special">;</span>
|
||||
</pre>
|
||||
<a name="fusion.sequences.views.zip_view.template_parameters"></a><h5>
|
||||
<a name="id496400"></a>
|
||||
<a name="id997012"></a>
|
||||
<a href="zip_view.html#fusion.sequences.views.zip_view.template_parameters">Template
|
||||
parameters</a>
|
||||
</h5>
|
||||
@@ -68,7 +68,7 @@
|
||||
<th>Default</th>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">Sequences</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">Sequences</span></code></td>
|
||||
<td>A
|
||||
<a href="../concepts/forward_sequence.html" title="Forward
|
||||
Sequence">Forward
|
||||
@@ -77,7 +77,7 @@
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.views.zip_view.model_of"></a><h5>
|
||||
<a name="id496494"></a>
|
||||
<a name="id997095"></a>
|
||||
<a href="zip_view.html#fusion.sequences.views.zip_view.model_of">Model of</a>
|
||||
</h5>
|
||||
<div class="itemizedlist"><ul type="disc"><li><a href="../concepts/forward_sequence.html" title="Forward
|
||||
@@ -85,23 +85,23 @@
|
||||
<div class="variablelist">
|
||||
<p class="title"><b>Notation</b></p>
|
||||
<dl>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">ZV</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">ZV</span></code></span></dt>
|
||||
<dd>
|
||||
A <tt class="computeroutput"><span class="identifier">joint_view</span></tt> type
|
||||
A <code class="computeroutput"><span class="identifier">joint_view</span></code> type
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">s</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">s</span></code></span></dt>
|
||||
<dd>
|
||||
An instance of <tt class="computeroutput"><span class="identifier">Sequences</span></tt>
|
||||
An instance of <code class="computeroutput"><span class="identifier">Sequences</span></code>
|
||||
</dd>
|
||||
<dt><span class="term"><tt class="computeroutput"><span class="identifier">zv1</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">zv2</span></tt></span></dt>
|
||||
<dt><span class="term"><code class="computeroutput"><span class="identifier">zv1</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">zv2</span></code></span></dt>
|
||||
<dd>
|
||||
Instances of <tt class="computeroutput"><span class="identifier">ZV</span></tt>
|
||||
Instances of <code class="computeroutput"><span class="identifier">ZV</span></code>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<a name="fusion.sequences.views.zip_view.expression_semantics"></a><h5>
|
||||
<a name="id496637"></a>
|
||||
<a name="id997220"></a>
|
||||
<a href="zip_view.html#fusion.sequences.views.zip_view.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h5>
|
||||
@@ -122,36 +122,36 @@
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">ZV</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">ZV</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code></td>
|
||||
<td>Creates
|
||||
a <tt class="computeroutput"><span class="identifier">zip_view</span></tt> given
|
||||
a <code class="computeroutput"><span class="identifier">zip_view</span></code> given
|
||||
a sequence of references to the component <span class="underline">_sequence</span>_s.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">ZV</span><span class="special">(</span><span class="identifier">zv1</span><span class="special">)</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">ZV</span><span class="special">(</span><span class="identifier">zv1</span><span class="special">)</span></code></td>
|
||||
<td>Copy
|
||||
constructs a <tt class="computeroutput"><span class="identifier">zip_view</span></tt>
|
||||
from another <tt class="computeroutput"><span class="identifier">zip_view</span></tt>,
|
||||
<tt class="computeroutput"><span class="identifier">zv</span></tt>.</td>
|
||||
constructs a <code class="computeroutput"><span class="identifier">zip_view</span></code>
|
||||
from another <code class="computeroutput"><span class="identifier">zip_view</span></code>,
|
||||
<code class="computeroutput"><span class="identifier">zv</span></code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt class="computeroutput"><span class="identifier">zv1</span> <span class="special">=</span>
|
||||
<span class="identifier">zv2</span></tt></td>
|
||||
<td><code class="computeroutput"><span class="identifier">zv1</span> <span class="special">=</span>
|
||||
<span class="identifier">zv2</span></code></td>
|
||||
<td>Assigns
|
||||
to a <tt class="computeroutput"><span class="identifier">zip_view</span></tt>, <tt class="computeroutput"><span class="identifier">zv</span></tt>, from another <tt class="computeroutput"><span class="identifier">zip_view</span></tt>, <tt class="computeroutput"><span class="identifier">zv2</span></tt>.</td>
|
||||
to a <code class="computeroutput"><span class="identifier">zip_view</span></code>, <code class="computeroutput"><span class="identifier">zv</span></code>, from another <code class="computeroutput"><span class="identifier">zip_view</span></code>, <code class="computeroutput"><span class="identifier">zv2</span></code>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.sequences.views.zip_view.example"></a><h5>
|
||||
<a name="id496891"></a>
|
||||
<a name="id997444"></a>
|
||||
<a href="zip_view.html#fusion.sequences.views.zip_view.example">Example</a>
|
||||
</h5>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">typedef</span> <a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">vec1</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec2</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">int</span><span class="special">,</span><span class="keyword">int</span><span class="special">></span> <span class="identifier">vec1</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="keyword">char</span><span class="special">,</span><span class="keyword">char</span><span class="special">></span> <span class="identifier">vec2</span><span class="special">;</span>
|
||||
<span class="identifier">vec1</span> <span class="identifier">v1</span><span class="special">(</span><span class="number">1</span><span class="special">,</span><span class="number">2</span><span class="special">);</span>
|
||||
<span class="identifier">vec2</span> <span class="identifier">v2</span><span class="special">(</span><span class="char">'a'</span><span class="special">,</span><span class="char">'b'</span><span class="special">);</span>
|
||||
<span class="keyword">typedef</span> <a href="../containers/vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><span class="special"><</span><span class="identifier">vec1</span><span class="special">&,</span> <span class="identifier">vec2</span><span class="special">&></span> <span class="identifier">sequences</span><span class="special">;</span>
|
||||
<span class="keyword">typedef</span> <a href="../containers/vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special"><</span><span class="identifier">vec1</span><span class="special">&,</span> <span class="identifier">vec2</span><span class="special">&></span> <span class="identifier">sequences</span><span class="special">;</span>
|
||||
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="identifier">zip_view</span><span class="special"><</span><span class="identifier">sequences</span><span class="special">>(</span><span class="identifier">sequences</span><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> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span> <span class="comment">// ((1 a) (2 b))
|
||||
</span></pre>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user