• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>as_vector</title>
5<link rel="stylesheet" href="../../../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../../../index.html" title="Chapter 1. Fusion 2.2">
8<link rel="up" href="../metafunctions.html" title="Metafunctions">
9<link rel="prev" href="as_list.html" title="as_list">
10<link rel="next" href="as_deque.html" title="as_deque">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="as_list.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="as_deque.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h5 class="title">
27<a name="fusion.container.conversion.metafunctions.as_vector"></a><a class="link" href="as_vector.html" title="as_vector">as_vector</a>
28</h5></div></div></div>
29<h6>
30<a name="fusion.container.conversion.metafunctions.as_vector.h0"></a>
31            <span class="phrase"><a name="fusion.container.conversion.metafunctions.as_vector.description"></a></span><a class="link" href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.description">Description</a>
32          </h6>
33<p>
34            Returns the result type of <a class="link" href="../functions/as_vector.html" title="as_vector"><code class="computeroutput"><span class="identifier">as_vector</span></code></a>.
35          </p>
36<h6>
37<a name="fusion.container.conversion.metafunctions.as_vector.h1"></a>
38            <span class="phrase"><a name="fusion.container.conversion.metafunctions.as_vector.synopsis"></a></span><a class="link" href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.synopsis">Synopsis</a>
39          </h6>
40<pre class="programlisting"><span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Sequence</span><span class="special">&gt;</span>
41<span class="keyword">struct</span> <span class="identifier">as_vector</span><span class="special">;</span>
42</pre>
43<h6>
44<a name="fusion.container.conversion.metafunctions.as_vector.h2"></a>
45            <span class="phrase"><a name="fusion.container.conversion.metafunctions.as_vector.parameters"></a></span><a class="link" href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.parameters">Parameters</a>
46          </h6>
47<div class="informaltable"><table class="table">
48<colgroup>
49<col>
50<col>
51<col>
52</colgroup>
53<thead><tr>
54<th>
55                    <p>
56                      Parameter
57                    </p>
58                  </th>
59<th>
60                    <p>
61                      Requirement
62                    </p>
63                  </th>
64<th>
65                    <p>
66                      Description
67                    </p>
68                  </th>
69</tr></thead>
70<tbody><tr>
71<td>
72                    <p>
73                      <code class="computeroutput"><span class="identifier">Sequence</span></code>
74                    </p>
75                  </td>
76<td>
77                    <p>
78                      A fusion <a class="link" href="../../../sequence.html" title="Sequence">Sequence</a>
79                    </p>
80                  </td>
81<td>
82                    <p>
83                      The sequence to convert.
84                    </p>
85                  </td>
86</tr></tbody>
87</table></div>
88<h6>
89<a name="fusion.container.conversion.metafunctions.as_vector.h3"></a>
90            <span class="phrase"><a name="fusion.container.conversion.metafunctions.as_vector.expression_semantics"></a></span><a class="link" href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.expression_semantics">Expression
91            Semantics</a>
92          </h6>
93<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_vector</span><span class="special">&lt;</span><span class="identifier">Sequence</span><span class="special">&gt;::</span><span class="identifier">type</span><span class="special">;</span>
94</pre>
95<p>
96            <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 same elements as
97            the input sequence, <code class="computeroutput"><span class="identifier">Sequence</span></code>.
98          </p>
99<p>
100            <span class="bold"><strong>Semantics</strong></span>: Convert a fusion sequence,
101            <code class="computeroutput"><span class="identifier">Sequence</span></code>, to a <a class="link" href="../../vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a>.
102          </p>
103<h6>
104<a name="fusion.container.conversion.metafunctions.as_vector.h4"></a>
105            <span class="phrase"><a name="fusion.container.conversion.metafunctions.as_vector.header"></a></span><a class="link" href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.header">Header</a>
106          </h6>
107<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">vector</span><span class="special">/</span><span class="identifier">convert</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
108<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">as_vector</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
109</pre>
110<h6>
111<a name="fusion.container.conversion.metafunctions.as_vector.h5"></a>
112            <span class="phrase"><a name="fusion.container.conversion.metafunctions.as_vector.example"></a></span><a class="link" href="as_vector.html#fusion.container.conversion.metafunctions.as_vector.example">Example</a>
113          </h6>
114<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_vector</span><span class="special">&lt;</span><a class="link" href="../../list.html" title="list"><code class="computeroutput"><span class="identifier">list</span></code></a><span class="special">&lt;</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span>
115</pre>
116</div>
117<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
118<td align="left"></td>
119<td align="right"><div class="copyright-footer">Copyright © 2001-2006, 2011, 2012 Joel de Guzman,
120      Dan Marsden, Tobias Schwinger<p>
121        Distributed under the Boost Software License, Version 1.0. (See accompanying
122        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
123      </p>
124</div></td>
125</tr></table>
126<hr>
127<div class="spirit-nav">
128<a accesskey="p" href="as_list.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../metafunctions.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="as_deque.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
129</div>
130</body>
131</html>
132