Fusion: added nview and friends, docs and tests

[SVN r56377]
This commit is contained in:
Hartmut Kaiser
2009-09-25 00:21:53 +00:00
parent 43645b3764
commit 10c0665ffa
258 changed files with 16390 additions and 13592 deletions

View File

@ -3,10 +3,10 @@
<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.65.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.0">
<link rel="home" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="MetaFunctions">
<link rel="previous" href="make_map.html" title="make_map">
<link rel="prev" href="make_map.html" title="make_map">
<link rel="next" href="vector_tie.html" title="vector_tie">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@ -22,40 +22,37 @@
<div class="spirit-nav">
<a accesskey="p" href="make_map.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="vector_tie.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage">
<div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.list_tie"></a><a href="list_tie.html" title="list_tie">list_tie</a>
</h5></div></div>
<div></div>
</div>
<div class="section" title="list_tie">
<div class="titlepage"><div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.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.metafunctions.list_tie.description"></a><h6>
<a name="id508354"></a>
<a href="list_tie.html#fusion.container.generation.metafunctions.list_tie.description">Description</a>
<a name="id657085"></a>
<a class="link" href="list_tie.html#fusion.container.generation.metafunctions.list_tie.description">Description</a>
</h6>
<p>
Returns the result type of <a href="../functions/list_tie.html" title="list_tie"><tt class="computeroutput"><span class="identifier">list_tie</span></tt></a>.
Returns the result type of <a class="link" href="../functions/list_tie.html" title="list_tie"><code class="computeroutput"><span class="identifier">list_tie</span></code></a>.
</p>
<a name="fusion.container.generation.metafunctions.list_tie.synopsis"></a><h6>
<a name="id508401"></a>
<a href="list_tie.html#fusion.container.generation.metafunctions.list_tie.synopsis">Synopsis</a>
<a name="id657116"></a>
<a class="link" href="list_tie.html#fusion.container.generation.metafunctions.list_tie.synopsis">Synopsis</a>
</h6>
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</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">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">list_tie</span><span class="special">;</span>
</pre>
<p>
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
<tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
to <code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
<code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
before including any Fusion header to change the default. Example:
</p>
<pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_LIST_SIZE</span> <span class="number">20</span>
</pre>
<a name="fusion.container.generation.metafunctions.list_tie.parameters"></a><h6>
<a name="id508605"></a>
<a href="list_tie.html#fusion.container.generation.metafunctions.list_tie.parameters">Parameters</a>
<a name="id657257"></a>
<a class="link" href="list_tie.html#fusion.container.generation.metafunctions.list_tie.parameters">Parameters</a>
</h6>
<div class="informaltable"><table class="table">
<colgroup>
@ -64,54 +61,66 @@
<col>
</colgroup>
<thead><tr>
<th><p>
<th>
<p>
Parameter
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Requirement
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Description
</p></th>
</p>
</th>
</tr></thead>
<tbody><tr>
<td><p>
<tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
<td>
<p>
<code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
<span class="identifier">T1</span><span class="special">,...</span>
<span class="identifier">TN</span></tt>
</p></td>
<td><p>
<span class="identifier">TN</span></code>
</p>
</td>
<td>
<p>
Any type
</p></td>
<td><p>
The arguments to <tt class="computeroutput"><span class="identifier">list_tie</span></tt>
</p></td>
</p>
</td>
<td>
<p>
The arguments to <code class="computeroutput"><span class="identifier">list_tie</span></code>
</p>
</td>
</tr></tbody>
</table></div>
<a name="fusion.container.generation.metafunctions.list_tie.expression_semantics"></a><h6>
<a name="id508746"></a>
<a href="list_tie.html#fusion.container.generation.metafunctions.list_tie.expression_semantics">Expression
<a name="id657366"></a>
<a class="link" href="list_tie.html#fusion.container.generation.metafunctions.list_tie.expression_semantics">Expression
Semantics</a>
</h6>
<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">list_tie</span><span class="special">&lt;</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">&gt;::</span><span class="identifier">type</span><span class="special">;</span>
</pre>
<p>
<span class="bold"><b>Return type</b></span>: <a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a>&lt;T0&amp;, T1&amp;,...
<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>&lt;T0&amp;, T1&amp;,...
TN&amp;&gt;
</p>
<p>
<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">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></tt>.
<span class="bold"><strong>Semantics</strong></span>: Create a <a 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">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></code>.
</p>
<a name="fusion.container.generation.metafunctions.list_tie.header"></a><h6>
<a name="id508931"></a>
<a href="list_tie.html#fusion.container.generation.metafunctions.list_tie.header">Header</a>
<a name="id657492"></a>
<a class="link" href="list_tie.html#fusion.container.generation.metafunctions.list_tie.header">Header</a>
</h6>
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">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">&gt;</span>
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">list_tie</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<a name="fusion.container.generation.metafunctions.list_tie.example"></a><h6>
<a name="id509099"></a>
<a href="list_tie.html#fusion.container.generation.metafunctions.list_tie.example">Example</a>
<a name="id657612"></a>
<a class="link" href="list_tie.html#fusion.container.generation.metafunctions.list_tie.example">Example</a>
</h6>
<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">list_tie</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">double</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre>

View File

@ -3,10 +3,10 @@
<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.65.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.0">
<link rel="home" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="MetaFunctions">
<link rel="previous" href="make_list.html" title="make_list">
<link rel="prev" href="make_list.html" title="make_list">
<link rel="next" href="make_vector.html" title="make_vector">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@ -22,30 +22,27 @@
<div class="spirit-nav">
<a accesskey="p" href="make_list.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="make_vector.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage">
<div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.make_cons"></a><a href="make_cons.html" title="make_cons">make_cons</a>
</h5></div></div>
<div></div>
</div>
<div class="section" title="make_cons">
<div class="titlepage"><div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.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.metafunctions.make_cons.description"></a><h6>
<a name="id500284"></a>
<a href="make_cons.html#fusion.container.generation.metafunctions.make_cons.description">Description</a>
<a name="id648837"></a>
<a class="link" href="make_cons.html#fusion.container.generation.metafunctions.make_cons.description">Description</a>
</h6>
<p>
Returns the result type of <a href="../functions/make_cons.html" title="make_cons"><tt class="computeroutput"><span class="identifier">make_cons</span></tt></a>.
Returns the result type of <a class="link" href="../functions/make_cons.html" title="make_cons"><code class="computeroutput"><span class="identifier">make_cons</span></code></a>.
</p>
<a name="fusion.container.generation.metafunctions.make_cons.synopsis"></a><h6>
<a name="id500332"></a>
<a href="make_cons.html#fusion.container.generation.metafunctions.make_cons.synopsis">Synopsis</a>
<a name="id648868"></a>
<a class="link" href="make_cons.html#fusion.container.generation.metafunctions.make_cons.synopsis">Synopsis</a>
</h6>
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</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="identifier">nil</span><span class="special">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">make_cons</span><span class="special">;</span>
</pre>
<a name="fusion.container.generation.metafunctions.make_cons.parameters"></a><h6>
<a name="id500440"></a>
<a href="make_cons.html#fusion.container.generation.metafunctions.make_cons.parameters">Parameters</a>
<a name="id648948"></a>
<a class="link" href="make_cons.html#fusion.container.generation.metafunctions.make_cons.parameters">Parameters</a>
</h6>
<div class="informaltable"><table class="table">
<colgroup>
@ -54,68 +51,86 @@
<col>
</colgroup>
<thead><tr>
<th><p>
<th>
<p>
Parameter
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Requirement
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Description
</p></th>
</p>
</th>
</tr></thead>
<tbody>
<tr>
<td><p>
<tt class="computeroutput"><span class="identifier">Car</span></tt>
</p></td>
<td><p>
<td>
<p>
<code class="computeroutput"><span class="identifier">Car</span></code>
</p>
</td>
<td>
<p>
Any type
</p></td>
<td><p>
</p>
</td>
<td>
<p>
The list's head type
</p></td>
</p>
</td>
</tr>
<tr>
<td><p>
<tt class="computeroutput"><span class="identifier">Cdr</span></tt>
</p></td>
<td><p>
A <tt class="computeroutput"><span class="identifier">cons</span></tt>
</p></td>
<td><p>
<td>
<p>
<code class="computeroutput"><span class="identifier">Cdr</span></code>
</p>
</td>
<td>
<p>
A <code class="computeroutput"><span class="identifier">cons</span></code>
</p>
</td>
<td>
<p>
The list's tail type (optional)
</p></td>
</p>
</td>
</tr>
</tbody>
</table></div>
<a name="fusion.container.generation.metafunctions.make_cons.expression_semantics"></a><h6>
<a name="id500593"></a>
<a href="make_cons.html#fusion.container.generation.metafunctions.make_cons.expression_semantics">Expression
<a name="id649071"></a>
<a class="link" href="make_cons.html#fusion.container.generation.metafunctions.make_cons.expression_semantics">Expression
Semantics</a>
</h6>
<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_cons</span><span class="special">&lt;</span><span class="identifier">Car</span><span class="special">,</span> <span class="identifier">Cdr</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre>
<p>
<span class="bold"><b>Return type</b></span>: A <a href="../../cons.html" title="cons"><tt class="computeroutput"><span class="identifier">cons</span></tt></a> with head element, <tt class="computeroutput"><span class="identifier">Car</span></tt>, of type converted following the
rules for <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
conversion</em></span></a>, and tail, <tt class="computeroutput"><span class="identifier">Cdr</span></tt>.
<span class="bold"><strong>Return type</strong></span>: A <a class="link" href="../../cons.html" title="cons"><code class="computeroutput"><span class="identifier">cons</span></code></a> with head element, <code class="computeroutput"><span class="identifier">Car</span></code>, of type converted following the
rules for <a class="link" href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
conversion</em></span></a>, and tail, <code class="computeroutput"><span class="identifier">Cdr</span></code>.
</p>
<p>
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../cons.html" title="cons"><tt class="computeroutput"><span class="identifier">cons</span></tt></a> from <tt class="computeroutput"><span class="identifier">Car</span></tt>
(<span class="emphasis"><em>head</em></span>) and optional <tt class="computeroutput"><span class="identifier">Cdr</span></tt>
<span class="bold"><strong>Semantics</strong></span>: Create a <a 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>).
</p>
<a name="fusion.container.generation.metafunctions.make_cons.header"></a><h6>
<a name="id500794"></a>
<a href="make_cons.html#fusion.container.generation.metafunctions.make_cons.header">Header</a>
<a name="id649204"></a>
<a class="link" href="make_cons.html#fusion.container.generation.metafunctions.make_cons.header">Header</a>
</h6>
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">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">&gt;</span>
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">make_cons</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<a name="fusion.container.generation.metafunctions.make_cons.example"></a><h6>
<a name="id500961"></a>
<a href="make_cons.html#fusion.container.generation.metafunctions.make_cons.example">Example</a>
<a name="id649324"></a>
<a class="link" href="make_cons.html#fusion.container.generation.metafunctions.make_cons.example">Example</a>
</h6>
<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_cons</span><span class="special">&lt;</span><span class="keyword">char</span><span class="special">,</span> <span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_cons</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre>

View File

@ -3,10 +3,10 @@
<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.65.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.0">
<link rel="home" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="MetaFunctions">
<link rel="previous" href="../metafunctions.html" title="MetaFunctions">
<link rel="prev" href="../metafunctions.html" title="MetaFunctions">
<link rel="next" href="make_cons.html" title="make_cons">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@ -22,40 +22,37 @@
<div class="spirit-nav">
<a accesskey="p" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="make_cons.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage">
<div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.make_list"></a><a href="make_list.html" title="make_list">make_list</a>
</h5></div></div>
<div></div>
</div>
<div class="section" title="make_list">
<div class="titlepage"><div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.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.metafunctions.make_list.description"></a><h6>
<a name="id499405"></a>
<a href="make_list.html#fusion.container.generation.metafunctions.make_list.description">Description</a>
<a name="id648220"></a>
<a class="link" href="make_list.html#fusion.container.generation.metafunctions.make_list.description">Description</a>
</h6>
<p>
Returns the result type of <a href="../functions/make_list.html" title="make_list"><tt class="computeroutput"><span class="identifier">make_list</span></tt></a>.
Returns the result type of <a class="link" href="../functions/make_list.html" title="make_list"><code class="computeroutput"><span class="identifier">make_list</span></code></a>.
</p>
<a name="fusion.container.generation.metafunctions.make_list.synopsis"></a><h6>
<a name="id499452"></a>
<a href="make_list.html#fusion.container.generation.metafunctions.make_list.synopsis">Synopsis</a>
<a name="id648252"></a>
<a class="link" href="make_list.html#fusion.container.generation.metafunctions.make_list.synopsis">Synopsis</a>
</h6>
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</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">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">make_list</span><span class="special">;</span>
</pre>
<p>
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
<tt class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></tt>
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
to <code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
<code class="computeroutput"><span class="identifier">FUSION_MAX_LIST_SIZE</span></code>
before including any Fusion header to change the default. Example:
</p>
<pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_LIST_SIZE</span> <span class="number">20</span>
</pre>
<a name="fusion.container.generation.metafunctions.make_list.parameters"></a><h6>
<a name="id499656"></a>
<a href="make_list.html#fusion.container.generation.metafunctions.make_list.parameters">Parameters</a>
<a name="id648392"></a>
<a class="link" href="make_list.html#fusion.container.generation.metafunctions.make_list.parameters">Parameters</a>
</h6>
<div class="informaltable"><table class="table">
<colgroup>
@ -64,55 +61,67 @@
<col>
</colgroup>
<thead><tr>
<th><p>
<th>
<p>
Parameter
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Requirement
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Description
</p></th>
</p>
</th>
</tr></thead>
<tbody><tr>
<td><p>
<tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
<td>
<p>
<code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
<span class="identifier">T1</span><span class="special">,...</span>
<span class="identifier">TN</span></tt>
</p></td>
<td><p>
<span class="identifier">TN</span></code>
</p>
</td>
<td>
<p>
Any type
</p></td>
<td><p>
Template arguments to <tt class="computeroutput"><span class="identifier">make_list</span></tt>
</p></td>
</p>
</td>
<td>
<p>
Template arguments to <code class="computeroutput"><span class="identifier">make_list</span></code>
</p>
</td>
</tr></tbody>
</table></div>
<a name="fusion.container.generation.metafunctions.make_list.expression_semantics"></a><h6>
<a name="id499797"></a>
<a href="make_list.html#fusion.container.generation.metafunctions.make_list.expression_semantics">Expression
<a name="id648501"></a>
<a class="link" href="make_list.html#fusion.container.generation.metafunctions.make_list.expression_semantics">Expression
Semantics</a>
</h6>
<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_list</span><span class="special">&lt;</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">&gt;::</span><span class="identifier">type</span>
</pre>
<p>
<span class="bold"><b>Return type</b></span>: A <a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a> with elements of types
converted following the rules for <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
<span class="bold"><strong>Return type</strong></span>: A <a class="link" href="../../list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a> with elements of types
converted following the rules for <a class="link" href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
conversion</em></span></a>.
</p>
<p>
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../list.html" title="list"><tt class="computeroutput"><span class="identifier">list</span></tt></a> from <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></tt>.
<span class="bold"><strong>Semantics</strong></span>: Create a <a class="link" href="../../list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a> from <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></code>.
</p>
<a name="fusion.container.generation.metafunctions.make_list.header"></a><h6>
<a name="id499989"></a>
<a href="make_list.html#fusion.container.generation.metafunctions.make_list.header">Header</a>
<a name="id648630"></a>
<a class="link" href="make_list.html#fusion.container.generation.metafunctions.make_list.header">Header</a>
</h6>
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">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">&gt;</span>
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">make_list</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<a name="fusion.container.generation.metafunctions.make_list.example"></a><h6>
<a name="id500157"></a>
<a href="make_list.html#fusion.container.generation.metafunctions.make_list.example">Example</a>
<a name="id648750"></a>
<a class="link" href="make_list.html#fusion.container.generation.metafunctions.make_list.example">Example</a>
</h6>
<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_list</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span><span class="special">(&amp;)[</span><span class="number">7</span><span class="special">],</span> <span class="keyword">double</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre>

View File

@ -3,10 +3,10 @@
<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.65.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.0">
<link rel="home" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="MetaFunctions">
<link rel="previous" href="make_set.html" title="make_set">
<link rel="prev" href="make_set.html" title="make_set">
<link rel="next" href="list_tie.html" title="list_tie">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@ -22,23 +22,20 @@
<div class="spirit-nav">
<a accesskey="p" href="make_set.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="list_tie.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage">
<div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.make_map"></a><a href="make_map.html" title="make_map">make_map</a>
</h5></div></div>
<div></div>
</div>
<div class="section" title="make_map">
<div class="titlepage"><div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.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.metafunctions.make_map.description"></a><h6>
<a name="id507108"></a>
<a href="make_map.html#fusion.container.generation.metafunctions.make_map.description">Description</a>
<a name="id656200"></a>
<a class="link" href="make_map.html#fusion.container.generation.metafunctions.make_map.description">Description</a>
</h6>
<p>
Returns the result type of <a href="../functions/make_map.html" title="make_map"><tt class="computeroutput"><span class="identifier">make_map</span></tt></a>.
Returns the result type of <a class="link" href="../functions/make_map.html" title="make_map"><code class="computeroutput"><span class="identifier">make_map</span></code></a>.
</p>
<a name="fusion.container.generation.metafunctions.make_map.synopsis"></a><h6>
<a name="id507156"></a>
<a href="make_map.html#fusion.container.generation.metafunctions.make_map.synopsis">Synopsis</a>
<a name="id656231"></a>
<a class="link" href="make_map.html#fusion.container.generation.metafunctions.make_map.synopsis">Synopsis</a>
</h6>
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</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>
@ -46,18 +43,18 @@
<span class="keyword">struct</span> <span class="identifier">make_map</span><span class="special">;</span>
</pre>
<p>
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_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>. You may define the preprocessor constant
<tt class="computeroutput"><span class="identifier">FUSION_MAX_MAP_SIZE</span></tt> before
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>. You may define the preprocessor constant
<code class="computeroutput"><span class="identifier">FUSION_MAX_MAP_SIZE</span></code> before
including any Fusion header to change the default. Example:
</p>
<pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_MAP_SIZE</span> <span class="number">20</span>
</pre>
<a name="fusion.container.generation.metafunctions.make_map.parameters"></a><h6>
<a name="id507416"></a>
<a href="make_map.html#fusion.container.generation.metafunctions.make_map.parameters">Parameters</a>
<a name="id656413"></a>
<a class="link" href="make_map.html#fusion.container.generation.metafunctions.make_map.parameters">Parameters</a>
</h6>
<div class="informaltable"><table class="table">
<colgroup>
@ -66,84 +63,102 @@
<col>
</colgroup>
<thead><tr>
<th><p>
<th>
<p>
Parameter
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Requirement
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Description
</p></th>
</p>
</th>
</tr></thead>
<tbody>
<tr>
<td><p>
<tt class="computeroutput"><span class="identifier">K0</span><span class="special">,</span>
<td>
<p>
<code class="computeroutput"><span class="identifier">K0</span><span class="special">,</span>
<span class="identifier">K1</span><span class="special">,...</span>
<span class="identifier">KN</span></tt>
</p></td>
<td><p>
<span class="identifier">KN</span></code>
</p>
</td>
<td>
<p>
Any type
</p></td>
<td><p>
Keys associated with <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></tt>
</p></td>
</p>
</td>
<td>
<p>
Keys associated with <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></code>
</p>
</td>
</tr>
<tr>
<td><p>
<tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
<td>
<p>
<code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
<span class="identifier">T1</span><span class="special">,...</span>
<span class="identifier">TN</span></tt>
</p></td>
<td><p>
<span class="identifier">TN</span></code>
</p>
</td>
<td>
<p>
Any type
</p></td>
<td><p>
Data associated with keys <tt class="computeroutput"><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">K1</span><span class="special">,...</span> <span class="identifier">KN</span></tt>
</p></td>
</p>
</td>
<td>
<p>
Data associated with keys <code class="computeroutput"><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">K1</span><span class="special">,...</span> <span class="identifier">KN</span></code>
</p>
</td>
</tr>
</tbody>
</table></div>
<a name="fusion.container.generation.metafunctions.make_map.expression_semantics"></a><h6>
<a name="id507670"></a>
<a href="make_map.html#fusion.container.generation.metafunctions.make_map.expression_semantics">Expression
<a name="id656610"></a>
<a class="link" href="make_map.html#fusion.container.generation.metafunctions.make_map.expression_semantics">Expression
Semantics</a>
</h6>
<pre class="programlisting"><span class="identifier">resulf_of</span><span class="special">::</span><span class="identifier">make_map</span><span class="special">&lt;</span><span class="identifier">K0</span><span class="special">,</span> <span class="identifier">K1</span><span class="special">,...</span> <span class="identifier">KN</span><span class="special">,</span> <span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">;</span>
</pre>
<p>
<span class="bold"><b>Return type</b></span>: <a href="make_map.html" title="make_map"><tt class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_map</span></tt></a><tt class="computeroutput"><span class="special">&lt;</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">&gt;::</span><span class="identifier">type</span></tt>
<span class="bold"><strong>Return type</strong></span>: <a class="link" href="make_map.html" title="make_map"><code class="computeroutput"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_map</span></code></a><code class="computeroutput"><span class="special">&lt;</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">&gt;::</span><span class="identifier">type</span></code>
</p>
<p>
<span class="bold"><b>Semantics</b></span>: A <a href="../../map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a> with <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a> elements where the <tt class="computeroutput"><span class="identifier">second_type</span></tt> is converted following
the rules for <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
<span class="bold"><strong>Semantics</strong></span>: A <a class="link" href="../../map.html" title="map"><code class="computeroutput"><span class="identifier">map</span></code></a> with <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> elements where the <code class="computeroutput"><span class="identifier">second_type</span></code> is converted following
the rules for <a class="link" href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
conversion</em></span></a>.
</p>
<p>
<span class="bold"><b>Precondition</b></span>: There may be no duplicate
<span class="bold"><strong>Precondition</strong></span>: There may be no duplicate
key types.
</p>
<a name="fusion.container.generation.metafunctions.make_map.header"></a><h6>
<a name="id508007"></a>
<a href="make_map.html#fusion.container.generation.metafunctions.make_map.header">Header</a>
<a name="id656843"></a>
<a class="link" href="make_map.html#fusion.container.generation.metafunctions.make_map.header">Header</a>
</h6>
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">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">&gt;</span>
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">make_map</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<a name="fusion.container.generation.metafunctions.make_map.example"></a><h6>
<a name="id508175"></a>
<a href="make_map.html#fusion.container.generation.metafunctions.make_map.example">Example</a>
<a name="id656963"></a>
<a class="link" href="make_map.html#fusion.container.generation.metafunctions.make_map.example">Example</a>
</h6>
<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_map</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">double</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">double</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre>
<a name="fusion.container.generation.metafunctions.make_map.see_also"></a><h6>
<a name="id508276"></a>
<a href="make_map.html#fusion.container.generation.metafunctions.make_map.see_also">See
<a name="id657036"></a>
<a class="link" href="make_map.html#fusion.container.generation.metafunctions.make_map.see_also">See
also</a>
</h6>
<p>
<a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">fusion</span><span class="special">::</span><span class="identifier">pair</span></tt></a>
<a 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>
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>

View File

@ -3,10 +3,10 @@
<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.65.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.0">
<link rel="home" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="MetaFunctions">
<link rel="previous" href="make_vector.html" title="make_vector">
<link rel="prev" href="make_vector.html" title="make_vector">
<link rel="next" href="make_map.html" title="make_map">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@ -22,40 +22,37 @@
<div class="spirit-nav">
<a accesskey="p" href="make_vector.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="make_map.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage">
<div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.make_set"></a><a href="make_set.html" title="make_set">make_set</a>
</h5></div></div>
<div></div>
</div>
<div class="section" title="make_set">
<div class="titlepage"><div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.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.metafunctions.make_set.description"></a><h6>
<a name="id506237"></a>
<a href="make_set.html#fusion.container.generation.metafunctions.make_set.description">Description</a>
<a name="id650020"></a>
<a class="link" href="make_set.html#fusion.container.generation.metafunctions.make_set.description">Description</a>
</h6>
<p>
Returns the result type of <a href="../functions/make_set.html" title="make_set"><tt class="computeroutput"><span class="identifier">make_set</span></tt></a>.
Returns the result type of <a class="link" href="../functions/make_set.html" title="make_set"><code class="computeroutput"><span class="identifier">make_set</span></code></a>.
</p>
<a name="fusion.container.generation.metafunctions.make_set.synopsis"></a><h6>
<a name="id506284"></a>
<a href="make_set.html#fusion.container.generation.metafunctions.make_set.synopsis">Synopsis</a>
<a name="id650052"></a>
<a class="link" href="make_set.html#fusion.container.generation.metafunctions.make_set.synopsis">Synopsis</a>
</h6>
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</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">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">make_set</span><span class="special">;</span>
</pre>
<p>
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_SET_SIZE</span></tt>
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_SET_SIZE</span></tt>
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
<tt class="computeroutput"><span class="identifier">FUSION_MAX_SET_SIZE</span></tt> before
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
to <code class="computeroutput"><span class="identifier">FUSION_MAX_SET_SIZE</span></code>
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_SET_SIZE</span></code>
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
<code class="computeroutput"><span class="identifier">FUSION_MAX_SET_SIZE</span></code> before
including any Fusion header to change the default. Example:
</p>
<pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_SET_SIZE</span> <span class="number">20</span>
</pre>
<a name="fusion.container.generation.metafunctions.make_set.parameters"></a><h6>
<a name="id506489"></a>
<a href="make_set.html#fusion.container.generation.metafunctions.make_set.parameters">Parameters</a>
<a name="id650192"></a>
<a class="link" href="make_set.html#fusion.container.generation.metafunctions.make_set.parameters">Parameters</a>
</h6>
<div class="informaltable"><table class="table">
<colgroup>
@ -64,59 +61,71 @@
<col>
</colgroup>
<thead><tr>
<th><p>
<th>
<p>
Parameter
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Requirement
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Description
</p></th>
</p>
</th>
</tr></thead>
<tbody><tr>
<td><p>
<tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
<td>
<p>
<code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
<span class="identifier">T1</span><span class="special">,...</span>
<span class="identifier">TN</span></tt>
</p></td>
<td><p>
<span class="identifier">TN</span></code>
</p>
</td>
<td>
<p>
Any type
</p></td>
<td><p>
The arguments to <tt class="computeroutput"><span class="identifier">make_set</span></tt>
</p></td>
</p>
</td>
<td>
<p>
The arguments to <code class="computeroutput"><span class="identifier">make_set</span></code>
</p>
</td>
</tr></tbody>
</table></div>
<a name="fusion.container.generation.metafunctions.make_set.expression_semantics"></a><h6>
<a name="id506629"></a>
<a href="make_set.html#fusion.container.generation.metafunctions.make_set.expression_semantics">Expression
<a name="id650301"></a>
<a class="link" href="make_set.html#fusion.container.generation.metafunctions.make_set.expression_semantics">Expression
Semantics</a>
</h6>
<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_set</span><span class="special">&lt;</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">&gt;::</span><span class="identifier">type</span>
</pre>
<p>
<span class="bold"><b>Return type</b></span>: A <a href="../../set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a> with elements of types converted
following the rules for <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
<span class="bold"><strong>Return type</strong></span>: A <a class="link" href="../../set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a> with elements of types converted
following the rules for <a class="link" href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
conversion</em></span></a>.
</p>
<p>
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../set.html" title="set"><tt class="computeroutput"><span class="identifier">set</span></tt></a> from <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></tt>.
<span class="bold"><strong>Semantics</strong></span>: Create a <a class="link" href="../../set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a> from <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></code>.
</p>
<p>
<span class="bold"><b>Precondition</b></span>: There may be no duplicate
<span class="bold"><strong>Precondition</strong></span>: There may be no duplicate
key types.
</p>
<a name="fusion.container.generation.metafunctions.make_set.header"></a><h6>
<a name="id506830"></a>
<a href="make_set.html#fusion.container.generation.metafunctions.make_set.header">Header</a>
<a name="id656004"></a>
<a class="link" href="make_set.html#fusion.container.generation.metafunctions.make_set.header">Header</a>
</h6>
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">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">&gt;</span>
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">make_set</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<a name="fusion.container.generation.metafunctions.make_set.example"></a><h6>
<a name="id506997"></a>
<a href="make_set.html#fusion.container.generation.metafunctions.make_set.example">Example</a>
<a name="id656124"></a>
<a class="link" href="make_set.html#fusion.container.generation.metafunctions.make_set.example">Example</a>
</h6>
<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_set</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">double</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre>

View File

@ -3,10 +3,10 @@
<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.65.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.0">
<link rel="home" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="MetaFunctions">
<link rel="previous" href="make_cons.html" title="make_cons">
<link rel="prev" href="make_cons.html" title="make_cons">
<link rel="next" href="make_set.html" title="make_set">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@ -22,40 +22,37 @@
<div class="spirit-nav">
<a accesskey="p" href="make_cons.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="make_set.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage">
<div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.make_vector"></a><a href="make_vector.html" title="make_vector">make_vector</a>
</h5></div></div>
<div></div>
</div>
<div class="section" title="make_vector">
<div class="titlepage"><div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.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.metafunctions.make_vector.description"></a><h6>
<a name="id501093"></a>
<a href="make_vector.html#fusion.container.generation.metafunctions.make_vector.description">Description</a>
<a name="id649411"></a>
<a class="link" href="make_vector.html#fusion.container.generation.metafunctions.make_vector.description">Description</a>
</h6>
<p>
Returns the result type of <a href="../functions/make_vector.html" title="make_vector"><tt class="computeroutput"><span class="identifier">make_vector</span></tt></a>.
Returns the result type of <a class="link" href="../functions/make_vector.html" title="make_vector"><code class="computeroutput"><span class="identifier">make_vector</span></code></a>.
</p>
<a name="fusion.container.generation.metafunctions.make_vector.synopsis"></a><h6>
<a name="id501141"></a>
<a href="make_vector.html#fusion.container.generation.metafunctions.make_vector.synopsis">Synopsis</a>
<a name="id649440"></a>
<a class="link" href="make_vector.html#fusion.container.generation.metafunctions.make_vector.synopsis">Synopsis</a>
</h6>
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</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">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">make_vector</span><span class="special">;</span>
</pre>
<p>
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
<tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
to <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
<code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
before including any Fusion header to change the default. Example:
</p>
<pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_VECTOR_SIZE</span> <span class="number">20</span>
</pre>
<a name="fusion.container.generation.metafunctions.make_vector.parameters"></a><h6>
<a name="id501345"></a>
<a href="make_vector.html#fusion.container.generation.metafunctions.make_vector.parameters">Parameters</a>
<a name="id649578"></a>
<a class="link" href="make_vector.html#fusion.container.generation.metafunctions.make_vector.parameters">Parameters</a>
</h6>
<div class="informaltable"><table class="table">
<colgroup>
@ -64,55 +61,67 @@
<col>
</colgroup>
<thead><tr>
<th><p>
<th>
<p>
Parameter
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Requirement
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Description
</p></th>
</p>
</th>
</tr></thead>
<tbody><tr>
<td><p>
<tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
<td>
<p>
<code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
<span class="identifier">T1</span><span class="special">,...</span>
<span class="identifier">TN</span></tt>
</p></td>
<td><p>
<span class="identifier">TN</span></code>
</p>
</td>
<td>
<p>
Any type
</p></td>
<td><p>
Template arguments to <tt class="computeroutput"><span class="identifier">make_vector</span></tt>
</p></td>
</p>
</td>
<td>
<p>
Template arguments to <code class="computeroutput"><span class="identifier">make_vector</span></code>
</p>
</td>
</tr></tbody>
</table></div>
<a name="fusion.container.generation.metafunctions.make_vector.expression_semantics"></a><h6>
<a name="id501486"></a>
<a href="make_vector.html#fusion.container.generation.metafunctions.make_vector.expression_semantics">Expression
<a name="id649684"></a>
<a class="link" href="make_vector.html#fusion.container.generation.metafunctions.make_vector.expression_semantics">Expression
Semantics</a>
</h6>
<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_vector</span><span class="special">&lt;</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">&gt;::</span><span class="identifier">type</span>
</pre>
<p>
<span class="bold"><b>Return type</b></span>: A <a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a> with elements of types
converted following the rules for <a href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
<span class="bold"><strong>Return type</strong></span>: A <a class="link" href="../../vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> with elements of types
converted following the rules for <a class="link" href="../../../notes.html#fusion.notes.element_conversion"><span class="emphasis"><em>element
conversion</em></span></a>.
</p>
<p>
<span class="bold"><b>Semantics</b></span>: Create a <a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a> from <tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></tt>.
<span class="bold"><strong>Semantics</strong></span>: Create a <a class="link" href="../../vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a> from <code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></code>.
</p>
<a name="fusion.container.generation.metafunctions.make_vector.header"></a><h6>
<a name="id505943"></a>
<a href="make_vector.html#fusion.container.generation.metafunctions.make_vector.header">Header</a>
<a name="id649813"></a>
<a class="link" href="make_vector.html#fusion.container.generation.metafunctions.make_vector.header">Header</a>
</h6>
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">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">&gt;</span>
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">make_list</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<a name="fusion.container.generation.metafunctions.make_vector.example"></a><h6>
<a name="id506111"></a>
<a href="make_vector.html#fusion.container.generation.metafunctions.make_vector.example">Example</a>
<a name="id649933"></a>
<a class="link" href="make_vector.html#fusion.container.generation.metafunctions.make_vector.example">Example</a>
</h6>
<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">make_vector</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">const</span> <span class="keyword">char</span><span class="special">(&amp;)[</span><span class="number">7</span><span class="special">],</span> <span class="keyword">double</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre>

View File

@ -3,10 +3,10 @@
<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.65.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.0">
<link rel="home" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="MetaFunctions">
<link rel="previous" href="vector_tie.html" title="vector_tie">
<link rel="prev" href="vector_tie.html" title="vector_tie">
<link rel="next" href="../../conversion.html" title="Conversion">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@ -22,40 +22,37 @@
<div class="spirit-nav">
<a accesskey="p" href="vector_tie.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="../../conversion.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage">
<div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.map_tie"></a><a href="map_tie.html" title="map_tie">map_tie</a>
</h5></div></div>
<div></div>
</div>
<div class="section" title="map_tie">
<div class="titlepage"><div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.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.metafunctions.map_tie.description"></a><h6>
<a name="id510047"></a>
<a href="map_tie.html#fusion.container.generation.metafunctions.map_tie.description">Description</a>
<a name="id659361"></a>
<a class="link" href="map_tie.html#fusion.container.generation.metafunctions.map_tie.description">Description</a>
</h6>
<p>
Returns the result type of <a href="../functions/vector_tie.html" title="vector_tie"><tt class="computeroutput"><span class="identifier">map_tie</span></tt></a>.
Returns the result type of <a class="link" href="../functions/vector_tie.html" title="vector_tie"><code class="computeroutput"><span class="identifier">map_tie</span></code></a>.
</p>
<a name="fusion.container.generation.metafunctions.map_tie.synopsis"></a><h6>
<a name="id510096"></a>
<a href="map_tie.html#fusion.container.generation.metafunctions.map_tie.synopsis">Synopsis</a>
<a name="id659392"></a>
<a class="link" href="map_tie.html#fusion.container.generation.metafunctions.map_tie.synopsis">Synopsis</a>
</h6>
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</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">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">map_tie</span><span class="special">;</span>
</pre>
<p>
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_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>. You may define the preprocessor constant
<tt class="computeroutput"><span class="identifier">FUSION_MAX_MAP_SIZE</span></tt> before
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>. You may define the preprocessor constant
<code class="computeroutput"><span class="identifier">FUSION_MAX_MAP_SIZE</span></code> before
including any Fusion header to change the default. Example:
</p>
<pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_MAP_SIZE</span> <span class="number">20</span>
</pre>
<a name="fusion.container.generation.metafunctions.map_tie.parameters"></a><h6>
<a name="id510352"></a>
<a href="map_tie.html#fusion.container.generation.metafunctions.map_tie.parameters">Parameters</a>
<a name="id659572"></a>
<a class="link" href="map_tie.html#fusion.container.generation.metafunctions.map_tie.parameters">Parameters</a>
</h6>
<div class="informaltable"><table class="table">
<colgroup>
@ -64,70 +61,88 @@
<col>
</colgroup>
<thead><tr>
<th><p>
<th>
<p>
Parameter
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Requirement
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Description
</p></th>
</p>
</th>
</tr></thead>
<tbody>
<tr>
<td><p>
<tt class="computeroutput"><span class="identifier">K0</span><span class="special">,</span>
<td>
<p>
<code class="computeroutput"><span class="identifier">K0</span><span class="special">,</span>
<span class="identifier">K1</span><span class="special">,...</span>
<span class="identifier">KN</span></tt>
</p></td>
<td><p>
<span class="identifier">KN</span></code>
</p>
</td>
<td>
<p>
Any type
</p></td>
<td><p>
The key types for <tt class="computeroutput"><span class="identifier">map_tie</span></tt>
</p></td>
</p>
</td>
<td>
<p>
The key types for <code class="computeroutput"><span class="identifier">map_tie</span></code>
</p>
</td>
</tr>
<tr>
<td><p>
<tt class="computeroutput"><span class="identifier">D0</span><span class="special">,</span>
<td>
<p>
<code class="computeroutput"><span class="identifier">D0</span><span class="special">,</span>
<span class="identifier">D1</span><span class="special">,...</span>
<span class="identifier">DN</span></tt>
</p></td>
<td><p>
<span class="identifier">DN</span></code>
</p>
</td>
<td>
<p>
Any type
</p></td>
<td><p>
The arguments types for <tt class="computeroutput"><span class="identifier">map_tie</span></tt>
</p></td>
</p>
</td>
<td>
<p>
The arguments types for <code class="computeroutput"><span class="identifier">map_tie</span></code>
</p>
</td>
</tr>
</tbody>
</table></div>
<a name="fusion.container.generation.metafunctions.map_tie.expression_semantics"></a><h6>
<a name="id510563"></a>
<a href="map_tie.html#fusion.container.generation.metafunctions.map_tie.expression_semantics">Expression
<a name="id659736"></a>
<a class="link" href="map_tie.html#fusion.container.generation.metafunctions.map_tie.expression_semantics">Expression
Semantics</a>
</h6>
<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">map_tie</span><span class="special">&lt;</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">D0</span><span class="special">,</span> <span class="identifier">D1</span><span class="special">,...</span> <span class="identifier">DN</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">;</span>
</pre>
<p>
<span class="bold"><b>Return type</b></span>: <a href="../../map.html" title="map"><tt class="computeroutput"><span class="identifier">map</span></tt></a>&lt;<a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a>&lt;K0, D0&amp;&gt;, <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a>&lt;K1,
D1&amp;&gt;,... <a href="../../../support/pair.html" title="pair"><tt class="computeroutput"><span class="identifier">pair</span></tt></a>&lt;KN,
<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>&lt;<a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a>&lt;K0, D0&amp;&gt;, <a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a>&lt;K1,
D1&amp;&gt;,... <a class="link" href="../../../support/pair.html" title="pair"><code class="computeroutput"><span class="identifier">pair</span></code></a>&lt;KN,
DN&amp;&gt; &gt;
</p>
<p>
<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">D0</span><span class="special">,</span> <span class="identifier">D1</span><span class="special">,...</span> <span class="identifier">DN</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>
<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">D0</span><span class="special">,</span> <span class="identifier">D1</span><span class="special">,...</span> <span class="identifier">DN</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>
</p>
<a name="fusion.container.generation.metafunctions.map_tie.header"></a><h6>
<a name="id510865"></a>
<a href="map_tie.html#fusion.container.generation.metafunctions.map_tie.header">Header</a>
<a name="id659940"></a>
<a class="link" href="map_tie.html#fusion.container.generation.metafunctions.map_tie.header">Header</a>
</h6>
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">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">&gt;</span>
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">map_tie</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<a name="fusion.container.generation.metafunctions.map_tie.example"></a><h6>
<a name="id511032"></a>
<a href="map_tie.html#fusion.container.generation.metafunctions.map_tie.example">Example</a>
<a name="id660060"></a>
<a class="link" href="map_tie.html#fusion.container.generation.metafunctions.map_tie.example">Example</a>
</h6>
<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">int_key</span><span class="special">;</span>
<span class="keyword">struct</span> <span class="identifier">double_key</span><span class="special">;</span>

View File

@ -3,10 +3,10 @@
<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.65.1">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.0">
<link rel="home" href="../../../../index.html" title="Chapter<65>1.<2E>Fusion 2.0">
<link rel="up" href="../metafunctions.html" title="MetaFunctions">
<link rel="previous" href="list_tie.html" title="list_tie">
<link rel="prev" href="list_tie.html" title="list_tie">
<link rel="next" href="map_tie.html" title="map_tie">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@ -22,40 +22,37 @@
<div class="spirit-nav">
<a accesskey="p" href="list_tie.html"><img src="../../../../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="map_tie.html"><img src="../../../../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage">
<div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.vector_tie"></a><a href="vector_tie.html" title="vector_tie">vector_tie</a>
</h5></div></div>
<div></div>
</div>
<div class="section" title="vector_tie">
<div class="titlepage"><div><div><h5 class="title">
<a name="fusion.container.generation.metafunctions.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.metafunctions.vector_tie.description"></a><h6>
<a name="id509201"></a>
<a href="vector_tie.html#fusion.container.generation.metafunctions.vector_tie.description">Description</a>
<a name="id657677"></a>
<a class="link" href="vector_tie.html#fusion.container.generation.metafunctions.vector_tie.description">Description</a>
</h6>
<p>
Returns the result type of <a href="../functions/vector_tie.html" title="vector_tie"><tt class="computeroutput"><span class="identifier">vector_tie</span></tt></a>.
Returns the result type of <a class="link" href="../functions/vector_tie.html" title="vector_tie"><code class="computeroutput"><span class="identifier">vector_tie</span></code></a>.
</p>
<a name="fusion.container.generation.metafunctions.vector_tie.synopsis"></a><h6>
<a name="id509248"></a>
<a href="vector_tie.html#fusion.container.generation.metafunctions.vector_tie.synopsis">Synopsis</a>
<a name="id657706"></a>
<a class="link" href="vector_tie.html#fusion.container.generation.metafunctions.vector_tie.synopsis">Synopsis</a>
</h6>
<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</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">&gt;</span>
<span class="keyword">struct</span> <span class="identifier">vector_tie</span><span class="special">;</span>
</pre>
<p>
The variadic function accepts <tt class="computeroutput"><span class="number">0</span></tt>
to <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
elements, where <tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
is a user definable predefined maximum that defaults to <tt class="computeroutput"><span class="number">10</span></tt>. You may define the preprocessor constant
<tt class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></tt>
The variadic function accepts <code class="computeroutput"><span class="number">0</span></code>
to <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
elements, where <code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
is a user definable predefined maximum that defaults to <code class="computeroutput"><span class="number">10</span></code>. You may define the preprocessor constant
<code class="computeroutput"><span class="identifier">FUSION_MAX_VECTOR_SIZE</span></code>
before including any Fusion header to change the default. Example:
</p>
<pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">FUSION_MAX_VECTOR_SIZE</span> <span class="number">20</span>
</pre>
<a name="fusion.container.generation.metafunctions.vector_tie.parameters"></a><h6>
<a name="id509452"></a>
<a href="vector_tie.html#fusion.container.generation.metafunctions.vector_tie.parameters">Parameters</a>
<a name="id657846"></a>
<a class="link" href="vector_tie.html#fusion.container.generation.metafunctions.vector_tie.parameters">Parameters</a>
</h6>
<div class="informaltable"><table class="table">
<colgroup>
@ -64,54 +61,66 @@
<col>
</colgroup>
<thead><tr>
<th><p>
<th>
<p>
Parameter
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Requirement
</p></th>
<th><p>
</p>
</th>
<th>
<p>
Description
</p></th>
</p>
</th>
</tr></thead>
<tbody><tr>
<td><p>
<tt class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
<td>
<p>
<code class="computeroutput"><span class="identifier">T0</span><span class="special">,</span>
<span class="identifier">T1</span><span class="special">,...</span>
<span class="identifier">TN</span></tt>
</p></td>
<td><p>
<span class="identifier">TN</span></code>
</p>
</td>
<td>
<p>
Any type
</p></td>
<td><p>
The arguments to <tt class="computeroutput"><span class="identifier">vector_tie</span></tt>
</p></td>
</p>
</td>
<td>
<p>
The arguments to <code class="computeroutput"><span class="identifier">vector_tie</span></code>
</p>
</td>
</tr></tbody>
</table></div>
<a name="fusion.container.generation.metafunctions.vector_tie.expression_semantics"></a><h6>
<a name="id509592"></a>
<a href="vector_tie.html#fusion.container.generation.metafunctions.vector_tie.expression_semantics">Expression
<a name="id657955"></a>
<a class="link" href="vector_tie.html#fusion.container.generation.metafunctions.vector_tie.expression_semantics">Expression
Semantics</a>
</h6>
<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">vector_tie</span><span class="special">&lt;</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">&gt;::</span><span class="identifier">type</span><span class="special">;</span>
</pre>
<p>
<span class="bold"><b>Return type</b></span>: <a href="../../vector.html" title="vector"><tt class="computeroutput"><span class="identifier">vector</span></tt></a>&lt;T0&amp;, T1&amp;,...
<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>&lt;T0&amp;, T1&amp;,...
TN&amp;&gt;
</p>
<p>
<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">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></tt>.
<span class="bold"><strong>Semantics</strong></span>: Create a <a 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">T0</span><span class="special">,</span> <span class="identifier">T1</span><span class="special">,...</span> <span class="identifier">TN</span></code>.
</p>
<a name="fusion.container.generation.metafunctions.vector_tie.header"></a><h6>
<a name="id509778"></a>
<a href="vector_tie.html#fusion.container.generation.metafunctions.vector_tie.header">Header</a>
<a name="id658081"></a>
<a class="link" href="vector_tie.html#fusion.container.generation.metafunctions.vector_tie.header">Header</a>
</h6>
<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">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">&gt;</span>
<span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">fusion</span><span class="special">/</span><span class="identifier">include</span><span class="special">/</span><span class="identifier">vector_tie</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
</pre>
<a name="fusion.container.generation.metafunctions.vector_tie.example"></a><h6>
<a name="id509946"></a>
<a href="vector_tie.html#fusion.container.generation.metafunctions.vector_tie.example">Example</a>
<a name="id659294"></a>
<a class="link" href="vector_tie.html#fusion.container.generation.metafunctions.vector_tie.example">Example</a>
</h6>
<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">vector_tie</span><span class="special">&lt;</span><span class="keyword">int</span><span class="special">,</span> <span class="keyword">double</span><span class="special">&gt;::</span><span class="identifier">type</span>
</pre>