• 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_set</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_deque.html" title="as_deque">
10<link rel="next" href="as_map.html" title="as_map">
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_deque.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_map.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_set"></a><a class="link" href="as_set.html" title="as_set">as_set</a>
28</h5></div></div></div>
29<h6>
30<a name="fusion.container.conversion.metafunctions.as_set.h0"></a>
31            <span class="phrase"><a name="fusion.container.conversion.metafunctions.as_set.description"></a></span><a class="link" href="as_set.html#fusion.container.conversion.metafunctions.as_set.description">Description</a>
32          </h6>
33<p>
34            Returns the result type of <a class="link" href="../functions/as_set.html" title="as_set"><code class="computeroutput"><span class="identifier">as_set</span></code></a>.
35          </p>
36<h6>
37<a name="fusion.container.conversion.metafunctions.as_set.h1"></a>
38            <span class="phrase"><a name="fusion.container.conversion.metafunctions.as_set.synopsis"></a></span><a class="link" href="as_set.html#fusion.container.conversion.metafunctions.as_set.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_set</span><span class="special">;</span>
42</pre>
43<h6>
44<a name="fusion.container.conversion.metafunctions.as_set.h2"></a>
45            <span class="phrase"><a name="fusion.container.conversion.metafunctions.as_set.parameters"></a></span><a class="link" href="as_set.html#fusion.container.conversion.metafunctions.as_set.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_set.h3"></a>
90            <span class="phrase"><a name="fusion.container.conversion.metafunctions.as_set.expression_semantics"></a></span><a class="link" href="as_set.html#fusion.container.conversion.metafunctions.as_set.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_set</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="../../set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a> with same elements as the
97            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="../../set.html" title="set"><code class="computeroutput"><span class="identifier">set</span></code></a>.
102          </p>
103<p>
104            <span class="bold"><strong>Precondition</strong></span>: There may be no duplicate
105            key types.
106          </p>
107<h6>
108<a name="fusion.container.conversion.metafunctions.as_set.h4"></a>
109            <span class="phrase"><a name="fusion.container.conversion.metafunctions.as_set.header"></a></span><a class="link" href="as_set.html#fusion.container.conversion.metafunctions.as_set.header">Header</a>
110          </h6>
111<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">set</span><span class="special">/</span><span class="identifier">convert</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
112<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_set</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
113</pre>
114<h6>
115<a name="fusion.container.conversion.metafunctions.as_set.h5"></a>
116            <span class="phrase"><a name="fusion.container.conversion.metafunctions.as_set.example"></a></span><a class="link" href="as_set.html#fusion.container.conversion.metafunctions.as_set.example">Example</a>
117          </h6>
118<pre class="programlisting"><span class="identifier">result_of</span><span class="special">::</span><span class="identifier">as_set</span><span class="special">&lt;</span><a class="link" href="../../vector.html" title="vector"><code class="computeroutput"><span class="identifier">vector</span></code></a><span class="special">&lt;</span><span class="keyword">char</span><span class="special">,</span> <span class="keyword">int</span><span class="special">&gt;</span> <span class="special">&gt;::</span><span class="identifier">type</span>
119</pre>
120</div>
121<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
122<td align="left"></td>
123<td align="right"><div class="copyright-footer">Copyright © 2001-2006, 2011, 2012 Joel de Guzman,
124      Dan Marsden, Tobias Schwinger<p>
125        Distributed under the Boost Software License, Version 1.0. (See accompanying
126        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>)
127      </p>
128</div></td>
129</tr></table>
130<hr>
131<div class="spirit-nav">
132<a accesskey="p" href="as_deque.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_map.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
133</div>
134</body>
135</html>
136