forked from boostorg/fusion
merge from trunk
[SVN r47205]
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>list_tie</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="tiers.html" title="Tiers">
|
||||
@ -12,10 +12,10 @@
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../../index.html">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@ -24,38 +24,37 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.container.generation.functions.list_tie"></a><a class="link" href="list_tie.html" title="list_tie">list_tie</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.list_tie"></a><a href="list_tie.html" title="list_tie">list_tie</a></h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.list_tie.description"></a><h6>
|
||||
<a name="id2714722"></a>
|
||||
<a class="link" href="list_tie.html#fusion.container.generation.functions.list_tie.description">Description</a>
|
||||
<a name="id545246"></a>
|
||||
<a href="list_tie.html#fusion.container.generation.functions.list_tie.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Constructs a tie using a <a class="link" href="../../list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a> sequence.
|
||||
Constructs a tie using a <a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a> sequence.
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.list_tie.synopsis"></a><h6>
|
||||
<a name="id2714764"></a>
|
||||
<a class="link" href="list_tie.html#fusion.container.generation.functions.list_tie.synopsis">Synopsis</a>
|
||||
<a name="id545295"></a>
|
||||
<a href="list_tie.html#fusion.container.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 class="link" href="../../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>
|
||||
<a href="../../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>
|
||||
<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 <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>
|
||||
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>
|
||||
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.container.generation.functions.list_tie.parameters"></a><h6>
|
||||
<a name="id2715053"></a>
|
||||
<a class="link" href="list_tie.html#fusion.container.generation.functions.list_tie.parameters">Parameters</a>
|
||||
<a name="id545613"></a>
|
||||
<a href="list_tie.html#fusion.container.generation.functions.list_tie.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@ -83,49 +82,49 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<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></code>
|
||||
<span class="identifier">xN</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Instances 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></code>
|
||||
Instances of <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>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The arguments to <code class="computeroutput"><span class="identifier">list_tie</span></code>
|
||||
The arguments to <tt class="computeroutput"><span class="identifier">list_tie</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.container.generation.functions.list_tie.expression_semantics"></a><h6>
|
||||
<a name="id2715211"></a>
|
||||
<a class="link" href="list_tie.html#fusion.container.generation.functions.list_tie.expression_semantics">Expression
|
||||
<a name="id545790"></a>
|
||||
<a href="list_tie.html#fusion.container.generation.functions.list_tie.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<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"><strong>Return type</strong></span>: <a class="link" href="../../list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a><T0&, T1&,...
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a><T0&, T1&,...
|
||||
TN&>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a class="link" href="../../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>.
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../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>.
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.list_tie.header"></a><h6>
|
||||
<a name="id2715361"></a>
|
||||
<a class="link" href="list_tie.html#fusion.container.generation.functions.list_tie.header">Header</a>
|
||||
<a name="id545959"></a>
|
||||
<a href="list_tie.html#fusion.container.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">container</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>
|
||||
<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">include</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.container.generation.functions.list_tie.example"></a><h6>
|
||||
<a name="id2715514"></a>
|
||||
<a class="link" href="list_tie.html#fusion.container.generation.functions.list_tie.example">Example</a>
|
||||
<a name="id546129"></a>
|
||||
<a href="list_tie.html#fusion.container.generation.functions.list_tie.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">int</span> <span class="identifier">i</span> <span class="special">=</span> <span class="number">123</span><span class="special">;</span>
|
||||
|
@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>make_cons</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="make_list.html" title="make_list">
|
||||
@ -12,10 +12,10 @@
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../../index.html">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@ -24,33 +24,32 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.container.generation.functions.make_cons"></a><a class="link" href="make_cons.html" title="make_cons">make_cons</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.make_cons"></a><a href="make_cons.html" title="make_cons">make_cons</a></h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.make_cons.description"></a><h6>
|
||||
<a name="id2709466"></a>
|
||||
<a class="link" href="make_cons.html#fusion.container.generation.functions.make_cons.description">Description</a>
|
||||
<a name="id539374"></a>
|
||||
<a href="make_cons.html#fusion.container.generation.functions.make_cons.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Create a <a class="link" href="../../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>).
|
||||
Create a <a href="../../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="emphasis"><em>tail</em></span>).
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.make_cons.synopsis"></a><h6>
|
||||
<a name="id2709536"></a>
|
||||
<a class="link" href="make_cons.html#fusion.container.generation.functions.make_cons.synopsis">Synopsis</a>
|
||||
<a name="id539454"></a>
|
||||
<a href="make_cons.html#fusion.container.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 class="link" 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="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="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 class="link" 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="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="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.container.generation.functions.make_cons.parameters"></a><h6>
|
||||
<a name="id2709836"></a>
|
||||
<a class="link" href="make_cons.html#fusion.container.generation.functions.make_cons.parameters">Parameters</a>
|
||||
<a name="id539790"></a>
|
||||
<a href="make_cons.html#fusion.container.generation.functions.make_cons.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@ -79,12 +78,12 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">car</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">car</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Instance of <code class="computeroutput"><span class="identifier">Car</span></code>
|
||||
Instance of <tt class="computeroutput"><span class="identifier">Car</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@ -96,12 +95,12 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">cdr</span></code>
|
||||
<tt class="computeroutput"><span class="identifier">cdr</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Instance of <code class="computeroutput"><span class="identifier">Cdr</span></code>
|
||||
Instance of <tt class="computeroutput"><span class="identifier">Cdr</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@ -113,43 +112,43 @@
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.container.generation.functions.make_cons.expression_semantics"></a><h6>
|
||||
<a name="id2709985"></a>
|
||||
<a class="link" href="make_cons.html#fusion.container.generation.functions.make_cons.expression_semantics">Expression
|
||||
<a name="id539956"></a>
|
||||
<a href="make_cons.html#fusion.container.generation.functions.make_cons.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<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"><strong>Return type</strong></span>: <a class="link" 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 class="link" 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>
|
||||
<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>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a class="link" href="../../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="bold"><b>Semantics</b></span>: Create a <a href="../../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="emphasis"><em>tail</em></span>).
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.make_cons.header"></a><h6>
|
||||
<a name="id2710213"></a>
|
||||
<a class="link" href="make_cons.html#fusion.container.generation.functions.make_cons.header">Header</a>
|
||||
<a name="id540211"></a>
|
||||
<a href="make_cons.html#fusion.container.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">container</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>
|
||||
<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">include</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.container.generation.functions.make_cons.example"></a><h6>
|
||||
<a name="id2710365"></a>
|
||||
<a class="link" href="make_cons.html#fusion.container.generation.functions.make_cons.example">Example</a>
|
||||
<a name="id540380"></a>
|
||||
<a href="make_cons.html#fusion.container.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.container.generation.functions.make_cons.see_also"></a><h6>
|
||||
<a name="id2710433"></a>
|
||||
<a class="link" href="make_cons.html#fusion.container.generation.functions.make_cons.see_also">See
|
||||
<a name="id540456"></a>
|
||||
<a href="make_cons.html#fusion.container.generation.functions.make_cons.see_also">See
|
||||
also</a>
|
||||
</h6>
|
||||
<p>
|
||||
<a class="link" 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="../../../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>
|
||||
</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="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="../functions.html" title="Functions">
|
||||
@ -12,10 +12,10 @@
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../../index.html">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@ -24,39 +24,38 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.container.generation.functions.make_list"></a><a class="link" href="make_list.html" title="make_list">make_list</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.make_list"></a><a href="make_list.html" title="make_list">make_list</a></h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.make_list.description"></a><h6>
|
||||
<a name="id2708448"></a>
|
||||
<a class="link" href="make_list.html#fusion.container.generation.functions.make_list.description">Description</a>
|
||||
<a name="id538232"></a>
|
||||
<a href="make_list.html#fusion.container.generation.functions.make_list.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Create a <a class="link" href="../../list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a>
|
||||
Create a <a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a>
|
||||
from one or more values.
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.make_list.synopsis"></a><h6>
|
||||
<a name="id2708490"></a>
|
||||
<a class="link" href="make_list.html#fusion.container.generation.functions.make_list.synopsis">Synopsis</a>
|
||||
<a name="id538280"></a>
|
||||
<a href="make_list.html#fusion.container.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 class="link" 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="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="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 <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>
|
||||
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>
|
||||
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.container.generation.functions.make_list.parameters"></a><h6>
|
||||
<a name="id2708819"></a>
|
||||
<a class="link" href="make_list.html#fusion.container.generation.functions.make_list.parameters">Parameters</a>
|
||||
<a name="id538646"></a>
|
||||
<a href="make_list.html#fusion.container.generation.functions.make_list.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@ -84,59 +83,59 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<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></code>
|
||||
<span class="identifier">xN</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Instances 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></code>
|
||||
Instances of <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>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The arguments to <code class="computeroutput"><span class="identifier">make_list</span></code>
|
||||
The arguments to <tt class="computeroutput"><span class="identifier">make_list</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.container.generation.functions.make_list.expression_semantics"></a><h6>
|
||||
<a name="id2708975"></a>
|
||||
<a class="link" href="make_list.html#fusion.container.generation.functions.make_list.expression_semantics">Expression
|
||||
<a name="id538822"></a>
|
||||
<a href="make_list.html#fusion.container.generation.functions.make_list.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<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"><strong>Return type</strong></span>: <a class="link" 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>
|
||||
<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>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a class="link" href="../../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>.
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../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>.
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.make_list.header"></a><h6>
|
||||
<a name="id2709176"></a>
|
||||
<a class="link" href="make_list.html#fusion.container.generation.functions.make_list.header">Header</a>
|
||||
<a name="id539048"></a>
|
||||
<a href="make_list.html#fusion.container.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">container</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>
|
||||
<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">include</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.container.generation.functions.make_list.example"></a><h6>
|
||||
<a name="id2709328"></a>
|
||||
<a class="link" href="make_list.html#fusion.container.generation.functions.make_list.example">Example</a>
|
||||
<a name="id539217"></a>
|
||||
<a href="make_list.html#fusion.container.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.container.generation.functions.make_list.see_also"></a><h6>
|
||||
<a name="id2709397"></a>
|
||||
<a class="link" href="make_list.html#fusion.container.generation.functions.make_list.see_also">See
|
||||
<a name="id539295"></a>
|
||||
<a href="make_list.html#fusion.container.generation.functions.make_list.see_also">See
|
||||
also</a>
|
||||
</h6>
|
||||
<p>
|
||||
<a class="link" 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="../../../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>
|
||||
</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="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="make_set.html" title="make_set">
|
||||
@ -12,10 +12,10 @@
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../../index.html">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@ -24,42 +24,41 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.container.generation.functions.make_map"></a><a class="link" href="make_map.html" title="make_map">make_map</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.make_map"></a><a href="make_map.html" title="make_map">make_map</a></h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.make_map.description"></a><h6>
|
||||
<a name="id2712577"></a>
|
||||
<a class="link" href="make_map.html#fusion.container.generation.functions.make_map.description">Description</a>
|
||||
<a name="id542858"></a>
|
||||
<a href="make_map.html#fusion.container.generation.functions.make_map.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Create a <a class="link" href="../../map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a>
|
||||
Create a <a href="../../map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a>
|
||||
from one or more key/data pairs.
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.make_map.synopsis"></a><h6>
|
||||
<a name="id2712619"></a>
|
||||
<a class="link" href="make_map.html#fusion.container.generation.functions.make_map.synopsis">Synopsis</a>
|
||||
<a name="id542907"></a>
|
||||
<a href="make_map.html#fusion.container.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 class="link" 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="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="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 <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="id2712958" href="#ftn.id2712958" class="footnote">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>
|
||||
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="id543284" href="#ftn.id543284">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>
|
||||
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.container.generation.functions.make_map.parameters"></a><h6>
|
||||
<a name="id2713056"></a>
|
||||
<a class="link" href="make_map.html#fusion.container.generation.functions.make_map.parameters">Parameters</a>
|
||||
<a name="id543389"></a>
|
||||
<a href="make_map.html#fusion.container.generation.functions.make_map.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@ -88,9 +87,9 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">K0</span><span class="special">,</span>
|
||||
<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></code>
|
||||
<span class="identifier">KN</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@ -100,83 +99,83 @@
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
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>
|
||||
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>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<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></code>
|
||||
<span class="identifier">xN</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Instances 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></code>
|
||||
Instances of <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>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The arguments to <code class="computeroutput"><span class="identifier">make_map</span></code>
|
||||
The arguments to <tt class="computeroutput"><span class="identifier">make_map</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.container.generation.functions.make_map.expression_semantics"></a><h6>
|
||||
<a name="id2713295"></a>
|
||||
<a class="link" href="make_map.html#fusion.container.generation.functions.make_map.expression_semantics">Expression
|
||||
<a name="id543656"></a>
|
||||
<a href="make_map.html#fusion.container.generation.functions.make_map.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<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"><strong>Return type</strong></span>: <a class="link" 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>
|
||||
<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>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a class="link" href="../../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="bold"><b>Semantics</b></span>: Create a <a href="../../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="identifier">x1</span><span class="special">,...</span>
|
||||
<span class="identifier">xN</span></code> data.
|
||||
<span class="identifier">xN</span></tt> data.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Precondition</strong></span>: There may be no duplicate
|
||||
<span class="bold"><b>Precondition</b></span>: There may be no duplicate
|
||||
key types.
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.make_map.header"></a><h6>
|
||||
<a name="id2713596"></a>
|
||||
<a class="link" href="make_map.html#fusion.container.generation.functions.make_map.header">Header</a>
|
||||
<a name="id543993"></a>
|
||||
<a href="make_map.html#fusion.container.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">container</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>
|
||||
<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">include</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.container.generation.functions.make_map.example"></a><h6>
|
||||
<a name="id2713748"></a>
|
||||
<a class="link" href="make_map.html#fusion.container.generation.functions.make_map.example">Example</a>
|
||||
<a name="id544163"></a>
|
||||
<a href="make_map.html#fusion.container.generation.functions.make_map.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">make_map</span><span class="special">(</span>
|
||||
<a class="link" 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 class="link" 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>
|
||||
<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>
|
||||
</pre>
|
||||
<a name="fusion.container.generation.functions.make_map.see_also"></a><h6>
|
||||
<a name="id2713866"></a>
|
||||
<a class="link" href="make_map.html#fusion.container.generation.functions.make_map.see_also">See
|
||||
<a name="id544295"></a>
|
||||
<a href="make_map.html#fusion.container.generation.functions.make_map.see_also">See
|
||||
also</a>
|
||||
</h6>
|
||||
<p>
|
||||
<a class="link" 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 class="link" 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>
|
||||
<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>
|
||||
</p>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id2712958" href="#id2712958" class="para">9</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>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id543284" href="#id543284">9</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>
|
||||
</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="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="make_vector.html" title="make_vector">
|
||||
@ -12,10 +12,10 @@
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../../index.html">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@ -24,40 +24,39 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.container.generation.functions.make_set"></a><a class="link" href="make_set.html" title="make_set">make_set</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.make_set"></a><a href="make_set.html" title="make_set">make_set</a></h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.make_set.description"></a><h6>
|
||||
<a name="id2711520"></a>
|
||||
<a class="link" href="make_set.html#fusion.container.generation.functions.make_set.description">Description</a>
|
||||
<a name="id541675"></a>
|
||||
<a href="make_set.html#fusion.container.generation.functions.make_set.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Create a <a class="link" href="../../set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a>
|
||||
Create a <a href="../../set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a>
|
||||
from one or more values.
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.make_set.synopsis"></a><h6>
|
||||
<a name="id2711562"></a>
|
||||
<a class="link" href="make_set.html#fusion.container.generation.functions.make_set.synopsis">Synopsis</a>
|
||||
<a name="id541724"></a>
|
||||
<a href="make_set.html#fusion.container.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 class="link" 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="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="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 <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="id2711822" href="#ftn.id2711822" class="footnote">8</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>
|
||||
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="id542013" href="#ftn.id542013">8</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>
|
||||
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.container.generation.functions.make_set.parameters"></a><h6>
|
||||
<a name="id2711920"></a>
|
||||
<a class="link" href="make_set.html#fusion.container.generation.functions.make_set.parameters">Parameters</a>
|
||||
<a name="id542118"></a>
|
||||
<a href="make_set.html#fusion.container.generation.functions.make_set.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@ -85,69 +84,69 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<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></code>
|
||||
<span class="identifier">xN</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Instances 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></code>
|
||||
Instances of <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>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The arguments to <code class="computeroutput"><span class="identifier">make_set</span></code>
|
||||
The arguments to <tt class="computeroutput"><span class="identifier">make_set</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.container.generation.functions.make_set.expression_semantics"></a><h6>
|
||||
<a name="id2712076"></a>
|
||||
<a class="link" href="make_set.html#fusion.container.generation.functions.make_set.expression_semantics">Expression
|
||||
<a name="id542294"></a>
|
||||
<a href="make_set.html#fusion.container.generation.functions.make_set.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<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"><strong>Return type</strong></span>: <a class="link" 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>
|
||||
<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>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a class="link" href="../../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>.
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../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>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Precondition</strong></span>: There may be no duplicate
|
||||
<span class="bold"><b>Precondition</b></span>: There may be no duplicate
|
||||
key types.
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.make_set.header"></a><h6>
|
||||
<a name="id2712287"></a>
|
||||
<a class="link" href="make_set.html#fusion.container.generation.functions.make_set.header">Header</a>
|
||||
<a name="id542532"></a>
|
||||
<a href="make_set.html#fusion.container.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">container</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>
|
||||
<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">include</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.container.generation.functions.make_set.example"></a><h6>
|
||||
<a name="id2712439"></a>
|
||||
<a class="link" href="make_set.html#fusion.container.generation.functions.make_set.example">Example</a>
|
||||
<a name="id542702"></a>
|
||||
<a href="make_set.html#fusion.container.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.container.generation.functions.make_set.see_also"></a><h6>
|
||||
<a name="id2712508"></a>
|
||||
<a class="link" href="make_set.html#fusion.container.generation.functions.make_set.see_also">See
|
||||
<a name="id542779"></a>
|
||||
<a href="make_set.html#fusion.container.generation.functions.make_set.see_also">See
|
||||
also</a>
|
||||
</h6>
|
||||
<p>
|
||||
<a class="link" 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="../../../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>
|
||||
</p>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id2711822" href="#id2711822" class="para">8</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>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id542013" href="#id542013">8</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>
|
||||
</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="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="make_cons.html" title="make_cons">
|
||||
@ -12,10 +12,10 @@
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../../index.html">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@ -24,39 +24,38 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.container.generation.functions.make_vector"></a><a class="link" href="make_vector.html" title="make_vector">make_vector</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.make_vector"></a><a href="make_vector.html" title="make_vector">make_vector</a></h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.make_vector.description"></a><h6>
|
||||
<a name="id2710501"></a>
|
||||
<a class="link" href="make_vector.html#fusion.container.generation.functions.make_vector.description">Description</a>
|
||||
<a name="id540534"></a>
|
||||
<a href="make_vector.html#fusion.container.generation.functions.make_vector.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Create a <a class="link" href="../../vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a>
|
||||
Create a <a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>
|
||||
from one or more values.
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.make_vector.synopsis"></a><h6>
|
||||
<a name="id2710541"></a>
|
||||
<a class="link" href="make_vector.html#fusion.container.generation.functions.make_vector.synopsis">Synopsis</a>
|
||||
<a name="id540581"></a>
|
||||
<a href="make_vector.html#fusion.container.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 class="link" 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="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="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 <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>
|
||||
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>
|
||||
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.container.generation.functions.make_vector.parameters"></a><h6>
|
||||
<a name="id2710872"></a>
|
||||
<a class="link" href="make_vector.html#fusion.container.generation.functions.make_vector.parameters">Parameters</a>
|
||||
<a name="id540945"></a>
|
||||
<a href="make_vector.html#fusion.container.generation.functions.make_vector.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@ -84,59 +83,59 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<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></code>
|
||||
<span class="identifier">xN</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Instances 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></code>
|
||||
Instances of <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>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The arguments to <code class="computeroutput"><span class="identifier">make_vector</span></code>
|
||||
The arguments to <tt class="computeroutput"><span class="identifier">make_vector</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.container.generation.functions.make_vector.expression_semantics"></a><h6>
|
||||
<a name="id2711028"></a>
|
||||
<a class="link" href="make_vector.html#fusion.container.generation.functions.make_vector.expression_semantics">Expression
|
||||
<a name="id541121"></a>
|
||||
<a href="make_vector.html#fusion.container.generation.functions.make_vector.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<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"><strong>Return type</strong></span>: <a class="link" 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>
|
||||
<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>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a class="link" href="../../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>.
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../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>.
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.make_vector.header"></a><h6>
|
||||
<a name="id2711231"></a>
|
||||
<a class="link" href="make_vector.html#fusion.container.generation.functions.make_vector.header">Header</a>
|
||||
<a name="id541348"></a>
|
||||
<a href="make_vector.html#fusion.container.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">container</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>
|
||||
<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">include</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.container.generation.functions.make_vector.example"></a><h6>
|
||||
<a name="id2711383"></a>
|
||||
<a class="link" href="make_vector.html#fusion.container.generation.functions.make_vector.example">Example</a>
|
||||
<a name="id541518"></a>
|
||||
<a href="make_vector.html#fusion.container.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.container.generation.functions.make_vector.see_also"></a><h6>
|
||||
<a name="id2711452"></a>
|
||||
<a class="link" href="make_vector.html#fusion.container.generation.functions.make_vector.see_also">See
|
||||
<a name="id541596"></a>
|
||||
<a href="make_vector.html#fusion.container.generation.functions.make_vector.see_also">See
|
||||
also</a>
|
||||
</h6>
|
||||
<p>
|
||||
<a class="link" 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="../../../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>
|
||||
</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>map_tie</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="vector_tie.html" title="vector_tie">
|
||||
@ -12,10 +12,10 @@
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../../index.html">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@ -24,38 +24,37 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.container.generation.functions.map_tie"></a><a class="link" href="map_tie.html" title="map_tie">map_tie</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.map_tie"></a><a href="map_tie.html" title="map_tie">map_tie</a></h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.map_tie.description"></a><h6>
|
||||
<a name="id2716566"></a>
|
||||
<a class="link" href="map_tie.html#fusion.container.generation.functions.map_tie.description">Description</a>
|
||||
<a name="id547306"></a>
|
||||
<a href="map_tie.html#fusion.container.generation.functions.map_tie.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Constructs a tie using a <a class="link" href="../../map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a> sequence.
|
||||
Constructs a tie using a <a href="../../map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a> sequence.
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.map_tie.synopsis"></a><h6>
|
||||
<a name="id2716608"></a>
|
||||
<a class="link" href="map_tie.html#fusion.container.generation.functions.map_tie.synopsis">Synopsis</a>
|
||||
<a name="id547355"></a>
|
||||
<a href="map_tie.html#fusion.container.generation.functions.map_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">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">D0</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">D1</span><span class="special">,...</span> <span class="keyword">typename</span> <span class="identifier">DN</span><span class="special">></span>
|
||||
<a class="link" href="../../map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a><span class="special"><</span><a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">D0</span><span class="special">&>,</span> <a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="identifier">K1</span><span class="special">,</span> <span class="identifier">D1</span><span class="special">&>,...</span> <a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><span class="special"><</span><span class="identifier">KN</span><span class="special">,</span> <span class="identifier">DN</span><span class="special">&></span> <span class="special">></span>
|
||||
<a href="../../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="identifier">K0</span><span class="special">,</span> <span class="identifier">D0</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="identifier">K1</span><span class="special">,</span> <span class="identifier">D1</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="identifier">KN</span><span class="special">,</span> <span class="identifier">DN</span><span class="special">&></span> <span class="special">></span>
|
||||
<span class="identifier">map_tie</span><span class="special">(</span><span class="identifier">D0</span><span class="special">&</span> <span class="identifier">d0</span><span class="special">,</span> <span class="identifier">D1</span><span class="special">&</span> <span class="identifier">d1</span><span class="special">...</span> <span class="identifier">DN</span><span class="special">&</span> <span class="identifier">dN</span><span class="special">);</span>
|
||||
</pre>
|
||||
<p>
|
||||
The variadic function 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>, and a corresponding number of key types.
|
||||
You may define the preprocessor constant <code class="computeroutput"><span class="identifier">FUSION_MAX_MAP_SIZE</span></code>
|
||||
The variadic function 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>, and a corresponding number of key types.
|
||||
You may define the preprocessor constant <tt class="computeroutput"><span class="identifier">FUSION_MAX_MAP_SIZE</span></tt>
|
||||
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.container.generation.functions.map_tie.parameters"></a><h6>
|
||||
<a name="id2717033"></a>
|
||||
<a class="link" href="map_tie.html#fusion.container.generation.functions.map_tie.parameters">Parameters</a>
|
||||
<a name="id547825"></a>
|
||||
<a href="map_tie.html#fusion.container.generation.functions.map_tie.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@ -84,9 +83,9 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">K0</span><span class="special">,</span>
|
||||
<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></code>
|
||||
<span class="identifier">KN</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
@ -96,7 +95,7 @@
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The key types associated with each of the <code class="computeroutput"><span class="identifier">x1</span><span class="special">,</span><span class="identifier">x2</span><span class="special">,...,</span><span class="identifier">xN</span></code>
|
||||
The key types associated with each of the <tt class="computeroutput"><span class="identifier">x1</span><span class="special">,</span><span class="identifier">x2</span><span class="special">,...,</span><span class="identifier">xN</span></tt>
|
||||
values
|
||||
</p>
|
||||
</td>
|
||||
@ -104,51 +103,51 @@
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<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></code>
|
||||
<span class="identifier">xN</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Instances 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></code>
|
||||
Instances of <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>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The arguments to <code class="computeroutput"><span class="identifier">map_tie</span></code>
|
||||
The arguments to <tt class="computeroutput"><span class="identifier">map_tie</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
<a name="fusion.container.generation.functions.map_tie.expression_semantics"></a><h6>
|
||||
<a name="id2717271"></a>
|
||||
<a class="link" href="map_tie.html#fusion.container.generation.functions.map_tie.expression_semantics">Expression
|
||||
<a name="id548092"></a>
|
||||
<a href="map_tie.html#fusion.container.generation.functions.map_tie.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="identifier">map_tie</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"><strong>Return type</strong></span>: <a class="link" href="../../map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a><<a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><K0, D0&>, <a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><K1,
|
||||
D1&>,... <a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a><KN,
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../../map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a><<a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><K0, D0&>, <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><K1,
|
||||
D1&>,... <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a><KN,
|
||||
DN&> >
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a class="link" href="../../map.html" title="map"><code class="computeroutput"><span class="identifier">map</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> 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>
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../map.html" title="map"><tt class="computeroutput"><span class="identifier">map</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> 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>
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.map_tie.header"></a><h6>
|
||||
<a name="id2717525"></a>
|
||||
<a class="link" href="map_tie.html#fusion.container.generation.functions.map_tie.header">Header</a>
|
||||
<a name="id548377"></a>
|
||||
<a href="map_tie.html#fusion.container.generation.functions.map_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">container</span><span class="special">/</span><span class="identifier">generation</span><span class="special">/</span><span class="identifier">map_tie</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
<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">include</span><span class="special">/</span><span class="identifier">map_tie</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
|
||||
</pre>
|
||||
<a name="fusion.container.generation.functions.map_tie.example"></a><h6>
|
||||
<a name="id2717677"></a>
|
||||
<a class="link" href="map_tie.html#fusion.container.generation.functions.map_tie.example">Example</a>
|
||||
<a name="id548546"></a>
|
||||
<a href="map_tie.html#fusion.container.generation.functions.map_tie.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">struct</span> <span class="identifier">int_key</span><span class="special">;</span>
|
||||
|
@ -3,7 +3,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<title>Tiers</title>
|
||||
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="make_map.html" title="make_map">
|
||||
@ -12,10 +12,10 @@
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../../index.html">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@ -24,8 +24,7 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.container.generation.functions.tiers"></a><a class="link" href="tiers.html" title="Tiers">Tiers</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.tiers"></a><a href="tiers.html" title="Tiers">Tiers</a></h5></div></div></div>
|
||||
<p>
|
||||
Tiers are sequences, where all elements are non-const reference types.
|
||||
They are constructed with a call to a couple of <span class="emphasis"><em>tie</em></span>
|
||||
@ -33,9 +32,9 @@
|
||||
flavors.
|
||||
</p>
|
||||
<div class="itemizedlist"><ul type="disc">
|
||||
<li><a class="link" href="list_tie.html" title="list_tie"><code class="computeroutput"><span class="identifier">list_tie</span></code></a></li>
|
||||
<li><a class="link" href="vector_tie.html" title="vector_tie"><code class="computeroutput"><span class="identifier">vector_tie</span></code></a></li>
|
||||
<li><a class="link" href="vector_tie.html" title="vector_tie"><code class="computeroutput"><span class="identifier">map_tie</span></code></a></li>
|
||||
<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="vector_tie.html" title="vector_tie"><tt class="computeroutput"><span class="identifier">map_tie</span></tt></a></li>
|
||||
</ul></div>
|
||||
<p>
|
||||
Example:
|
||||
@ -43,14 +42,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 class="link" 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>
|
||||
<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>
|
||||
</pre>
|
||||
<p>
|
||||
The <a class="link" href="vector_tie.html" title="vector_tie"><code class="computeroutput"><span class="identifier">vector_tie</span></code></a> function creates
|
||||
a <a class="link" href="../../vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a>
|
||||
of type <code class="computeroutput"><a class="link" href="../../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 class="link" 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="id2714290" href="#ftn.id2714290" class="footnote">10</a>]</sup>
|
||||
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="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>
|
||||
of type <tt class="computeroutput"><a href="../../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="id544767" href="#ftn.id544767">10</a>]</sup>
|
||||
.
|
||||
</p>
|
||||
<p>
|
||||
@ -59,7 +58,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 class="link" 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 class="link" 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>
|
||||
<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>
|
||||
<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>
|
||||
@ -68,8 +67,8 @@
|
||||
when calling functions which return sequences.
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.tiers.ignore"></a><h6>
|
||||
<a name="id2714568"></a>
|
||||
<a class="link" href="tiers.html#fusion.container.generation.functions.tiers.ignore">Ignore</a>
|
||||
<a name="id545073"></a>
|
||||
<a href="tiers.html#fusion.container.generation.functions.tiers.ignore">Ignore</a>
|
||||
</h6>
|
||||
<p>
|
||||
There is also an object called <span class="emphasis"><em>ignore</em></span> which allows
|
||||
@ -79,13 +78,13 @@
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">char</span> <span class="identifier">c</span><span class="special">;</span>
|
||||
<a class="link" 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 class="link" 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>
|
||||
<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>
|
||||
</pre>
|
||||
<div class="footnotes">
|
||||
<br><hr width="100" align="left">
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id2714290" href="#id2714290" class="para">10</a>] </sup>
|
||||
<div class="footnote"><p><sup>[<a name="ftn.id544767" href="#id544767">10</a>] </sup>
|
||||
see <a href="http://www.boost.org/doc/html/ref.html" target="_top">Boost.Ref</a>
|
||||
for details about <code class="computeroutput"><span class="identifier">ref</span></code>
|
||||
for details about <tt class="computeroutput"><span class="identifier">ref</span></tt>
|
||||
</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="../../../../../../../../doc/html/boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
|
||||
<link rel="start" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
|
||||
<link rel="up" href="../functions.html" title="Functions">
|
||||
<link rel="prev" href="list_tie.html" title="list_tie">
|
||||
@ -12,10 +12,10 @@
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr>
|
||||
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
|
||||
<td align="center"><a href="../../../../../../../../index.html">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../../index.htm">Home</a></td>
|
||||
<td align="center"><a href="../../../../../../../libraries.htm">Libraries</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td>
|
||||
<td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../people/people.htm">People</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/faq.htm">FAQ</a></td>
|
||||
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
@ -24,38 +24,37 @@
|
||||
</div>
|
||||
<div class="section" lang="en">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="fusion.container.generation.functions.vector_tie"></a><a class="link" href="vector_tie.html" title="vector_tie">vector_tie</a>
|
||||
</h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.vector_tie"></a><a href="vector_tie.html" title="vector_tie">vector_tie</a></h5></div></div></div>
|
||||
<a name="fusion.container.generation.functions.vector_tie.description"></a><h6>
|
||||
<a name="id2715643"></a>
|
||||
<a class="link" href="vector_tie.html#fusion.container.generation.functions.vector_tie.description">Description</a>
|
||||
<a name="id546274"></a>
|
||||
<a href="vector_tie.html#fusion.container.generation.functions.vector_tie.description">Description</a>
|
||||
</h6>
|
||||
<p>
|
||||
Constructs a tie using a <a class="link" href="../../vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> sequence.
|
||||
Constructs a tie using a <a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a> sequence.
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.vector_tie.synopsis"></a><h6>
|
||||
<a name="id2715686"></a>
|
||||
<a class="link" href="vector_tie.html#fusion.container.generation.functions.vector_tie.synopsis">Synopsis</a>
|
||||
<a name="id546324"></a>
|
||||
<a href="vector_tie.html#fusion.container.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 class="link" href="../../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>
|
||||
<a href="../../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>
|
||||
<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 <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>
|
||||
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>
|
||||
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.container.generation.functions.vector_tie.parameters"></a><h6>
|
||||
<a name="id2715976"></a>
|
||||
<a class="link" href="vector_tie.html#fusion.container.generation.functions.vector_tie.parameters">Parameters</a>
|
||||
<a name="id546643"></a>
|
||||
<a href="vector_tie.html#fusion.container.generation.functions.vector_tie.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="informaltable"><table class="table">
|
||||
<colgroup>
|
||||
@ -83,49 +82,49 @@
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">x0</span><span class="special">,</span>
|
||||
<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></code>
|
||||
<span class="identifier">xN</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Instances 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></code>
|
||||
Instances of <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>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The arguments to <code class="computeroutput"><span class="identifier">vector_tie</span></code>
|
||||
The arguments to <tt class="computeroutput"><span class="identifier">vector_tie</span></tt>
|
||||
</p>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table></div>
|
||||
<a name="fusion.container.generation.functions.vector_tie.expression_semantics"></a><h6>
|
||||
<a name="id2716132"></a>
|
||||
<a class="link" href="vector_tie.html#fusion.container.generation.functions.vector_tie.expression_semantics">Expression
|
||||
<a name="id546820"></a>
|
||||
<a href="vector_tie.html#fusion.container.generation.functions.vector_tie.expression_semantics">Expression
|
||||
Semantics</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<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"><strong>Return type</strong></span>: <a class="link" href="../../vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><T0&, T1&,...
|
||||
<span class="bold"><b>Return type</b></span>: <a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a><T0&, T1&,...
|
||||
TN&>
|
||||
</p>
|
||||
<p>
|
||||
<span class="bold"><strong>Semantics</strong></span>: Create a <a class="link" href="../../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>.
|
||||
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../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>.
|
||||
</p>
|
||||
<a name="fusion.container.generation.functions.vector_tie.header"></a><h6>
|
||||
<a name="id2716283"></a>
|
||||
<a class="link" href="vector_tie.html#fusion.container.generation.functions.vector_tie.header">Header</a>
|
||||
<a name="id546989"></a>
|
||||
<a href="vector_tie.html#fusion.container.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">container</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>
|
||||
<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">include</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.container.generation.functions.vector_tie.example"></a><h6>
|
||||
<a name="id2716436"></a>
|
||||
<a class="link" href="vector_tie.html#fusion.container.generation.functions.vector_tie.example">Example</a>
|
||||
<a name="id547159"></a>
|
||||
<a href="vector_tie.html#fusion.container.generation.functions.vector_tie.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">
|
||||
<span class="keyword">int</span> <span class="identifier">i</span> <span class="special">=</span> <span class="number">123</span><span class="special">;</span>
|
||||
|
Reference in New Issue
Block a user